diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs
index 26e1a9c5b771..7b26b3a6cc49 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticCollection.cs
@@ -20,8 +20,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiDiagnostics method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiDiagnostics method from an instance of .
///
public partial class ApiDiagnosticCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -48,8 +48,8 @@ internal ApiDiagnosticCollection(ArmClient client, ResourceIdentifier id) : base
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs
index 716ad76b8c19..198d7003d3c1 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiDiagnosticResource.cs
@@ -20,7 +20,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiDiagnostic along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiDiagnosticResource method.
- /// Otherwise you can get one from its parent resource using the GetApiDiagnostic method.
+ /// Otherwise you can get one from its parent resource using the GetApiDiagnostic method.
///
public partial class ApiDiagnosticResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs
index 3131139ca879..e8a2c6a1c412 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueCollection.cs
@@ -20,8 +20,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiIssues method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiIssues method from an instance of .
///
public partial class ApiIssueCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -48,8 +48,8 @@ internal ApiIssueCollection(ArmClient client, ResourceIdentifier id) : base(clie
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs
index b3b97299b544..d65789aa8e71 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiIssueResource.cs
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiIssue along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiIssueResource method.
- /// Otherwise you can get one from its parent resource using the GetApiIssue method.
+ /// Otherwise you can get one from its parent resource using the GetApiIssue method.
///
public partial class ApiIssueResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerData.cs
index 5598cd1cbd7b..73fd12cc8b27 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerData.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementAuthorizationServerData.cs
@@ -44,12 +44,14 @@ public ApiManagementAuthorizationServerData()
/// Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
/// Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
/// User-friendly authorization server name.
+ /// If true, the authorization server may be used in the developer portal test console. True by default if no value is provided.
+ /// If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided.
/// Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
/// OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
/// Form of an authorization grant, which the client uses to request the access token.
/// Client or app id registered with this authorization server.
/// Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- internal ApiManagementAuthorizationServerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList authorizationMethods, IList clientAuthenticationMethods, IList tokenBodyParameters, string tokenEndpoint, bool? doesSupportState, string defaultScope, IList bearerTokenSendingMethods, string resourceOwnerUsername, string resourceOwnerPassword, string displayName, string clientRegistrationEndpoint, string authorizationEndpoint, IList grantTypes, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
+ internal ApiManagementAuthorizationServerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList authorizationMethods, IList clientAuthenticationMethods, IList tokenBodyParameters, string tokenEndpoint, bool? doesSupportState, string defaultScope, IList bearerTokenSendingMethods, string resourceOwnerUsername, string resourceOwnerPassword, string displayName, bool? useInTestConsole, bool? useInApiDocumentation, string clientRegistrationEndpoint, string authorizationEndpoint, IList grantTypes, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
{
Description = description;
AuthorizationMethods = authorizationMethods;
@@ -62,6 +64,8 @@ internal ApiManagementAuthorizationServerData(ResourceIdentifier id, string name
ResourceOwnerUsername = resourceOwnerUsername;
ResourceOwnerPassword = resourceOwnerPassword;
DisplayName = displayName;
+ UseInTestConsole = useInTestConsole;
+ UseInApiDocumentation = useInApiDocumentation;
ClientRegistrationEndpoint = clientRegistrationEndpoint;
AuthorizationEndpoint = authorizationEndpoint;
GrantTypes = grantTypes;
@@ -91,6 +95,10 @@ internal ApiManagementAuthorizationServerData(ResourceIdentifier id, string name
public string ResourceOwnerPassword { get; set; }
/// User-friendly authorization server name.
public string DisplayName { get; set; }
+ /// If true, the authorization server may be used in the developer portal test console. True by default if no value is provided.
+ public bool? UseInTestConsole { get; set; }
+ /// If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided.
+ public bool? UseInApiDocumentation { get; set; }
/// Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
public string ClientRegistrationEndpoint { get; set; }
/// OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendData.cs
index 077d2b7296d9..537a8edb53c6 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendData.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendData.cs
@@ -6,6 +6,7 @@
#nullable disable
using System;
+using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.ApiManagement.Models;
using Azure.ResourceManager.Models;
@@ -30,14 +31,15 @@ public ApiManagementBackendData()
/// The systemData.
/// Backend Title.
/// Backend Description.
- /// Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
+ /// Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
/// Backend Properties contract.
/// Backend Credentials Contract Properties.
- /// Backend Proxy Contract Properties.
+ /// Backend gateway Contract Properties.
/// Backend TLS Properties.
+ /// Backend Circuit Breaker Configuration.
/// Runtime Url of the Backend.
/// Backend communication protocol.
- internal ApiManagementBackendData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string title, string description, Uri resourceUri, BackendProperties properties, BackendCredentialsContract credentials, BackendProxyContract proxy, BackendTlsProperties tls, Uri uri, BackendProtocol? protocol) : base(id, name, resourceType, systemData)
+ internal ApiManagementBackendData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string title, string description, Uri resourceUri, BackendProperties properties, BackendCredentialsContract credentials, BackendProxyContract proxy, BackendTlsProperties tls, BackendCircuitBreaker circuitBreaker, Uri uri, BackendProtocol? protocol) : base(id, name, resourceType, systemData)
{
Title = title;
Description = description;
@@ -46,6 +48,7 @@ internal ApiManagementBackendData(ResourceIdentifier id, string name, ResourceTy
Credentials = credentials;
Proxy = proxy;
Tls = tls;
+ CircuitBreaker = circuitBreaker;
Uri = uri;
Protocol = protocol;
}
@@ -54,7 +57,7 @@ internal ApiManagementBackendData(ResourceIdentifier id, string name, ResourceTy
public string Title { get; set; }
/// Backend Description.
public string Description { get; set; }
- /// Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
+ /// Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
public Uri ResourceUri { get; set; }
/// Backend Properties contract.
internal BackendProperties Properties { get; set; }
@@ -72,10 +75,23 @@ public BackendServiceFabricClusterProperties BackendServiceFabricCluster
/// Backend Credentials Contract Properties.
public BackendCredentialsContract Credentials { get; set; }
- /// Backend Proxy Contract Properties.
+ /// Backend gateway Contract Properties.
public BackendProxyContract Proxy { get; set; }
/// Backend TLS Properties.
public BackendTlsProperties Tls { get; set; }
+ /// Backend Circuit Breaker Configuration.
+ internal BackendCircuitBreaker CircuitBreaker { get; set; }
+ /// The rules for tripping the backend.
+ public IList CircuitBreakerRules
+ {
+ get
+ {
+ if (CircuitBreaker is null)
+ CircuitBreaker = new BackendCircuitBreaker();
+ return CircuitBreaker.Rules;
+ }
+ }
+
/// Runtime Url of the Backend.
public Uri Uri { get; set; }
/// Backend communication protocol.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs
index 6fe935696def..0e26ad530260 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementBackendResource.cs
@@ -292,7 +292,7 @@ public virtual Response Update(ETag ifMatch, ApiMa
}
///
- /// 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.
+ /// Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.
///
/// -
/// Request Path
@@ -323,7 +323,7 @@ public virtual async Task ReconnectAsync(BackendReconnectContract back
}
///
- /// 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.
+ /// Notifies the API Management gateway to create a new connection to the backend after the specified timeout. If no timeout was specified, timeout of 2 minutes is used.
///
/// -
/// Request Path
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderData.cs
index ca8db35f2468..6b1e104d1181 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderData.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementIdentityProviderData.cs
@@ -37,9 +37,10 @@ public ApiManagementIdentityProviderData()
/// Signin Policy Name. Only applies to AAD B2C Identity Provider.
/// Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
/// Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
+ /// The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
/// Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
/// Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- internal ApiManagementIdentityProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IdentityProviderType? identityProviderType, string signInTenant, IList allowedTenants, string authority, string signUpPolicyName, string signInPolicyName, string profileEditingPolicyName, string passwordResetPolicyName, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
+ internal ApiManagementIdentityProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IdentityProviderType? identityProviderType, string signInTenant, IList allowedTenants, string authority, string signUpPolicyName, string signInPolicyName, string profileEditingPolicyName, string passwordResetPolicyName, string clientLibrary, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
{
IdentityProviderType = identityProviderType;
SignInTenant = signInTenant;
@@ -49,6 +50,7 @@ internal ApiManagementIdentityProviderData(ResourceIdentifier id, string name, R
SignInPolicyName = signInPolicyName;
ProfileEditingPolicyName = profileEditingPolicyName;
PasswordResetPolicyName = passwordResetPolicyName;
+ ClientLibrary = clientLibrary;
ClientId = clientId;
ClientSecret = clientSecret;
}
@@ -69,6 +71,8 @@ internal ApiManagementIdentityProviderData(ResourceIdentifier id, string name, R
public string ProfileEditingPolicyName { get; set; }
/// Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
public string PasswordResetPolicyName { get; set; }
+ /// The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
+ public string ClientLibrary { get; set; }
/// Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
public string ClientId { get; set; }
/// Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderData.cs
index 27c2aa10da60..aa49092ff1b0 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderData.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementOpenIdConnectProviderData.cs
@@ -31,13 +31,17 @@ public ApiManagementOpenIdConnectProviderData()
/// Metadata endpoint URI.
/// Client ID of developer console which is the client application.
/// Client Secret of developer console which is the client application.
- internal ApiManagementOpenIdConnectProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string description, string metadataEndpoint, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
+ /// If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
+ /// If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
+ internal ApiManagementOpenIdConnectProviderData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string description, string metadataEndpoint, string clientId, string clientSecret, bool? useInTestConsole, bool? useInApiDocumentation) : base(id, name, resourceType, systemData)
{
DisplayName = displayName;
Description = description;
MetadataEndpoint = metadataEndpoint;
ClientId = clientId;
ClientSecret = clientSecret;
+ UseInTestConsole = useInTestConsole;
+ UseInApiDocumentation = useInApiDocumentation;
}
/// User-friendly OpenID Connect Provider name.
@@ -50,5 +54,9 @@ internal ApiManagementOpenIdConnectProviderData(ResourceIdentifier id, string na
public string ClientId { get; set; }
/// Client Secret of developer console which is the client application.
public string ClientSecret { get; set; }
+ /// If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
+ public bool? UseInTestConsole { get; set; }
+ /// If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
+ public bool? UseInApiDocumentation { get; set; }
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs
index d5e0778e400f..1b5d3ef68b35 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyCollection.cs
@@ -21,8 +21,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiManagementProductPolicies method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiManagementProductPolicies method from an instance of .
///
public partial class ApiManagementProductPolicyCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -49,8 +49,8 @@ internal ApiManagementProductPolicyCollection(ArmClient client, ResourceIdentifi
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiManagementProductResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiManagementProductResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceProductResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceProductResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs
index 13bd27033ea8..ed0b98836d55 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductPolicyResource.cs
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiManagementProductPolicy along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiManagementProductPolicyResource method.
- /// Otherwise you can get one from its parent resource using the GetApiManagementProductPolicy method.
+ /// Otherwise you can get one from its parent resource using the GetApiManagementProductPolicy method.
///
public partial class ApiManagementProductPolicyResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs
index 47b82e5f75e8..9751d7942e6b 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagCollection.cs
@@ -20,8 +20,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiManagementProductTags method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiManagementProductTags method from an instance of .
///
public partial class ApiManagementProductTagCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -48,8 +48,8 @@ internal ApiManagementProductTagCollection(ArmClient client, ResourceIdentifier
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiManagementProductResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiManagementProductResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceProductResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceProductResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs
index 6c7af5970e88..3996bbc7f237 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementProductTagResource.cs
@@ -20,7 +20,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiManagementProductTag along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiManagementProductTagResource method.
- /// Otherwise you can get one from its parent resource using the GetApiManagementProductTag method.
+ /// Otherwise you can get one from its parent resource using the GetApiManagementProductTag method.
///
public partial class ApiManagementProductTagResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceData.cs
index 0f3b03ad24e2..030a38c080c0 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceData.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceData.cs
@@ -41,6 +41,7 @@ public ApiManagementServiceData(AzureLocation location, ApiManagementServiceSkuP
AdditionalLocations = new ChangeTrackingList();
CustomProperties = new ChangeTrackingDictionary();
Certificates = new ChangeTrackingList();
+ OutboundPublicIPAddresses = new ChangeTrackingList();
PrivateEndpointConnections = new ChangeTrackingList();
PublisherEmail = publisherEmail;
PublisherName = publisherName;
@@ -74,9 +75,11 @@ public ApiManagementServiceData(AzureLocation location, ApiManagementServiceSkuP
/// Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
/// Virtual network configuration of the API Management service.
/// Additional datacenter locations of the API Management service.
- /// Custom properties of the API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.</br>Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.</br></br>You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384.
+ /// Custom properties of the API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.</br>Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.</br></br>You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.</br> Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256.
/// List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10.
/// Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway.
+ /// Property can be used to enable NAT Gateway for this API Management service.
+ /// Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform.
/// Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region.
/// The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only.
/// Control Plane Apis version constraint for the API Management service.
@@ -85,7 +88,7 @@ public ApiManagementServiceData(AzureLocation location, ApiManagementServiceSkuP
/// Compute Platform Version running the service in this location.
/// Publisher email.
/// Publisher name.
- internal ApiManagementServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ApiManagementServiceSkuProperties sku, ManagedServiceIdentity identity, ETag? etag, IList zones, string notificationSenderEmail, string provisioningState, string targetProvisioningState, DateTimeOffset? createdAtUtc, Uri gatewayUri, Uri gatewayRegionalUri, Uri portalUri, Uri managementApiUri, Uri scmUri, Uri developerPortalUri, IList hostnameConfigurations, IReadOnlyList publicIPAddresses, IReadOnlyList privateIPAddresses, ResourceIdentifier publicIPAddressId, PublicNetworkAccess? publicNetworkAccess, VirtualNetworkConfiguration virtualNetworkConfiguration, IList additionalLocations, IDictionary customProperties, IList certificates, bool? enableClientCertificate, bool? disableGateway, VirtualNetworkType? virtualNetworkType, ApiVersionConstraint apiVersionConstraint, bool? restore, IList privateEndpointConnections, PlatformVersion? platformVersion, string publisherEmail, string publisherName) : base(id, name, resourceType, systemData, tags, location)
+ internal ApiManagementServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ApiManagementServiceSkuProperties sku, ManagedServiceIdentity identity, ETag? etag, IList zones, string notificationSenderEmail, string provisioningState, string targetProvisioningState, DateTimeOffset? createdAtUtc, Uri gatewayUri, Uri gatewayRegionalUri, Uri portalUri, Uri managementApiUri, Uri scmUri, Uri developerPortalUri, IList hostnameConfigurations, IReadOnlyList publicIPAddresses, IReadOnlyList privateIPAddresses, ResourceIdentifier publicIPAddressId, PublicNetworkAccess? publicNetworkAccess, VirtualNetworkConfiguration virtualNetworkConfiguration, IList additionalLocations, IDictionary customProperties, IList certificates, bool? enableClientCertificate, NatGatewayState? natGatewayState, IReadOnlyList outboundPublicIPAddresses, bool? disableGateway, VirtualNetworkType? virtualNetworkType, ApiVersionConstraint apiVersionConstraint, bool? restore, IList privateEndpointConnections, PlatformVersion? platformVersion, string publisherEmail, string publisherName) : base(id, name, resourceType, systemData, tags, location)
{
Sku = sku;
Identity = identity;
@@ -111,6 +114,8 @@ internal ApiManagementServiceData(ResourceIdentifier id, string name, ResourceTy
CustomProperties = customProperties;
Certificates = certificates;
EnableClientCertificate = enableClientCertificate;
+ NatGatewayState = natGatewayState;
+ OutboundPublicIPAddresses = outboundPublicIPAddresses;
DisableGateway = disableGateway;
VirtualNetworkType = virtualNetworkType;
ApiVersionConstraint = apiVersionConstraint;
@@ -163,12 +168,16 @@ internal ApiManagementServiceData(ResourceIdentifier id, string name, ResourceTy
public VirtualNetworkConfiguration VirtualNetworkConfiguration { get; set; }
/// Additional datacenter locations of the API Management service.
public IList AdditionalLocations { get; }
- /// Custom properties of the API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.</br>Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.</br></br>You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384.
+ /// Custom properties of the API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.</br>Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.</br></br>You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.</br> Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256.
public IDictionary CustomProperties { get; }
/// List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10.
public IList Certificates { get; }
/// Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway.
public bool? EnableClientCertificate { get; set; }
+ /// Property can be used to enable NAT Gateway for this API Management service.
+ public NatGatewayState? NatGatewayState { get; set; }
+ /// Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform.
+ public IReadOnlyList OutboundPublicIPAddresses { get; }
/// Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region.
public bool? DisableGateway { get; set; }
/// The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs
index d66c4e91f8cd..c9d2c200d150 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementServiceResource.cs
@@ -36,8 +36,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId,
private readonly ClientDiagnostics _apiManagementServiceClientDiagnostics;
private readonly ApiManagementServiceRestOperations _apiManagementServiceRestClient;
- private readonly ClientDiagnostics _apiClientDiagnostics;
- private readonly ApiRestOperations _apiRestClient;
+ private readonly ClientDiagnostics _serviceApiApiClientDiagnostics;
+ private readonly ApiRestOperations _serviceApiApiRestClient;
private readonly ClientDiagnostics _defaultClientDiagnostics;
private readonly ApiManagementRestOperations _defaultRestClient;
private readonly ClientDiagnostics _contentTypeClientDiagnostics;
@@ -54,8 +54,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId,
private readonly PolicyDescriptionRestOperations _policyDescriptionRestClient;
private readonly ClientDiagnostics _apiManagementServicePortalSettingsClientDiagnostics;
private readonly PortalSettingsRestOperations _apiManagementServicePortalSettingsRestClient;
- private readonly ClientDiagnostics _apiManagementProductProductClientDiagnostics;
- private readonly ProductRestOperations _apiManagementProductProductRestClient;
+ private readonly ClientDiagnostics _serviceProductProductClientDiagnostics;
+ private readonly ProductRestOperations _serviceProductProductRestClient;
private readonly ClientDiagnostics _quotaByCounterKeysClientDiagnostics;
private readonly QuotaByCounterKeysRestOperations _quotaByCounterKeysRestClient;
private readonly ClientDiagnostics _quotaByPeriodKeysClientDiagnostics;
@@ -92,9 +92,9 @@ internal ApiManagementServiceResource(ArmClient client, ResourceIdentifier id) :
_apiManagementServiceClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ResourceType.Namespace, Diagnostics);
TryGetApiVersion(ResourceType, out string apiManagementServiceApiVersion);
_apiManagementServiceRestClient = new ApiManagementServiceRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, apiManagementServiceApiVersion);
- _apiClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ApiResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ApiResource.ResourceType, out string apiApiVersion);
- _apiRestClient = new ApiRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, apiApiVersion);
+ _serviceApiApiClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ServiceApiResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ServiceApiResource.ResourceType, out string serviceApiApiApiVersion);
+ _serviceApiApiRestClient = new ApiRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serviceApiApiApiVersion);
_defaultClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_defaultRestClient = new ApiManagementRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_contentTypeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics);
@@ -112,9 +112,9 @@ internal ApiManagementServiceResource(ArmClient client, ResourceIdentifier id) :
_apiManagementServicePortalSettingsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ResourceType.Namespace, Diagnostics);
TryGetApiVersion(ResourceType, out string apiManagementServicePortalSettingsApiVersion);
_apiManagementServicePortalSettingsRestClient = new PortalSettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, apiManagementServicePortalSettingsApiVersion);
- _apiManagementProductProductClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ApiManagementProductResource.ResourceType.Namespace, Diagnostics);
- TryGetApiVersion(ApiManagementProductResource.ResourceType, out string apiManagementProductProductApiVersion);
- _apiManagementProductProductRestClient = new ProductRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, apiManagementProductProductApiVersion);
+ _serviceProductProductClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ServiceProductResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ServiceProductResource.ResourceType, out string serviceProductProductApiVersion);
+ _serviceProductProductRestClient = new ProductRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, serviceProductProductApiVersion);
_quotaByCounterKeysClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics);
_quotaByCounterKeysRestClient = new QuotaByCounterKeysRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
_quotaByPeriodKeysClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics);
@@ -156,11 +156,11 @@ internal static void ValidateResourceId(ResourceIdentifier id)
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
}
- /// Gets a collection of ApiResources in the ApiManagementService.
- /// An object representing collection of ApiResources and their operations over a ApiResource.
- public virtual ApiCollection GetApis()
+ /// Gets a collection of ServiceApiResources in the ApiManagementService.
+ /// An object representing collection of ServiceApiResources and their operations over a ServiceApiResource.
+ public virtual ServiceApiCollection GetServiceApis()
{
- return GetCachedClient(Client => new ApiCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceApiCollection(Client, Id));
}
///
@@ -181,9 +181,9 @@ public virtual ApiCollection GetApis()
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual async Task> GetApiAsync(string apiId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceApiAsync(string apiId, CancellationToken cancellationToken = default)
{
- return await GetApis().GetAsync(apiId, cancellationToken).ConfigureAwait(false);
+ return await GetServiceApis().GetAsync(apiId, cancellationToken).ConfigureAwait(false);
}
///
@@ -204,9 +204,9 @@ public virtual async Task> GetApiAsync(string apiId, Cance
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual Response GetApi(string apiId, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceApi(string apiId, CancellationToken cancellationToken = default)
{
- return GetApis().Get(apiId, cancellationToken);
+ return GetServiceApis().Get(apiId, cancellationToken);
}
/// Gets a collection of ApiManagementPolicyResources in the ApiManagementService.
@@ -419,11 +419,11 @@ public virtual Response GetApiManagementIssue(string
return GetApiManagementIssues().Get(issueId, cancellationToken);
}
- /// Gets a collection of ApiVersionSetResources in the ApiManagementService.
- /// An object representing collection of ApiVersionSetResources and their operations over a ApiVersionSetResource.
- public virtual ApiVersionSetCollection GetApiVersionSets()
+ /// Gets a collection of ServiceApiVersionSetResources in the ApiManagementService.
+ /// An object representing collection of ServiceApiVersionSetResources and their operations over a ServiceApiVersionSetResource.
+ public virtual ServiceApiVersionSetCollection GetServiceApiVersionSets()
{
- return GetCachedClient(Client => new ApiVersionSetCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceApiVersionSetCollection(Client, Id));
}
///
@@ -444,9 +444,9 @@ public virtual ApiVersionSetCollection GetApiVersionSets()
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual async Task> GetApiVersionSetAsync(string versionSetId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceApiVersionSetAsync(string versionSetId, CancellationToken cancellationToken = default)
{
- return await GetApiVersionSets().GetAsync(versionSetId, cancellationToken).ConfigureAwait(false);
+ return await GetServiceApiVersionSets().GetAsync(versionSetId, cancellationToken).ConfigureAwait(false);
}
///
@@ -467,9 +467,62 @@ public virtual async Task> GetApiVersionSetAsync
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual Response GetApiVersionSet(string versionSetId, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceApiVersionSet(string versionSetId, CancellationToken cancellationToken = default)
{
- return GetApiVersionSets().Get(versionSetId, cancellationToken);
+ return GetServiceApiVersionSets().Get(versionSetId, cancellationToken);
+ }
+
+ /// Gets a collection of AuthorizationProviderContractResources in the ApiManagementService.
+ /// An object representing collection of AuthorizationProviderContractResources and their operations over a AuthorizationProviderContractResource.
+ public virtual AuthorizationProviderContractCollection GetAuthorizationProviderContracts()
+ {
+ return GetCachedClient(Client => new AuthorizationProviderContractCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the details of the authorization provider specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization provider.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetAuthorizationProviderContractAsync(string authorizationProviderId, CancellationToken cancellationToken = default)
+ {
+ return await GetAuthorizationProviderContracts().GetAsync(authorizationProviderId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the details of the authorization provider specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization provider.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetAuthorizationProviderContract(string authorizationProviderId, CancellationToken cancellationToken = default)
+ {
+ return GetAuthorizationProviderContracts().Get(authorizationProviderId, cancellationToken);
}
/// Gets a collection of ApiManagementAuthorizationServerResources in the ApiManagementService.
@@ -684,6 +737,59 @@ public virtual Response GetApiManagementCertif
return GetApiManagementCertificates().Get(certificateId, cancellationToken);
}
+ /// Gets a collection of DocumentationContractResources in the ApiManagementService.
+ /// An object representing collection of DocumentationContractResources and their operations over a DocumentationContractResource.
+ public virtual DocumentationContractCollection GetDocumentationContracts()
+ {
+ return GetCachedClient(Client => new DocumentationContractCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the details of the Documentation specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetDocumentationContractAsync(string documentationId, CancellationToken cancellationToken = default)
+ {
+ return await GetDocumentationContracts().GetAsync(documentationId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the details of the Documentation specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetDocumentationContract(string documentationId, CancellationToken cancellationToken = default)
+ {
+ return GetDocumentationContracts().Get(documentationId, cancellationToken);
+ }
+
/// Gets a collection of ApiManagementEmailTemplateResources in the ApiManagementService.
/// An object representing collection of ApiManagementEmailTemplateResources and their operations over a ApiManagementEmailTemplateResource.
public virtual ApiManagementEmailTemplateCollection GetApiManagementEmailTemplates()
@@ -786,11 +892,11 @@ public virtual Response GetApiManagementGateway(st
return GetApiManagementGateways().Get(gatewayId, cancellationToken);
}
- /// Gets a collection of ApiManagementGroupResources in the ApiManagementService.
- /// An object representing collection of ApiManagementGroupResources and their operations over a ApiManagementGroupResource.
- public virtual ApiManagementGroupCollection GetApiManagementGroups()
+ /// Gets a collection of ServiceGroupResources in the ApiManagementService.
+ /// An object representing collection of ServiceGroupResources and their operations over a ServiceGroupResource.
+ public virtual ServiceGroupCollection GetServiceGroups()
{
- return GetCachedClient(Client => new ApiManagementGroupCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceGroupCollection(Client, Id));
}
///
@@ -811,9 +917,9 @@ public virtual ApiManagementGroupCollection GetApiManagementGroups()
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual async Task> GetApiManagementGroupAsync(string groupId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceGroupAsync(string groupId, CancellationToken cancellationToken = default)
{
- return await GetApiManagementGroups().GetAsync(groupId, cancellationToken).ConfigureAwait(false);
+ return await GetServiceGroups().GetAsync(groupId, cancellationToken).ConfigureAwait(false);
}
///
@@ -834,9 +940,9 @@ public virtual async Task> GetApiManagement
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual Response GetApiManagementGroup(string groupId, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceGroup(string groupId, CancellationToken cancellationToken = default)
{
- return GetApiManagementGroups().Get(groupId, cancellationToken);
+ return GetServiceGroups().Get(groupId, cancellationToken);
}
/// Gets a collection of ApiManagementIdentityProviderResources in the ApiManagementService.
@@ -941,11 +1047,11 @@ public virtual Response GetApiManagementLogger(stri
return GetApiManagementLoggers().Get(loggerId, cancellationToken);
}
- /// Gets a collection of ApiManagementNamedValueResources in the ApiManagementService.
- /// An object representing collection of ApiManagementNamedValueResources and their operations over a ApiManagementNamedValueResource.
- public virtual ApiManagementNamedValueCollection GetApiManagementNamedValues()
+ /// Gets a collection of ServiceNamedValueResources in the ApiManagementService.
+ /// An object representing collection of ServiceNamedValueResources and their operations over a ServiceNamedValueResource.
+ public virtual ServiceNamedValueCollection GetServiceNamedValues()
{
- return GetCachedClient(Client => new ApiManagementNamedValueCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceNamedValueCollection(Client, Id));
}
///
@@ -966,9 +1072,9 @@ public virtual ApiManagementNamedValueCollection GetApiManagementNamedValues()
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual async Task> GetApiManagementNamedValueAsync(string namedValueId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceNamedValueAsync(string namedValueId, CancellationToken cancellationToken = default)
{
- return await GetApiManagementNamedValues().GetAsync(namedValueId, cancellationToken).ConfigureAwait(false);
+ return await GetServiceNamedValues().GetAsync(namedValueId, cancellationToken).ConfigureAwait(false);
}
///
@@ -989,16 +1095,16 @@ public virtual async Task> GetApiManag
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual Response GetApiManagementNamedValue(string namedValueId, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceNamedValue(string namedValueId, CancellationToken cancellationToken = default)
{
- return GetApiManagementNamedValues().Get(namedValueId, cancellationToken);
+ return GetServiceNamedValues().Get(namedValueId, cancellationToken);
}
- /// Gets a collection of ApiManagementNotificationResources in the ApiManagementService.
- /// An object representing collection of ApiManagementNotificationResources and their operations over a ApiManagementNotificationResource.
- public virtual ApiManagementNotificationCollection GetApiManagementNotifications()
+ /// Gets a collection of ServiceNotificationResources in the ApiManagementService.
+ /// An object representing collection of ServiceNotificationResources and their operations over a ServiceNotificationResource.
+ public virtual ServiceNotificationCollection GetServiceNotifications()
{
- return GetCachedClient(Client => new ApiManagementNotificationCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceNotificationCollection(Client, Id));
}
///
@@ -1017,9 +1123,9 @@ public virtual ApiManagementNotificationCollection GetApiManagementNotifications
/// Notification Name Identifier.
/// The cancellation token to use.
[ForwardsClientCalls]
- public virtual async Task> GetApiManagementNotificationAsync(NotificationName notificationName, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceNotificationAsync(NotificationName notificationName, CancellationToken cancellationToken = default)
{
- return await GetApiManagementNotifications().GetAsync(notificationName, cancellationToken).ConfigureAwait(false);
+ return await GetServiceNotifications().GetAsync(notificationName, cancellationToken).ConfigureAwait(false);
}
///
@@ -1038,9 +1144,9 @@ public virtual async Task> GetApiMan
/// Notification Name Identifier.
/// The cancellation token to use.
[ForwardsClientCalls]
- public virtual Response GetApiManagementNotification(NotificationName notificationName, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceNotification(NotificationName notificationName, CancellationToken cancellationToken = default)
{
- return GetApiManagementNotifications().Get(notificationName, cancellationToken);
+ return GetServiceNotifications().Get(notificationName, cancellationToken);
}
/// Gets a collection of ApiManagementOpenIdConnectProviderResources in the ApiManagementService.
@@ -1096,6 +1202,114 @@ public virtual Response GetApiManage
return GetApiManagementOpenIdConnectProviders().Get(openId, cancellationToken);
}
+ /// Gets a collection of ServicePolicyFragmentResources in the ApiManagementService.
+ /// An object representing collection of ServicePolicyFragmentResources and their operations over a ServicePolicyFragmentResource.
+ public virtual ServicePolicyFragmentCollection GetServicePolicyFragments()
+ {
+ return GetCachedClient(Client => new ServicePolicyFragmentCollection(Client, Id));
+ }
+
+ ///
+ /// Gets a policy fragment.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}
+ ///
+ /// -
+ /// Operation Id
+ /// PolicyFragment_Get
+ ///
+ ///
+ ///
+ /// A resource identifier.
+ /// Policy fragment content format.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetServicePolicyFragmentAsync(string id, PolicyFragmentContentFormat? format = null, CancellationToken cancellationToken = default)
+ {
+ return await GetServicePolicyFragments().GetAsync(id, format, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets a policy fragment.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/policyFragments/{id}
+ ///
+ /// -
+ /// Operation Id
+ /// PolicyFragment_Get
+ ///
+ ///
+ ///
+ /// A resource identifier.
+ /// Policy fragment content format.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetServicePolicyFragment(string id, PolicyFragmentContentFormat? format = null, CancellationToken cancellationToken = default)
+ {
+ return GetServicePolicyFragments().Get(id, format, cancellationToken);
+ }
+
+ /// Gets a collection of PortalConfigContractResources in the ApiManagementService.
+ /// An object representing collection of PortalConfigContractResources and their operations over a PortalConfigContractResource.
+ public virtual PortalConfigContractCollection GetPortalConfigContracts()
+ {
+ return GetCachedClient(Client => new PortalConfigContractCollection(Client, Id));
+ }
+
+ ///
+ /// Get the developer portal configuration.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}
+ ///
+ /// -
+ /// Operation Id
+ /// PortalConfig_Get
+ ///
+ ///
+ ///
+ /// Portal configuration identifier.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetPortalConfigContractAsync(string portalConfigId, CancellationToken cancellationToken = default)
+ {
+ return await GetPortalConfigContracts().GetAsync(portalConfigId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get the developer portal configuration.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/portalconfigs/{portalConfigId}
+ ///
+ /// -
+ /// Operation Id
+ /// PortalConfig_Get
+ ///
+ ///
+ ///
+ /// Portal configuration identifier.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetPortalConfigContract(string portalConfigId, CancellationToken cancellationToken = default)
+ {
+ return GetPortalConfigContracts().Get(portalConfigId, cancellationToken);
+ }
+
/// Gets a collection of ApiManagementPortalRevisionResources in the ApiManagementService.
/// An object representing collection of ApiManagementPortalRevisionResources and their operations over a ApiManagementPortalRevisionResource.
public virtual ApiManagementPortalRevisionCollection GetApiManagementPortalRevisions()
@@ -1276,11 +1490,11 @@ public virtual Response GetApiManagementPrivat
return GetApiManagementPrivateLinkResources().Get(privateLinkSubResourceName, cancellationToken);
}
- /// Gets a collection of ApiManagementProductResources in the ApiManagementService.
- /// An object representing collection of ApiManagementProductResources and their operations over a ApiManagementProductResource.
- public virtual ApiManagementProductCollection GetApiManagementProducts()
+ /// Gets a collection of ServiceProductResources in the ApiManagementService.
+ /// An object representing collection of ServiceProductResources and their operations over a ServiceProductResource.
+ public virtual ServiceProductCollection GetServiceProducts()
{
- return GetCachedClient(Client => new ApiManagementProductCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceProductCollection(Client, Id));
}
///
@@ -1301,9 +1515,9 @@ public virtual ApiManagementProductCollection GetApiManagementProducts()
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual async Task> GetApiManagementProductAsync(string productId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceProductAsync(string productId, CancellationToken cancellationToken = default)
{
- return await GetApiManagementProducts().GetAsync(productId, cancellationToken).ConfigureAwait(false);
+ return await GetServiceProducts().GetAsync(productId, cancellationToken).ConfigureAwait(false);
}
///
@@ -1324,16 +1538,16 @@ public virtual async Task> GetApiManageme
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual Response GetApiManagementProduct(string productId, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceProduct(string productId, CancellationToken cancellationToken = default)
{
- return GetApiManagementProducts().Get(productId, cancellationToken);
+ return GetServiceProducts().Get(productId, cancellationToken);
}
- /// Gets a collection of ApiManagementGlobalSchemaResources in the ApiManagementService.
- /// An object representing collection of ApiManagementGlobalSchemaResources and their operations over a ApiManagementGlobalSchemaResource.
- public virtual ApiManagementGlobalSchemaCollection GetApiManagementGlobalSchemas()
+ /// Gets a collection of ServiceSchemaResources in the ApiManagementService.
+ /// An object representing collection of ServiceSchemaResources and their operations over a ServiceSchemaResource.
+ public virtual ServiceSchemaCollection GetServiceSchemas()
{
- return GetCachedClient(Client => new ApiManagementGlobalSchemaCollection(Client, Id));
+ return GetCachedClient(Client => new ServiceSchemaCollection(Client, Id));
}
///
@@ -1354,9 +1568,9 @@ public virtual ApiManagementGlobalSchemaCollection GetApiManagementGlobalSchemas
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual async Task> GetApiManagementGlobalSchemaAsync(string schemaId, CancellationToken cancellationToken = default)
+ public virtual async Task> GetServiceSchemaAsync(string schemaId, CancellationToken cancellationToken = default)
{
- return await GetApiManagementGlobalSchemas().GetAsync(schemaId, cancellationToken).ConfigureAwait(false);
+ return await GetServiceSchemas().GetAsync(schemaId, cancellationToken).ConfigureAwait(false);
}
///
@@ -1377,9 +1591,9 @@ public virtual async Task> GetApiMan
/// is an empty string, and was expected to be non-empty.
/// is null.
[ForwardsClientCalls]
- public virtual Response GetApiManagementGlobalSchema(string schemaId, CancellationToken cancellationToken = default)
+ public virtual Response GetServiceSchema(string schemaId, CancellationToken cancellationToken = default)
{
- return GetApiManagementGlobalSchemas().Get(schemaId, cancellationToken);
+ return GetServiceSchemas().Get(schemaId, cancellationToken);
}
/// Gets a collection of ApiManagementTenantSettingResources in the ApiManagementService.
@@ -1586,6 +1800,59 @@ public virtual Response GetApiManagementUser(string u
return GetApiManagementUsers().Get(userId, cancellationToken);
}
+ /// Gets a collection of WorkspaceContractResources in the ApiManagementService.
+ /// An object representing collection of WorkspaceContractResources and their operations over a WorkspaceContractResource.
+ public virtual WorkspaceContractCollection GetWorkspaceContracts()
+ {
+ return GetCachedClient(Client => new WorkspaceContractCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the details of the workspace specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}
+ ///
+ /// -
+ /// Operation Id
+ /// Workspace_Get
+ ///
+ ///
+ ///
+ /// Workspace identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetWorkspaceContractAsync(string workspaceId, CancellationToken cancellationToken = default)
+ {
+ return await GetWorkspaceContracts().GetAsync(workspaceId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the details of the workspace specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/workspaces/{workspaceId}
+ ///
+ /// -
+ /// Operation Id
+ /// Workspace_Get
+ ///
+ ///
+ ///
+ /// Workspace identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetWorkspaceContract(string workspaceId, CancellationToken cancellationToken = default)
+ {
+ return GetWorkspaceContracts().Get(workspaceId, cancellationToken);
+ }
+
///
/// Gets an API Management service resource description.
///
@@ -1815,9 +2082,9 @@ public virtual ArmOperation Update(WaitUntil waitU
/// An async collection of that may take multiple service requests to iterate over.
public virtual AsyncPageable GetApisByTagsAsync(string filter = null, int? top = null, int? skip = null, bool? includeNotTaggedApis = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => _apiRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _apiRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _apiClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetApisByTags", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _serviceApiApiRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _serviceApiApiRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _serviceApiApiClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetApisByTags", "value", "nextLink", cancellationToken);
}
///
@@ -1841,9 +2108,9 @@ public virtual AsyncPageable GetApisByTagsAsync(stri
/// A collection of that may take multiple service requests to iterate over.
public virtual Pageable GetApisByTags(string filter = null, int? top = null, int? skip = null, bool? includeNotTaggedApis = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => _apiRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _apiRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _apiClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetApisByTags", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _serviceApiApiRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _serviceApiApiRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedApis);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _serviceApiApiClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetApisByTags", "value", "nextLink", cancellationToken);
}
///
@@ -2050,19 +2317,21 @@ public virtual Response GetContentType(string contentT
///
///
/// Content type identifier.
+ /// Create or update parameters.
/// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> CreateOrUpdateContentTypeAsync(string contentTypeId, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ /// or is null.
+ public virtual async Task> CreateOrUpdateContentTypeAsync(string contentTypeId, ApiManagementContentType apiManagementContentType, ETag? ifMatch = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(contentTypeId, nameof(contentTypeId));
+ Argument.AssertNotNull(apiManagementContentType, nameof(apiManagementContentType));
using var scope = _contentTypeClientDiagnostics.CreateScope("ApiManagementServiceResource.CreateOrUpdateContentType");
scope.Start();
try
{
- var response = await _contentTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, ifMatch, cancellationToken).ConfigureAwait(false);
+ var response = await _contentTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, apiManagementContentType, ifMatch, cancellationToken).ConfigureAwait(false);
return response;
}
catch (Exception e)
@@ -2086,19 +2355,21 @@ public virtual async Task> CreateOrUpdateCont
///
///
/// Content type identifier.
+ /// Create or update parameters.
/// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response CreateOrUpdateContentType(string contentTypeId, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ /// or is null.
+ public virtual Response CreateOrUpdateContentType(string contentTypeId, ApiManagementContentType apiManagementContentType, ETag? ifMatch = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(contentTypeId, nameof(contentTypeId));
+ Argument.AssertNotNull(apiManagementContentType, nameof(apiManagementContentType));
using var scope = _contentTypeClientDiagnostics.CreateScope("ApiManagementServiceResource.CreateOrUpdateContentType");
scope.Start();
try
{
- var response = _contentTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, ifMatch, cancellationToken);
+ var response = _contentTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, apiManagementContentType, ifMatch, cancellationToken);
return response;
}
catch (Exception e)
@@ -2397,20 +2668,22 @@ public virtual Response GetContentItem(string contentT
///
/// Content type identifier.
/// Content item identifier.
+ /// Create or update parameters.
/// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
/// The cancellation token to use.
/// or is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual async Task> CreateOrUpdateContentItemAsync(string contentTypeId, string contentItemId, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ /// , or is null.
+ public virtual async Task> CreateOrUpdateContentItemAsync(string contentTypeId, string contentItemId, ApiManagementContentItem apiManagementContentItem, ETag? ifMatch = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(contentTypeId, nameof(contentTypeId));
Argument.AssertNotNullOrEmpty(contentItemId, nameof(contentItemId));
+ Argument.AssertNotNull(apiManagementContentItem, nameof(apiManagementContentItem));
using var scope = _contentItemClientDiagnostics.CreateScope("ApiManagementServiceResource.CreateOrUpdateContentItem");
scope.Start();
try
{
- var response = await _contentItemRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, contentItemId, ifMatch, cancellationToken).ConfigureAwait(false);
+ var response = await _contentItemRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, contentItemId, apiManagementContentItem, ifMatch, cancellationToken).ConfigureAwait(false);
return response;
}
catch (Exception e)
@@ -2435,20 +2708,22 @@ public virtual async Task> CreateOrUpdateCont
///
/// Content type identifier.
/// Content item identifier.
+ /// Create or update parameters.
/// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
/// The cancellation token to use.
/// or is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual Response CreateOrUpdateContentItem(string contentTypeId, string contentItemId, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ /// , or is null.
+ public virtual Response CreateOrUpdateContentItem(string contentTypeId, string contentItemId, ApiManagementContentItem apiManagementContentItem, ETag? ifMatch = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(contentTypeId, nameof(contentTypeId));
Argument.AssertNotNullOrEmpty(contentItemId, nameof(contentItemId));
+ Argument.AssertNotNull(apiManagementContentItem, nameof(apiManagementContentItem));
using var scope = _contentItemClientDiagnostics.CreateScope("ApiManagementServiceResource.CreateOrUpdateContentItem");
scope.Start();
try
{
- var response = _contentItemRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, contentItemId, ifMatch, cancellationToken);
+ var response = _contentItemRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, contentTypeId, contentItemId, apiManagementContentItem, ifMatch, cancellationToken);
return response;
}
catch (Exception e)
@@ -2730,6 +3005,74 @@ public virtual ArmOperation Backup(WaitUntil waitU
}
}
+ ///
+ /// Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2
+ ///
+ /// -
+ /// Operation Id
+ /// ApiManagementService_MigrateToStv2
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual async Task> MigrateToStv2Async(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.MigrateToStv2");
+ scope.Start();
+ try
+ {
+ var response = await _apiManagementServiceRestClient.MigrateToStv2Async(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(new ApiManagementServiceOperationSource(Client), _apiManagementServiceClientDiagnostics, Pipeline, _apiManagementServiceRestClient.CreateMigrateToStv2Request(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Upgrades an API Management service to the Stv2 platform. For details refer to https://aka.ms/apim-migrate-stv2. This change is not reversible. This is long running operation and could take several minutes to complete.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/migrateToStv2
+ ///
+ /// -
+ /// Operation Id
+ /// ApiManagementService_MigrateToStv2
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The cancellation token to use.
+ public virtual ArmOperation MigrateToStv2(WaitUntil waitUntil, CancellationToken cancellationToken = default)
+ {
+ using var scope = _apiManagementServiceClientDiagnostics.CreateScope("ApiManagementServiceResource.MigrateToStv2");
+ scope.Start();
+ try
+ {
+ var response = _apiManagementServiceRestClient.MigrateToStv2(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken);
+ var operation = new ApiManagementArmOperation(new ApiManagementServiceOperationSource(Client), _apiManagementServiceClientDiagnostics, Pipeline, _apiManagementServiceRestClient.CreateMigrateToStv2Request(Id.SubscriptionId, Id.ResourceGroupName, Id.Name).Request, response, OperationFinalStateVia.Location);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
///
/// Gets the Single-Sign-On token for the API Management Service which is valid for 5 Minutes.
///
@@ -3113,9 +3456,9 @@ public virtual Pageable GetPortalSettings(Cancellati
/// An async collection of that may take multiple service requests to iterate over.
public virtual AsyncPageable GetProductsByTagsAsync(string filter = null, int? top = null, int? skip = null, bool? includeNotTaggedProducts = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => _apiManagementProductProductRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _apiManagementProductProductRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _apiManagementProductProductClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetProductsByTags", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _serviceProductProductRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _serviceProductProductRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _serviceProductProductClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetProductsByTags", "value", "nextLink", cancellationToken);
}
///
@@ -3139,9 +3482,9 @@ public virtual AsyncPageable GetProductsByTagsAsync(
/// A collection of that may take multiple service requests to iterate over.
public virtual Pageable GetProductsByTags(string filter = null, int? top = null, int? skip = null, bool? includeNotTaggedProducts = null, CancellationToken cancellationToken = default)
{
- HttpMessage FirstPageRequest(int? pageSizeHint) => _apiManagementProductProductRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _apiManagementProductProductRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _apiManagementProductProductClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetProductsByTags", "value", "nextLink", cancellationToken);
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _serviceProductProductRestClient.CreateListByTagsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _serviceProductProductRestClient.CreateListByTagsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip, includeNotTaggedProducts);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, TagResourceContractDetails.DeserializeTagResourceContractDetails, _serviceProductProductClientDiagnostics, Pipeline, "ApiManagementServiceResource.GetProductsByTags", "value", "nextLink", cancellationToken);
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs
index 0cb80d8f88c5..cb90d379550c 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionCollection.cs
@@ -68,7 +68,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- /// Create parameters.
+ /// Create parameters.
///
/// Notify change in Subscription State.
/// - If false, do not send any email notification for change of state of subscription
@@ -78,17 +78,17 @@ internal static void ValidateResourceId(ResourceIdentifier id)
/// Determines the type of application which send the create user request. Default is legacy publisher portal.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string sid, ApiManagementSubscriptionCreateOrUpdateContent content, bool? notify = null, ETag? ifMatch = null, AppType? appType = null, CancellationToken cancellationToken = default)
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string sid, SubscriptionCreateParameters subscriptionCreateParameters, bool? notify = null, ETag? ifMatch = null, AppType? appType = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(sid, nameof(sid));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(subscriptionCreateParameters, nameof(subscriptionCreateParameters));
using var scope = _apiManagementSubscriptionSubscriptionClientDiagnostics.CreateScope("ApiManagementSubscriptionCollection.CreateOrUpdate");
scope.Start();
try
{
- var response = await _apiManagementSubscriptionSubscriptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, content, notify, ifMatch, appType, cancellationToken).ConfigureAwait(false);
+ var response = await _apiManagementSubscriptionSubscriptionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, subscriptionCreateParameters, notify, ifMatch, appType, cancellationToken).ConfigureAwait(false);
var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementSubscriptionResource(Client, response), response.GetRawResponse()));
if (waitUntil == WaitUntil.Completed)
await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
@@ -116,7 +116,7 @@ public virtual async Task> Creat
///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// Subscription entity Identifier. The entity represents the association between a user and a product in API Management.
- /// Create parameters.
+ /// Create parameters.
///
/// Notify change in Subscription State.
/// - If false, do not send any email notification for change of state of subscription
@@ -126,17 +126,17 @@ public virtual async Task> Creat
/// Determines the type of application which send the create user request. Default is legacy publisher portal.
/// The cancellation token to use.
/// is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string sid, ApiManagementSubscriptionCreateOrUpdateContent content, bool? notify = null, ETag? ifMatch = null, AppType? appType = null, CancellationToken cancellationToken = default)
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string sid, SubscriptionCreateParameters subscriptionCreateParameters, bool? notify = null, ETag? ifMatch = null, AppType? appType = null, CancellationToken cancellationToken = default)
{
Argument.AssertNotNullOrEmpty(sid, nameof(sid));
- Argument.AssertNotNull(content, nameof(content));
+ Argument.AssertNotNull(subscriptionCreateParameters, nameof(subscriptionCreateParameters));
using var scope = _apiManagementSubscriptionSubscriptionClientDiagnostics.CreateScope("ApiManagementSubscriptionCollection.CreateOrUpdate");
scope.Start();
try
{
- var response = _apiManagementSubscriptionSubscriptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, content, notify, ifMatch, appType, cancellationToken);
+ var response = _apiManagementSubscriptionSubscriptionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sid, subscriptionCreateParameters, notify, ifMatch, appType, cancellationToken);
var operation = new ApiManagementArmOperation(Response.FromValue(new ApiManagementSubscriptionResource(Client, response), response.GetRawResponse()));
if (waitUntil == WaitUntil.Completed)
operation.WaitForCompletion(cancellationToken);
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs
index 1fe8395815e0..389a5bc48478 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementSubscriptionResource.cs
@@ -235,7 +235,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati
///
///
/// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
- /// Update parameters.
+ /// Update parameters.
///
/// Notify change in Subscription State.
/// - If false, do not send any email notification for change of state of subscription
@@ -243,16 +243,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, Cancellati
///
/// Determines the type of application which send the create user request. Default is legacy publisher portal.
/// The cancellation token to use.
- /// is null.
- public virtual async Task> UpdateAsync(ETag ifMatch, ApiManagementSubscriptionPatch patch, bool? notify = null, AppType? appType = null, CancellationToken cancellationToken = default)
+ /// is null.
+ public virtual async Task> UpdateAsync(ETag ifMatch, SubscriptionUpdateParameters subscriptionUpdateParameters, bool? notify = null, AppType? appType = null, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(patch, nameof(patch));
+ Argument.AssertNotNull(subscriptionUpdateParameters, nameof(subscriptionUpdateParameters));
using var scope = _apiManagementSubscriptionSubscriptionClientDiagnostics.CreateScope("ApiManagementSubscriptionResource.Update");
scope.Start();
try
{
- var response = await _apiManagementSubscriptionSubscriptionRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, patch, notify, appType, cancellationToken).ConfigureAwait(false);
+ var response = await _apiManagementSubscriptionSubscriptionRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, subscriptionUpdateParameters, notify, appType, cancellationToken).ConfigureAwait(false);
return Response.FromValue(new ApiManagementSubscriptionResource(Client, response.Value), response.GetRawResponse());
}
catch (Exception e)
@@ -276,7 +276,7 @@ public virtual async Task> UpdateAsy
///
///
/// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
- /// Update parameters.
+ /// Update parameters.
///
/// Notify change in Subscription State.
/// - If false, do not send any email notification for change of state of subscription
@@ -284,16 +284,16 @@ public virtual async Task> UpdateAsy
///
/// Determines the type of application which send the create user request. Default is legacy publisher portal.
/// The cancellation token to use.
- /// is null.
- public virtual Response Update(ETag ifMatch, ApiManagementSubscriptionPatch patch, bool? notify = null, AppType? appType = null, CancellationToken cancellationToken = default)
+ /// is null.
+ public virtual Response Update(ETag ifMatch, SubscriptionUpdateParameters subscriptionUpdateParameters, bool? notify = null, AppType? appType = null, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(patch, nameof(patch));
+ Argument.AssertNotNull(subscriptionUpdateParameters, nameof(subscriptionUpdateParameters));
using var scope = _apiManagementSubscriptionSubscriptionClientDiagnostics.CreateScope("ApiManagementSubscriptionResource.Update");
scope.Start();
try
{
- var response = _apiManagementSubscriptionSubscriptionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, patch, notify, appType, cancellationToken);
+ var response = _apiManagementSubscriptionSubscriptionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, subscriptionUpdateParameters, notify, appType, cancellationToken);
return Response.FromValue(new ApiManagementSubscriptionResource(Client, response.Value), response.GetRawResponse());
}
catch (Exception e)
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs
index c61139dda16b..a646c3dcdfe0 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementTagResource.cs
@@ -87,6 +87,165 @@ internal static void ValidateResourceId(ResourceIdentifier id)
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
}
+ /// Gets a collection of ServiceTagApiLinkResources in the ApiManagementTag.
+ /// An object representing collection of ServiceTagApiLinkResources and their operations over a ServiceTagApiLinkResource.
+ public virtual ServiceTagApiLinkCollection GetServiceTagApiLinks()
+ {
+ return GetCachedClient(Client => new ServiceTagApiLinkCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the API link for the tag.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}
+ ///
+ /// -
+ /// Operation Id
+ /// TagApiLink_Get
+ ///
+ ///
+ ///
+ /// Tag-API link identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetServiceTagApiLinkAsync(string apiLinkId, CancellationToken cancellationToken = default)
+ {
+ return await GetServiceTagApiLinks().GetAsync(apiLinkId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the API link for the tag.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/apiLinks/{apiLinkId}
+ ///
+ /// -
+ /// Operation Id
+ /// TagApiLink_Get
+ ///
+ ///
+ ///
+ /// Tag-API link identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetServiceTagApiLink(string apiLinkId, CancellationToken cancellationToken = default)
+ {
+ return GetServiceTagApiLinks().Get(apiLinkId, cancellationToken);
+ }
+
+ /// Gets a collection of ServiceTagOperationLinkResources in the ApiManagementTag.
+ /// An object representing collection of ServiceTagOperationLinkResources and their operations over a ServiceTagOperationLinkResource.
+ public virtual ServiceTagOperationLinkCollection GetServiceTagOperationLinks()
+ {
+ return GetCachedClient(Client => new ServiceTagOperationLinkCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the operation link for the tag.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}
+ ///
+ /// -
+ /// Operation Id
+ /// TagOperationLink_Get
+ ///
+ ///
+ ///
+ /// Tag-operation link identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetServiceTagOperationLinkAsync(string operationLinkId, CancellationToken cancellationToken = default)
+ {
+ return await GetServiceTagOperationLinks().GetAsync(operationLinkId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the operation link for the tag.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/operationLinks/{operationLinkId}
+ ///
+ /// -
+ /// Operation Id
+ /// TagOperationLink_Get
+ ///
+ ///
+ ///
+ /// Tag-operation link identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetServiceTagOperationLink(string operationLinkId, CancellationToken cancellationToken = default)
+ {
+ return GetServiceTagOperationLinks().Get(operationLinkId, cancellationToken);
+ }
+
+ /// Gets a collection of ServiceTagProductLinkResources in the ApiManagementTag.
+ /// An object representing collection of ServiceTagProductLinkResources and their operations over a ServiceTagProductLinkResource.
+ public virtual ServiceTagProductLinkCollection GetServiceTagProductLinks()
+ {
+ return GetCachedClient(Client => new ServiceTagProductLinkCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the product link for the tag.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}
+ ///
+ /// -
+ /// Operation Id
+ /// TagProductLink_Get
+ ///
+ ///
+ ///
+ /// Tag-product link identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetServiceTagProductLinkAsync(string productLinkId, CancellationToken cancellationToken = default)
+ {
+ return await GetServiceTagProductLinks().GetAsync(productLinkId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the product link for the tag.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/tags/{tagId}/productLinks/{productLinkId}
+ ///
+ /// -
+ /// Operation Id
+ /// TagProductLink_Get
+ ///
+ ///
+ ///
+ /// Tag-product link identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetServiceTagProductLink(string productLinkId, CancellationToken cancellationToken = default)
+ {
+ return GetServiceTagProductLinks().Get(productLinkId, cancellationToken);
+ }
+
///
/// Gets the details of the tag specified by its identifier.
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs
index b34ca80398d5..cf7448f602b7 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiManagementUserResource.cs
@@ -507,12 +507,12 @@ public virtual Response GetSharedAccessToken(UserTokenContent c
/// Number of records to return.
/// Number of records to skip.
/// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetUserGroupsAsync(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetUserGroupsAsync(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _userGroupRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userGroupRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
- return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ApiManagementGroupResource(Client, ApiManagementGroupData.DeserializeApiManagementGroupData(e)), _userGroupClientDiagnostics, Pipeline, "ApiManagementUserResource.GetUserGroups", "value", "nextLink", cancellationToken);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, ApiManagementGroupData.DeserializeApiManagementGroupData, _userGroupClientDiagnostics, Pipeline, "ApiManagementUserResource.GetUserGroups", "value", "nextLink", cancellationToken);
}
///
@@ -532,12 +532,12 @@ public virtual AsyncPageable GetUserGroupsAsync(stri
/// Number of records to return.
/// Number of records to skip.
/// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetUserGroups(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetUserGroups(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
{
HttpMessage FirstPageRequest(int? pageSizeHint) => _userGroupRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _userGroupRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
- return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ApiManagementGroupResource(Client, ApiManagementGroupData.DeserializeApiManagementGroupData(e)), _userGroupClientDiagnostics, Pipeline, "ApiManagementUserResource.GetUserGroups", "value", "nextLink", cancellationToken);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, ApiManagementGroupData.DeserializeApiManagementGroupData, _userGroupClientDiagnostics, Pipeline, "ApiManagementUserResource.GetUserGroups", "value", "nextLink", cancellationToken);
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs
index 9e60f0898c36..8ef96f975c83 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyCollection.cs
@@ -21,8 +21,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiOperationPolicies method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiOperationPolicies method from an instance of .
///
public partial class ApiOperationPolicyCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -49,8 +49,8 @@ internal ApiOperationPolicyCollection(ArmClient client, ResourceIdentifier id) :
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiOperationResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiOperationResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiOperationResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiOperationResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs
index 0be4a2063124..9c8a9b23cc19 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationPolicyResource.cs
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiOperationPolicy along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiOperationPolicyResource method.
- /// Otherwise you can get one from its parent resource using the GetApiOperationPolicy method.
+ /// Otherwise you can get one from its parent resource using the GetApiOperationPolicy method.
///
public partial class ApiOperationPolicyResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs
index e81cd32fb8e0..051aa10933cc 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagCollection.cs
@@ -20,8 +20,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiOperationTags method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiOperationTags method from an instance of .
///
public partial class ApiOperationTagCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -48,8 +48,8 @@ internal ApiOperationTagCollection(ArmClient client, ResourceIdentifier id) : ba
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiOperationResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiOperationResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiOperationResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiOperationResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs
index e47445d6b0eb..01c7c02e9c9a 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiOperationTagResource.cs
@@ -20,7 +20,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiOperationTag along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiOperationTagResource method.
- /// Otherwise you can get one from its parent resource using the GetApiOperationTag method.
+ /// Otherwise you can get one from its parent resource using the GetApiOperationTag method.
///
public partial class ApiOperationTagResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs
index 81887d277602..3ecda2f09ca0 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyCollection.cs
@@ -21,8 +21,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiPolicies method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiPolicies method from an instance of .
///
public partial class ApiPolicyCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -49,8 +49,8 @@ internal ApiPolicyCollection(ArmClient client, ResourceIdentifier id) : base(cli
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs
index 668f59c6afd3..920eed8b283b 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiPolicyResource.cs
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiPolicy along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiPolicyResource method.
- /// Otherwise you can get one from its parent resource using the GetApiPolicy method.
+ /// Otherwise you can get one from its parent resource using the GetApiPolicy method.
///
public partial class ApiPolicyResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs
index 0fdad507e08a..23c28b2bba79 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagCollection.cs
@@ -20,8 +20,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiTags method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiTags method from an instance of .
///
public partial class ApiTagCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -48,8 +48,8 @@ internal ApiTagCollection(ArmClient client, ResourceIdentifier id) : base(client
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs
index c9a44a8a922a..701236831686 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionCollection.cs
@@ -21,8 +21,8 @@ namespace Azure.ResourceManager.ApiManagement
{
///
/// A class representing a collection of and their operations.
- /// Each in the collection will belong to the same instance of .
- /// To get an instance call the GetApiTagDescriptions method from an instance of .
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetApiTagDescriptions method from an instance of .
///
public partial class ApiTagDescriptionCollection : ArmCollection, IEnumerable, IAsyncEnumerable
{
@@ -49,8 +49,8 @@ internal ApiTagDescriptionCollection(ArmClient client, ResourceIdentifier id) :
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != ApiResource.ResourceType)
- throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiResource.ResourceType), nameof(id));
+ if (id.ResourceType != ServiceApiResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ServiceApiResource.ResourceType), nameof(id));
}
///
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs
index ac20bc7195d8..0e8f61ff494e 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagDescriptionResource.cs
@@ -21,7 +21,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiTagDescription along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiTagDescriptionResource method.
- /// Otherwise you can get one from its parent resource using the GetApiTagDescription method.
+ /// Otherwise you can get one from its parent resource using the GetApiTagDescription method.
///
public partial class ApiTagDescriptionResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs
index b927e9cbbcab..f3b01a683607 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/ApiTagResource.cs
@@ -20,7 +20,7 @@ namespace Azure.ResourceManager.ApiManagement
/// A Class representing an ApiTag along with the instance operations that can be performed on it.
/// If you have a you can construct an
/// from an instance of using the GetApiTagResource method.
- /// Otherwise you can get one from its parent resource using the GetApiTag method.
+ /// Otherwise you can get one from its parent resource using the GetApiTag method.
///
public partial class ApiTagResource : ArmResource
{
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractCollection.cs
new file mode 100644
index 000000000000..ab234f8b2d4e
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractCollection.cs
@@ -0,0 +1,348 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetAuthorizationAccessPolicyContracts method from an instance of .
+ ///
+ public partial class AuthorizationAccessPolicyContractCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics;
+ private readonly AuthorizationAccessPolicyRestOperations _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected AuthorizationAccessPolicyContractCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal AuthorizationAccessPolicyContractCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", AuthorizationAccessPolicyContractResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(AuthorizationAccessPolicyContractResource.ResourceType, out string authorizationAccessPolicyContractAuthorizationAccessPolicyApiVersion);
+ _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient = new AuthorizationAccessPolicyRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, authorizationAccessPolicyContractAuthorizationAccessPolicyApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != AuthorizationContractResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AuthorizationContractResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Creates or updates Authorization Access Policy.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Identifier of the authorization access policy.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string authorizationAccessPolicyId, AuthorizationAccessPolicyContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationAccessPolicyId, nameof(authorizationAccessPolicyId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationAccessPolicyId, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates Authorization Access Policy.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Identifier of the authorization access policy.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string authorizationAccessPolicyId, AuthorizationAccessPolicyContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationAccessPolicyId, nameof(authorizationAccessPolicyId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationAccessPolicyId, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization access policy specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization access policy.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string authorizationAccessPolicyId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationAccessPolicyId, nameof(authorizationAccessPolicyId));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationAccessPolicyId, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization access policy specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization access policy.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string authorizationAccessPolicyId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationAccessPolicyId, nameof(authorizationAccessPolicyId));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationAccessPolicyId, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists a collection of authorization access policy defined within a authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_ListByAuthorization
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateListByAuthorizationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateListByAuthorizationNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, top, skip);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AuthorizationAccessPolicyContractResource(Client, AuthorizationAccessPolicyContractData.DeserializeAuthorizationAccessPolicyContractData(e)), _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics, Pipeline, "AuthorizationAccessPolicyContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists a collection of authorization access policy defined within a authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_ListByAuthorization
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateListByAuthorizationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateListByAuthorizationNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, top, skip);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AuthorizationAccessPolicyContractResource(Client, AuthorizationAccessPolicyContractData.DeserializeAuthorizationAccessPolicyContractData(e)), _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics, Pipeline, "AuthorizationAccessPolicyContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization access policy.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string authorizationAccessPolicyId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationAccessPolicyId, nameof(authorizationAccessPolicyId));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationAccessPolicyId, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization access policy.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string authorizationAccessPolicyId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationAccessPolicyId, nameof(authorizationAccessPolicyId));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationAccessPolicyId, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractData.cs
new file mode 100644
index 000000000000..f7e745f4e1f5
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractData.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing the AuthorizationAccessPolicyContract data model.
+ /// Authorization access policy contract.
+ ///
+ public partial class AuthorizationAccessPolicyContractData : ResourceData
+ {
+ /// Initializes a new instance of AuthorizationAccessPolicyContractData.
+ public AuthorizationAccessPolicyContractData()
+ {
+ }
+
+ /// Initializes a new instance of AuthorizationAccessPolicyContractData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// The Tenant Id.
+ /// The Object Id.
+ internal AuthorizationAccessPolicyContractData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Guid? tenantId, string objectId) : base(id, name, resourceType, systemData)
+ {
+ TenantId = tenantId;
+ ObjectId = objectId;
+ }
+
+ /// The Tenant Id.
+ public Guid? TenantId { get; set; }
+ /// The Object Id.
+ public string ObjectId { get; set; }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractResource.cs
new file mode 100644
index 000000000000..f1622f47a36d
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationAccessPolicyContractResource.cs
@@ -0,0 +1,301 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A Class representing an AuthorizationAccessPolicyContract along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetAuthorizationAccessPolicyContractResource method.
+ /// Otherwise you can get one from its parent resource using the GetAuthorizationAccessPolicyContract method.
+ ///
+ public partial class AuthorizationAccessPolicyContractResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceName, string authorizationProviderId, string authorizationId, string authorizationAccessPolicyId)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics;
+ private readonly AuthorizationAccessPolicyRestOperations _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient;
+ private readonly AuthorizationAccessPolicyContractData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected AuthorizationAccessPolicyContractResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal AuthorizationAccessPolicyContractResource(ArmClient client, AuthorizationAccessPolicyContractData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal AuthorizationAccessPolicyContractResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string authorizationAccessPolicyContractAuthorizationAccessPolicyApiVersion);
+ _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient = new AuthorizationAccessPolicyRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, authorizationAccessPolicyContractAuthorizationAccessPolicyApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.ApiManagement/service/authorizationProviders/authorizations/accessPolicies";
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual AuthorizationAccessPolicyContractData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ ///
+ /// Gets the details of the authorization access policy specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization access policy specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes specific access policy from the Authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes specific access policy from the Authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates Authorization Access Policy.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, AuthorizationAccessPolicyContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates Authorization Access Policy.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, AuthorizationAccessPolicyContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationAccessPolicyContractAuthorizationAccessPolicyClientDiagnostics.CreateScope("AuthorizationAccessPolicyContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _authorizationAccessPolicyContractAuthorizationAccessPolicyRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationAccessPolicyContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractCollection.cs
new file mode 100644
index 000000000000..7cef891e0160
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractCollection.cs
@@ -0,0 +1,348 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetAuthorizationContracts method from an instance of .
+ ///
+ public partial class AuthorizationContractCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _authorizationContractAuthorizationClientDiagnostics;
+ private readonly AuthorizationRestOperations _authorizationContractAuthorizationRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected AuthorizationContractCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal AuthorizationContractCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _authorizationContractAuthorizationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", AuthorizationContractResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(AuthorizationContractResource.ResourceType, out string authorizationContractAuthorizationApiVersion);
+ _authorizationContractAuthorizationRestClient = new AuthorizationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, authorizationContractAuthorizationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != AuthorizationProviderContractResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, AuthorizationProviderContractResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Creates or updates authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Identifier of the authorization.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string authorizationId, AuthorizationContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationId, nameof(authorizationId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationId, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Identifier of the authorization.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string authorizationId, AuthorizationContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationId, nameof(authorizationId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationId, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string authorizationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationId, nameof(authorizationId));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationId, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string authorizationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationId, nameof(authorizationId));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationId, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists a collection of authorization providers defined within a authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_ListByAuthorizationProvider
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _authorizationContractAuthorizationRestClient.CreateListByAuthorizationProviderRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _authorizationContractAuthorizationRestClient.CreateListByAuthorizationProviderNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AuthorizationContractResource(Client, AuthorizationContractData.DeserializeAuthorizationContractData(e)), _authorizationContractAuthorizationClientDiagnostics, Pipeline, "AuthorizationContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists a collection of authorization providers defined within a authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_ListByAuthorizationProvider
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _authorizationContractAuthorizationRestClient.CreateListByAuthorizationProviderRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _authorizationContractAuthorizationRestClient.CreateListByAuthorizationProviderNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, filter, top, skip);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AuthorizationContractResource(Client, AuthorizationContractData.DeserializeAuthorizationContractData(e)), _authorizationContractAuthorizationClientDiagnostics, Pipeline, "AuthorizationContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string authorizationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationId, nameof(authorizationId));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationId, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string authorizationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationId, nameof(authorizationId));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, authorizationId, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractData.cs
new file mode 100644
index 000000000000..d5b912d4f27d
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractData.cs
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure.Core;
+using Azure.ResourceManager.ApiManagement.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing the AuthorizationContract data model.
+ /// Authorization contract.
+ ///
+ public partial class AuthorizationContractData : ResourceData
+ {
+ /// Initializes a new instance of AuthorizationContractData.
+ public AuthorizationContractData()
+ {
+ Parameters = new ChangeTrackingDictionary();
+ }
+
+ /// Initializes a new instance of AuthorizationContractData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Authorization type options.
+ /// OAuth2 grant type options.
+ /// Authorization parameters.
+ /// Authorization error details.
+ /// Status of the Authorization.
+ internal AuthorizationContractData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AuthorizationType? authorizationType, OAuth2GrantType? oAuth2GrantType, IDictionary parameters, AuthorizationError error, string status) : base(id, name, resourceType, systemData)
+ {
+ AuthorizationType = authorizationType;
+ OAuth2GrantType = oAuth2GrantType;
+ Parameters = parameters;
+ Error = error;
+ Status = status;
+ }
+
+ /// Authorization type options.
+ public AuthorizationType? AuthorizationType { get; set; }
+ /// OAuth2 grant type options.
+ public OAuth2GrantType? OAuth2GrantType { get; set; }
+ /// Authorization parameters.
+ public IDictionary Parameters { get; }
+ /// Authorization error details.
+ public AuthorizationError Error { get; set; }
+ /// Status of the Authorization.
+ public string Status { get; set; }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractResource.cs
new file mode 100644
index 000000000000..368365144352
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationContractResource.cs
@@ -0,0 +1,495 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.ApiManagement.Models;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A Class representing an AuthorizationContract along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetAuthorizationContractResource method.
+ /// Otherwise you can get one from its parent resource using the GetAuthorizationContract method.
+ ///
+ public partial class AuthorizationContractResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceName, string authorizationProviderId, string authorizationId)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _authorizationContractAuthorizationClientDiagnostics;
+ private readonly AuthorizationRestOperations _authorizationContractAuthorizationRestClient;
+ private readonly ClientDiagnostics _authorizationLoginLinksClientDiagnostics;
+ private readonly AuthorizationLoginLinksRestOperations _authorizationLoginLinksRestClient;
+ private readonly AuthorizationContractData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected AuthorizationContractResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal AuthorizationContractResource(ArmClient client, AuthorizationContractData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal AuthorizationContractResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _authorizationContractAuthorizationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string authorizationContractAuthorizationApiVersion);
+ _authorizationContractAuthorizationRestClient = new AuthorizationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, authorizationContractAuthorizationApiVersion);
+ _authorizationLoginLinksClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ProviderConstants.DefaultProviderNamespace, Diagnostics);
+ _authorizationLoginLinksRestClient = new AuthorizationLoginLinksRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.ApiManagement/service/authorizationProviders/authorizations";
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual AuthorizationContractData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ /// Gets a collection of AuthorizationAccessPolicyContractResources in the AuthorizationContract.
+ /// An object representing collection of AuthorizationAccessPolicyContractResources and their operations over a AuthorizationAccessPolicyContractResource.
+ public virtual AuthorizationAccessPolicyContractCollection GetAuthorizationAccessPolicyContracts()
+ {
+ return GetCachedClient(Client => new AuthorizationAccessPolicyContractCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the details of the authorization access policy specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization access policy.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetAuthorizationAccessPolicyContractAsync(string authorizationAccessPolicyId, CancellationToken cancellationToken = default)
+ {
+ return await GetAuthorizationAccessPolicyContracts().GetAsync(authorizationAccessPolicyId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the details of the authorization access policy specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/accessPolicies/{authorizationAccessPolicyId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationAccessPolicy_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization access policy.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetAuthorizationAccessPolicyContract(string authorizationAccessPolicyId, CancellationToken cancellationToken = default)
+ {
+ return GetAuthorizationAccessPolicyContracts().Get(authorizationAccessPolicyId, cancellationToken);
+ }
+
+ ///
+ /// Gets the details of the authorization specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes specific Authorization from the Authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes specific Authorization from the Authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, AuthorizationContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates authorization.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, AuthorizationContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Confirm valid consent code to suppress Authorizations anti-phishing page.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_ConfirmConsentCode
+ ///
+ ///
+ ///
+ /// Create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task ConfirmConsentCodeAsync(AuthorizationConfirmConsentCodeRequestContract authorizationConfirmConsentCodeRequestContract, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(authorizationConfirmConsentCodeRequestContract, nameof(authorizationConfirmConsentCodeRequestContract));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.ConfirmConsentCode");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationContractAuthorizationRestClient.ConfirmConsentCodeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationConfirmConsentCodeRequestContract, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Confirm valid consent code to suppress Authorizations anti-phishing page.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/confirmConsentCode
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_ConfirmConsentCode
+ ///
+ ///
+ ///
+ /// Create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response ConfirmConsentCode(AuthorizationConfirmConsentCodeRequestContract authorizationConfirmConsentCodeRequestContract, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(authorizationConfirmConsentCodeRequestContract, nameof(authorizationConfirmConsentCodeRequestContract));
+
+ using var scope = _authorizationContractAuthorizationClientDiagnostics.CreateScope("AuthorizationContractResource.ConfirmConsentCode");
+ scope.Start();
+ try
+ {
+ var response = _authorizationContractAuthorizationRestClient.ConfirmConsentCode(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationConfirmConsentCodeRequestContract, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets authorization login links.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationLoginLinks_Post
+ ///
+ ///
+ ///
+ /// Create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> PostAuthorizationLoginLinkAsync(AuthorizationLoginRequestContract authorizationLoginRequestContract, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(authorizationLoginRequestContract, nameof(authorizationLoginRequestContract));
+
+ using var scope = _authorizationLoginLinksClientDiagnostics.CreateScope("AuthorizationContractResource.PostAuthorizationLoginLink");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationLoginLinksRestClient.PostAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationLoginRequestContract, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets authorization login links.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}/getLoginLinks
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationLoginLinks_Post
+ ///
+ ///
+ ///
+ /// Create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response PostAuthorizationLoginLink(AuthorizationLoginRequestContract authorizationLoginRequestContract, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(authorizationLoginRequestContract, nameof(authorizationLoginRequestContract));
+
+ using var scope = _authorizationLoginLinksClientDiagnostics.CreateScope("AuthorizationContractResource.PostAuthorizationLoginLink");
+ scope.Start();
+ try
+ {
+ var response = _authorizationLoginLinksRestClient.Post(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, authorizationLoginRequestContract, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractCollection.cs
new file mode 100644
index 000000000000..75e276373754
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractCollection.cs
@@ -0,0 +1,348 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get an instance call the GetAuthorizationProviderContracts method from an instance of .
+ ///
+ public partial class AuthorizationProviderContractCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _authorizationProviderContractAuthorizationProviderClientDiagnostics;
+ private readonly AuthorizationProviderRestOperations _authorizationProviderContractAuthorizationProviderRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected AuthorizationProviderContractCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal AuthorizationProviderContractCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _authorizationProviderContractAuthorizationProviderClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", AuthorizationProviderContractResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(AuthorizationProviderContractResource.ResourceType, out string authorizationProviderContractAuthorizationProviderApiVersion);
+ _authorizationProviderContractAuthorizationProviderRestClient = new AuthorizationProviderRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, authorizationProviderContractAuthorizationProviderApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ApiManagementServiceResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiManagementServiceResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Creates or updates authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Identifier of the authorization provider.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string authorizationProviderId, AuthorizationProviderContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationProviderId, nameof(authorizationProviderId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationProviderContractAuthorizationProviderRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationProviderId, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationProviderContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Identifier of the authorization provider.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string authorizationProviderId, AuthorizationProviderContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationProviderId, nameof(authorizationProviderId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _authorizationProviderContractAuthorizationProviderRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationProviderId, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationProviderContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization provider specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization provider.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string authorizationProviderId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationProviderId, nameof(authorizationProviderId));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationProviderContractAuthorizationProviderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationProviderId, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationProviderContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization provider specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization provider.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string authorizationProviderId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationProviderId, nameof(authorizationProviderId));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _authorizationProviderContractAuthorizationProviderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationProviderId, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationProviderContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists a collection of authorization providers defined within a service instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_ListByService
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _authorizationProviderContractAuthorizationProviderRestClient.CreateListByServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _authorizationProviderContractAuthorizationProviderRestClient.CreateListByServiceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AuthorizationProviderContractResource(Client, AuthorizationProviderContractData.DeserializeAuthorizationProviderContractData(e)), _authorizationProviderContractAuthorizationProviderClientDiagnostics, Pipeline, "AuthorizationProviderContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists a collection of authorization providers defined within a service instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_ListByService
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>| displayName | filter | ge, le, eq, ne, gt, lt | substringof, contains, startswith, endswith |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _authorizationProviderContractAuthorizationProviderRestClient.CreateListByServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _authorizationProviderContractAuthorizationProviderRestClient.CreateListByServiceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AuthorizationProviderContractResource(Client, AuthorizationProviderContractData.DeserializeAuthorizationProviderContractData(e)), _authorizationProviderContractAuthorizationProviderClientDiagnostics, Pipeline, "AuthorizationProviderContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization provider.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string authorizationProviderId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationProviderId, nameof(authorizationProviderId));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationProviderContractAuthorizationProviderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationProviderId, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization provider.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string authorizationProviderId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(authorizationProviderId, nameof(authorizationProviderId));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _authorizationProviderContractAuthorizationProviderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, authorizationProviderId, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractData.cs
new file mode 100644
index 000000000000..8e72826c6263
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractData.cs
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+using Azure.ResourceManager.ApiManagement.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing the AuthorizationProviderContract data model.
+ /// Authorization Provider contract.
+ ///
+ public partial class AuthorizationProviderContractData : ResourceData
+ {
+ /// Initializes a new instance of AuthorizationProviderContractData.
+ public AuthorizationProviderContractData()
+ {
+ }
+
+ /// Initializes a new instance of AuthorizationProviderContractData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Authorization Provider name. Must be 1 to 300 characters long.
+ /// Identity provider name. Must be 1 to 300 characters long.
+ /// OAuth2 settings.
+ internal AuthorizationProviderContractData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string displayName, string identityProvider, AuthorizationProviderOAuth2Settings oauth2) : base(id, name, resourceType, systemData)
+ {
+ DisplayName = displayName;
+ IdentityProvider = identityProvider;
+ Oauth2 = oauth2;
+ }
+
+ /// Authorization Provider name. Must be 1 to 300 characters long.
+ public string DisplayName { get; set; }
+ /// Identity provider name. Must be 1 to 300 characters long.
+ public string IdentityProvider { get; set; }
+ /// OAuth2 settings.
+ public AuthorizationProviderOAuth2Settings Oauth2 { get; set; }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractResource.cs
new file mode 100644
index 000000000000..800d08af29af
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/AuthorizationProviderContractResource.cs
@@ -0,0 +1,354 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A Class representing an AuthorizationProviderContract along with the instance operations that can be performed on it.
+ /// If you have a you can construct an
+ /// from an instance of using the GetAuthorizationProviderContractResource method.
+ /// Otherwise you can get one from its parent resource using the GetAuthorizationProviderContract method.
+ ///
+ public partial class AuthorizationProviderContractResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceName, string authorizationProviderId)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _authorizationProviderContractAuthorizationProviderClientDiagnostics;
+ private readonly AuthorizationProviderRestOperations _authorizationProviderContractAuthorizationProviderRestClient;
+ private readonly AuthorizationProviderContractData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected AuthorizationProviderContractResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal AuthorizationProviderContractResource(ArmClient client, AuthorizationProviderContractData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal AuthorizationProviderContractResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _authorizationProviderContractAuthorizationProviderClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string authorizationProviderContractAuthorizationProviderApiVersion);
+ _authorizationProviderContractAuthorizationProviderRestClient = new AuthorizationProviderRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, authorizationProviderContractAuthorizationProviderApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.ApiManagement/service/authorizationProviders";
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual AuthorizationProviderContractData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ /// Gets a collection of AuthorizationContractResources in the AuthorizationProviderContract.
+ /// An object representing collection of AuthorizationContractResources and their operations over a AuthorizationContractResource.
+ public virtual AuthorizationContractCollection GetAuthorizationContracts()
+ {
+ return GetCachedClient(Client => new AuthorizationContractCollection(Client, Id));
+ }
+
+ ///
+ /// Gets the details of the authorization specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual async Task> GetAuthorizationContractAsync(string authorizationId, CancellationToken cancellationToken = default)
+ {
+ return await GetAuthorizationContracts().GetAsync(authorizationId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Gets the details of the authorization specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}/authorizations/{authorizationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Authorization_Get
+ ///
+ ///
+ ///
+ /// Identifier of the authorization.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ [ForwardsClientCalls]
+ public virtual Response GetAuthorizationContract(string authorizationId, CancellationToken cancellationToken = default)
+ {
+ return GetAuthorizationContracts().Get(authorizationId, cancellationToken);
+ }
+
+ ///
+ /// Gets the details of the authorization provider specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationProviderContractAuthorizationProviderRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationProviderContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the authorization provider specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _authorizationProviderContractAuthorizationProviderRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new AuthorizationProviderContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes specific authorization provider from the API Management service instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationProviderContractAuthorizationProviderRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes specific authorization provider from the API Management service instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _authorizationProviderContractAuthorizationProviderRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, AuthorizationProviderContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _authorizationProviderContractAuthorizationProviderRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationProviderContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates or updates authorization provider.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/authorizationProviders/{authorizationProviderId}
+ ///
+ /// -
+ /// Operation Id
+ /// AuthorizationProvider_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, AuthorizationProviderContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _authorizationProviderContractAuthorizationProviderClientDiagnostics.CreateScope("AuthorizationProviderContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _authorizationProviderContractAuthorizationProviderRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new AuthorizationProviderContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractCollection.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractCollection.cs
new file mode 100644
index 000000000000..097718e8e2ac
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractCollection.cs
@@ -0,0 +1,348 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing a collection of and their operations.
+ /// Each in the collection will belong to the same instance of .
+ /// To get a instance call the GetDocumentationContracts method from an instance of .
+ ///
+ public partial class DocumentationContractCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _documentationContractDocumentationClientDiagnostics;
+ private readonly DocumentationRestOperations _documentationContractDocumentationRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DocumentationContractCollection()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the parent resource that is the target of operations.
+ internal DocumentationContractCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _documentationContractDocumentationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", DocumentationContractResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(DocumentationContractResource.ResourceType, out string documentationContractDocumentationApiVersion);
+ _documentationContractDocumentationRestClient = new DocumentationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, documentationContractDocumentationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ApiManagementServiceResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ApiManagementServiceResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Creates a new Documentation or updates an existing one.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string documentationId, DocumentationContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(documentationId, nameof(documentationId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, documentationId, data, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new DocumentationContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Creates a new Documentation or updates an existing one.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_CreateOrUpdate
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// Create parameters.
+ /// ETag of the Entity. Not required when creating an entity, but required when updating an entity.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string documentationId, DocumentationContractData data, ETag? ifMatch = null, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(documentationId, nameof(documentationId));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, documentationId, data, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(Response.FromValue(new DocumentationContractResource(Client, response), response.GetRawResponse()));
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the Documentation specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string documentationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(documentationId, nameof(documentationId));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, documentationId, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DocumentationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the Documentation specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string documentationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(documentationId, nameof(documentationId));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, documentationId, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DocumentationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists all Documentations of the API Management service instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_ListByService
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | eq | contains |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _documentationContractDocumentationRestClient.CreateListByServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _documentationContractDocumentationRestClient.CreateListByServiceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ return PageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new DocumentationContractResource(Client, DocumentationContractData.DeserializeDocumentationContractData(e)), _documentationContractDocumentationClientDiagnostics, Pipeline, "DocumentationContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists all Documentations of the API Management service instance.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_ListByService
+ ///
+ ///
+ ///
+ /// | Field | Usage | Supported operators | Supported functions |</br>|-------------|-------------|-------------|-------------|</br>| name | filter | eq | contains |</br>.
+ /// Number of records to return.
+ /// Number of records to skip.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(string filter = null, int? top = null, int? skip = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _documentationContractDocumentationRestClient.CreateListByServiceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _documentationContractDocumentationRestClient.CreateListByServiceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, top, skip);
+ return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new DocumentationContractResource(Client, DocumentationContractData.DeserializeDocumentationContractData(e)), _documentationContractDocumentationClientDiagnostics, Pipeline, "DocumentationContractCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string documentationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(documentationId, nameof(documentationId));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, documentationId, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// Documentation identifier. Must be unique in the current API Management service instance.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string documentationId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(documentationId, nameof(documentationId));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, documentationId, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractData.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractData.cs
new file mode 100644
index 000000000000..7d32750e81f6
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractData.cs
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A class representing the DocumentationContract data model.
+ /// Markdown documentation details.
+ ///
+ public partial class DocumentationContractData : ResourceData
+ {
+ /// Initializes a new instance of DocumentationContractData.
+ public DocumentationContractData()
+ {
+ }
+
+ /// Initializes a new instance of DocumentationContractData.
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// documentation title.
+ /// Markdown documentation content.
+ internal DocumentationContractData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string title, string content) : base(id, name, resourceType, systemData)
+ {
+ Title = title;
+ Content = content;
+ }
+
+ /// documentation title.
+ public string Title { get; set; }
+ /// Markdown documentation content.
+ public string Content { get; set; }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractResource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractResource.cs
new file mode 100644
index 000000000000..6a1732a45b40
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/DocumentationContractResource.cs
@@ -0,0 +1,354 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Globalization;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Core.Pipeline;
+using Azure.ResourceManager;
+using Azure.ResourceManager.ApiManagement.Models;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ ///
+ /// A Class representing a DocumentationContract along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetDocumentationContractResource method.
+ /// Otherwise you can get one from its parent resource using the GetDocumentationContract method.
+ ///
+ public partial class DocumentationContractResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceName, string documentationId)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _documentationContractDocumentationClientDiagnostics;
+ private readonly DocumentationRestOperations _documentationContractDocumentationRestClient;
+ private readonly DocumentationContractData _data;
+
+ /// Initializes a new instance of the class for mocking.
+ protected DocumentationContractResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal DocumentationContractResource(ArmClient client, DocumentationContractData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal DocumentationContractResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _documentationContractDocumentationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.ApiManagement", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string documentationContractDocumentationApiVersion);
+ _documentationContractDocumentationRestClient = new DocumentationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, documentationContractDocumentationApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.ApiManagement/service/documentations";
+
+ /// Gets whether or not the current instance has data.
+ public virtual bool HasData { get; }
+
+ /// Gets the data representing this Feature.
+ /// Throws if there is no data loaded in the current instance.
+ public virtual DocumentationContractData Data
+ {
+ get
+ {
+ if (!HasData)
+ throw new InvalidOperationException("The current instance does not have data, you must call Get first.");
+ return _data;
+ }
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
+ }
+
+ ///
+ /// Gets the details of the Documentation specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DocumentationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the details of the Documentation specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Get
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new DocumentationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes the specified Documentation from an API.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual async Task DeleteAsync(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken).ConfigureAwait(false);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Deletes the specified Documentation from an API.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Delete
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// The cancellation token to use.
+ public virtual ArmOperation Delete(WaitUntil waitUntil, ETag ifMatch, CancellationToken cancellationToken = default)
+ {
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, cancellationToken);
+ var operation = new ApiManagementArmOperation(response);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletionResponse(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Updates the details of the Documentation for an API specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Update
+ ///
+ ///
+ ///
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// Documentation Update parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(ETag ifMatch, DocumentationContractPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, patch, cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(new DocumentationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Updates the details of the Documentation for an API specified by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_Update
+ ///
+ ///
+ ///
+ /// ETag of the Entity. ETag should match the current entity state from the header response of the GET request or it should be * for unconditional update.
+ /// Documentation Update parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual Response Update(ETag ifMatch, DocumentationContractPatch patch, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(patch, nameof(patch));
+
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, ifMatch, patch, cancellationToken);
+ return Response.FromValue(new DocumentationContractResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the entity state (Etag) version of the Documentation by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_GetEntityTag
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetEntityTagAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.GetEntityTag");
+ scope.Start();
+ try
+ {
+ var response = await _documentationContractDocumentationRestClient.GetEntityTagAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Gets the entity state (Etag) version of the Documentation by its identifier.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ApiManagement/service/{serviceName}/documentations/{documentationId}
+ ///
+ /// -
+ /// Operation Id
+ /// Documentation_GetEntityTag
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response GetEntityTag(CancellationToken cancellationToken = default)
+ {
+ using var scope = _documentationContractDocumentationClientDiagnostics.CreateScope("DocumentationContractResource.GetEntityTag");
+ scope.Start();
+ try
+ {
+ var response = _documentationContractDocumentationRestClient.GetEntityTag(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken);
+ return response;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Extensions/ApiManagementExtensions.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Extensions/ApiManagementExtensions.cs
index cbbef042984f..8034c248388c 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Extensions/ApiManagementExtensions.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Extensions/ApiManagementExtensions.cs
@@ -365,58 +365,115 @@ public static Response GetApiManagementService(thi
return resourceGroupResource.GetApiManagementServices().Get(serviceName, cancellationToken);
}
- #region ApiResource
+ #region ServiceApiResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiResource GetApiResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceApiResource GetServiceApiResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiResource.ValidateResourceId(id);
- return new ApiResource(client, id);
+ ServiceApiResource.ValidateResourceId(id);
+ return new ServiceApiResource(client, id);
}
);
}
#endregion
- #region ApiReleaseResource
+ #region ServiceWorkspaceApiResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiReleaseResource GetApiReleaseResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceWorkspaceApiResource GetServiceWorkspaceApiResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiReleaseResource.ValidateResourceId(id);
- return new ApiReleaseResource(client, id);
+ ServiceWorkspaceApiResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiResource(client, id);
}
);
}
#endregion
- #region ApiOperationResource
+ #region ServiceApiReleaseResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiOperationResource GetApiOperationResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceApiReleaseResource GetServiceApiReleaseResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiOperationResource.ValidateResourceId(id);
- return new ApiOperationResource(client, id);
+ ServiceApiReleaseResource.ValidateResourceId(id);
+ return new ServiceApiReleaseResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceApiReleaseResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceApiReleaseResource GetServiceWorkspaceApiReleaseResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceApiReleaseResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiReleaseResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceApiOperationResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceApiOperationResource GetServiceApiOperationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceApiOperationResource.ValidateResourceId(id);
+ return new ServiceApiOperationResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceApiOperationResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceApiOperationResource GetServiceWorkspaceApiOperationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceApiOperationResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiOperationResource(client, id);
}
);
}
@@ -441,6 +498,25 @@ public static ApiOperationPolicyResource GetApiOperationPolicyResource(this ArmC
}
#endregion
+ #region ServiceApiResolverPolicyResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceApiResolverPolicyResource GetServiceApiResolverPolicyResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceApiResolverPolicyResource.ValidateResourceId(id);
+ return new ServiceApiResolverPolicyResource(client, id);
+ }
+ );
+ }
+ #endregion
+
#region ApiPolicyResource
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
@@ -498,6 +574,82 @@ public static ApiManagementProductPolicyResource GetApiManagementProductPolicyRe
}
#endregion
+ #region ServiceWorkspacePolicyResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspacePolicyResource GetServiceWorkspacePolicyResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspacePolicyResource.ValidateResourceId(id);
+ return new ServiceWorkspacePolicyResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceApiOperationPolicyResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceApiOperationPolicyResource GetServiceWorkspaceApiOperationPolicyResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceApiOperationPolicyResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiOperationPolicyResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceApiPolicyResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceApiPolicyResource GetServiceWorkspaceApiPolicyResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceApiPolicyResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiPolicyResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceProductPolicyResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceProductPolicyResource GetServiceWorkspaceProductPolicyResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceProductPolicyResource.ValidateResourceId(id);
+ return new ServiceWorkspaceProductPolicyResource(client, id);
+ }
+ );
+ }
+ #endregion
+
#region ApiOperationTagResource
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
@@ -574,20 +726,77 @@ public static ApiManagementTagResource GetApiManagementTagResource(this ArmClien
}
#endregion
- #region ApiSchemaResource
+ #region ServiceWorkspaceTagResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceTagResource GetServiceWorkspaceTagResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceTagResource.ValidateResourceId(id);
+ return new ServiceWorkspaceTagResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ResolverContractResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ResolverContractResource GetResolverContractResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ResolverContractResource.ValidateResourceId(id);
+ return new ResolverContractResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceApiSchemaResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiSchemaResource GetApiSchemaResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceApiSchemaResource GetServiceApiSchemaResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiSchemaResource.ValidateResourceId(id);
- return new ApiSchemaResource(client, id);
+ ServiceApiSchemaResource.ValidateResourceId(id);
+ return new ServiceApiSchemaResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceApiSchemaResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceApiSchemaResource GetServiceWorkspaceApiSchemaResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceApiSchemaResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiSchemaResource(client, id);
}
);
}
@@ -726,20 +935,134 @@ public static ApiTagDescriptionResource GetApiTagDescriptionResource(this ArmCli
}
#endregion
- #region ApiVersionSetResource
+ #region ServiceApiWikiResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceApiWikiResource GetServiceApiWikiResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceApiWikiResource.ValidateResourceId(id);
+ return new ServiceApiWikiResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceProductWikiResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceProductWikiResource GetServiceProductWikiResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceProductWikiResource.ValidateResourceId(id);
+ return new ServiceProductWikiResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceApiVersionSetResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceApiVersionSetResource GetServiceApiVersionSetResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceApiVersionSetResource.ValidateResourceId(id);
+ return new ServiceApiVersionSetResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceApiVersionSetResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceApiVersionSetResource GetServiceWorkspaceApiVersionSetResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceApiVersionSetResource.ValidateResourceId(id);
+ return new ServiceWorkspaceApiVersionSetResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region AuthorizationProviderContractResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiVersionSetResource GetApiVersionSetResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static AuthorizationProviderContractResource GetAuthorizationProviderContractResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiVersionSetResource.ValidateResourceId(id);
- return new ApiVersionSetResource(client, id);
+ AuthorizationProviderContractResource.ValidateResourceId(id);
+ return new AuthorizationProviderContractResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region AuthorizationContractResource
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static AuthorizationContractResource GetAuthorizationContractResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ AuthorizationContractResource.ValidateResourceId(id);
+ return new AuthorizationContractResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region AuthorizationAccessPolicyContractResource
+ ///
+ /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
+ /// You can use to create an from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static AuthorizationAccessPolicyContractResource GetAuthorizationAccessPolicyContractResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ AuthorizationAccessPolicyContractResource.ValidateResourceId(id);
+ return new AuthorizationAccessPolicyContractResource(client, id);
}
);
}
@@ -859,6 +1182,25 @@ public static ApiManagementServiceResource GetApiManagementServiceResource(this
}
#endregion
+ #region DocumentationContractResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static DocumentationContractResource GetDocumentationContractResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ DocumentationContractResource.ValidateResourceId(id);
+ return new DocumentationContractResource(client, id);
+ }
+ );
+ }
+ #endregion
+
#region ApiManagementEmailTemplateResource
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
@@ -935,20 +1277,39 @@ public static ApiManagementGatewayCertificateAuthorityResource GetApiManagementG
}
#endregion
- #region ApiManagementGroupResource
+ #region ServiceGroupResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceGroupResource GetServiceGroupResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceGroupResource.ValidateResourceId(id);
+ return new ServiceGroupResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceGroupResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiManagementGroupResource GetApiManagementGroupResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceWorkspaceGroupResource GetServiceWorkspaceGroupResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiManagementGroupResource.ValidateResourceId(id);
- return new ApiManagementGroupResource(client, id);
+ ServiceWorkspaceGroupResource.ValidateResourceId(id);
+ return new ServiceWorkspaceGroupResource(client, id);
}
);
}
@@ -992,39 +1353,77 @@ public static ApiManagementLoggerResource GetApiManagementLoggerResource(this Ar
}
#endregion
- #region ApiManagementNamedValueResource
+ #region ServiceNamedValueResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiManagementNamedValueResource GetApiManagementNamedValueResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceNamedValueResource GetServiceNamedValueResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiManagementNamedValueResource.ValidateResourceId(id);
- return new ApiManagementNamedValueResource(client, id);
+ ServiceNamedValueResource.ValidateResourceId(id);
+ return new ServiceNamedValueResource(client, id);
}
);
}
#endregion
- #region ApiManagementNotificationResource
+ #region ServiceWorkspaceNamedValueResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiManagementNotificationResource GetApiManagementNotificationResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceWorkspaceNamedValueResource GetServiceWorkspaceNamedValueResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiManagementNotificationResource.ValidateResourceId(id);
- return new ApiManagementNotificationResource(client, id);
+ ServiceWorkspaceNamedValueResource.ValidateResourceId(id);
+ return new ServiceWorkspaceNamedValueResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceNotificationResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceNotificationResource GetServiceNotificationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceNotificationResource.ValidateResourceId(id);
+ return new ServiceNotificationResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceNotificationResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceNotificationResource GetServiceWorkspaceNotificationResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceNotificationResource.ValidateResourceId(id);
+ return new ServiceWorkspaceNotificationResource(client, id);
}
);
}
@@ -1049,6 +1448,63 @@ public static ApiManagementOpenIdConnectProviderResource GetApiManagementOpenIdC
}
#endregion
+ #region ServicePolicyFragmentResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServicePolicyFragmentResource GetServicePolicyFragmentResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServicePolicyFragmentResource.ValidateResourceId(id);
+ return new ServicePolicyFragmentResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspacePolicyFragmentResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspacePolicyFragmentResource GetServiceWorkspacePolicyFragmentResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspacePolicyFragmentResource.ValidateResourceId(id);
+ return new ServiceWorkspacePolicyFragmentResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region PortalConfigContractResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static PortalConfigContractResource GetPortalConfigContractResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ PortalConfigContractResource.ValidateResourceId(id);
+ return new PortalConfigContractResource(client, id);
+ }
+ );
+ }
+ #endregion
+
#region ApiManagementPortalRevisionResource
///
/// Gets an object representing an along with the instance operations that can be performed on it but with no data.
@@ -1163,39 +1619,153 @@ public static ApiManagementPrivateLinkResource GetApiManagementPrivateLinkResour
}
#endregion
- #region ApiManagementProductResource
+ #region ServiceProductResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceProductResource GetServiceProductResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceProductResource.ValidateResourceId(id);
+ return new ServiceProductResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceProductResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceProductResource GetServiceWorkspaceProductResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceProductResource.ValidateResourceId(id);
+ return new ServiceWorkspaceProductResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceProductApiLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceProductApiLinkResource GetServiceProductApiLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceProductApiLinkResource.ValidateResourceId(id);
+ return new ServiceProductApiLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceProductApiLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceProductApiLinkResource GetServiceWorkspaceProductApiLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceProductApiLinkResource.ValidateResourceId(id);
+ return new ServiceWorkspaceProductApiLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceProductGroupLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceProductGroupLinkResource GetServiceProductGroupLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceProductGroupLinkResource.ValidateResourceId(id);
+ return new ServiceProductGroupLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceProductGroupLinkResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiManagementProductResource GetApiManagementProductResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceWorkspaceProductGroupLinkResource GetServiceWorkspaceProductGroupLinkResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiManagementProductResource.ValidateResourceId(id);
- return new ApiManagementProductResource(client, id);
+ ServiceWorkspaceProductGroupLinkResource.ValidateResourceId(id);
+ return new ServiceWorkspaceProductGroupLinkResource(client, id);
}
);
}
#endregion
- #region ApiManagementGlobalSchemaResource
+ #region ServiceSchemaResource
///
- /// Gets an object representing an along with the instance operations that can be performed on it but with no data.
- /// You can use to create an from its components.
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
///
/// The instance the method will execute against.
/// The resource ID of the resource to get.
- /// Returns a object.
- public static ApiManagementGlobalSchemaResource GetApiManagementGlobalSchemaResource(this ArmClient client, ResourceIdentifier id)
+ /// Returns a object.
+ public static ServiceSchemaResource GetServiceSchemaResource(this ArmClient client, ResourceIdentifier id)
{
return client.GetResourceClient(() =>
{
- ApiManagementGlobalSchemaResource.ValidateResourceId(id);
- return new ApiManagementGlobalSchemaResource(client, id);
+ ServiceSchemaResource.ValidateResourceId(id);
+ return new ServiceSchemaResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceSchemaResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceSchemaResource GetServiceWorkspaceSchemaResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceSchemaResource.ValidateResourceId(id);
+ return new ServiceWorkspaceSchemaResource(client, id);
}
);
}
@@ -1258,6 +1828,139 @@ public static ApiManagementUserSubscriptionResource GetApiManagementUserSubscrip
}
#endregion
+ #region ServiceWorkspaceSubscriptionResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceSubscriptionResource GetServiceWorkspaceSubscriptionResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceSubscriptionResource.ValidateResourceId(id);
+ return new ServiceWorkspaceSubscriptionResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceTagApiLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceTagApiLinkResource GetServiceTagApiLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceTagApiLinkResource.ValidateResourceId(id);
+ return new ServiceTagApiLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceTagApiLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceTagApiLinkResource GetServiceWorkspaceTagApiLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceTagApiLinkResource.ValidateResourceId(id);
+ return new ServiceWorkspaceTagApiLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceTagOperationLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceTagOperationLinkResource GetServiceTagOperationLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceTagOperationLinkResource.ValidateResourceId(id);
+ return new ServiceTagOperationLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceTagOperationLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceTagOperationLinkResource GetServiceWorkspaceTagOperationLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceTagOperationLinkResource.ValidateResourceId(id);
+ return new ServiceWorkspaceTagOperationLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceTagProductLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceTagProductLinkResource GetServiceTagProductLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceTagProductLinkResource.ValidateResourceId(id);
+ return new ServiceTagProductLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
+ #region ServiceWorkspaceTagProductLinkResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static ServiceWorkspaceTagProductLinkResource GetServiceWorkspaceTagProductLinkResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ ServiceWorkspaceTagProductLinkResource.ValidateResourceId(id);
+ return new ServiceWorkspaceTagProductLinkResource(client, id);
+ }
+ );
+ }
+ #endregion
+
#region TenantAccessInfoResource
///
/// Gets an object representing a along with the instance operations that can be performed on it but with no data.
@@ -1295,5 +1998,24 @@ public static ApiManagementUserResource GetApiManagementUserResource(this ArmCli
);
}
#endregion
+
+ #region WorkspaceContractResource
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public static WorkspaceContractResource GetWorkspaceContractResource(this ArmClient client, ResourceIdentifier id)
+ {
+ return client.GetResourceClient(() =>
+ {
+ WorkspaceContractResource.ValidateResourceId(id);
+ return new WorkspaceContractResource(client, id);
+ }
+ );
+ }
+ #endregion
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceApiOperationSource.cs
similarity index 60%
rename from sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiOperationSource.cs
rename to sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceApiOperationSource.cs
index bcb8db5c7bf5..1ee2baf8cd7e 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiOperationSource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceApiOperationSource.cs
@@ -14,27 +14,27 @@
namespace Azure.ResourceManager.ApiManagement
{
- internal class ApiOperationSource : IOperationSource
+ internal class ServiceApiOperationSource : IOperationSource
{
private readonly ArmClient _client;
- internal ApiOperationSource(ArmClient client)
+ internal ServiceApiOperationSource(ArmClient client)
{
_client = client;
}
- ApiResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ ServiceApiResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
{
using var document = JsonDocument.Parse(response.ContentStream);
var data = ApiData.DeserializeApiData(document.RootElement);
- return new ApiResource(_client, data);
+ return new ServiceApiResource(_client, data);
}
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
{
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
var data = ApiData.DeserializeApiData(document.RootElement);
- return new ApiResource(_client, data);
+ return new ServiceApiResource(_client, data);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiSchemaOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceApiSchemaOperationSource.cs
similarity index 58%
rename from sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiSchemaOperationSource.cs
rename to sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceApiSchemaOperationSource.cs
index bcc57a7e7b4c..8d1d9b1823e3 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiSchemaOperationSource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceApiSchemaOperationSource.cs
@@ -14,27 +14,27 @@
namespace Azure.ResourceManager.ApiManagement
{
- internal class ApiSchemaOperationSource : IOperationSource
+ internal class ServiceApiSchemaOperationSource : IOperationSource
{
private readonly ArmClient _client;
- internal ApiSchemaOperationSource(ArmClient client)
+ internal ServiceApiSchemaOperationSource(ArmClient client)
{
_client = client;
}
- ApiSchemaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ ServiceApiSchemaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
{
using var document = JsonDocument.Parse(response.ContentStream);
var data = ApiSchemaData.DeserializeApiSchemaData(document.RootElement);
- return new ApiSchemaResource(_client, data);
+ return new ServiceApiSchemaResource(_client, data);
}
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
{
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
var data = ApiSchemaData.DeserializeApiSchemaData(document.RootElement);
- return new ApiSchemaResource(_client, data);
+ return new ServiceApiSchemaResource(_client, data);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementNamedValueOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceNamedValueOperationSource.cs
similarity index 57%
rename from sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementNamedValueOperationSource.cs
rename to sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceNamedValueOperationSource.cs
index 030c49c75c74..5054207725d4 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementNamedValueOperationSource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceNamedValueOperationSource.cs
@@ -14,27 +14,27 @@
namespace Azure.ResourceManager.ApiManagement
{
- internal class ApiManagementNamedValueOperationSource : IOperationSource
+ internal class ServiceNamedValueOperationSource : IOperationSource
{
private readonly ArmClient _client;
- internal ApiManagementNamedValueOperationSource(ArmClient client)
+ internal ServiceNamedValueOperationSource(ArmClient client)
{
_client = client;
}
- ApiManagementNamedValueResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ ServiceNamedValueResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
{
using var document = JsonDocument.Parse(response.ContentStream);
var data = ApiManagementNamedValueData.DeserializeApiManagementNamedValueData(document.RootElement);
- return new ApiManagementNamedValueResource(_client, data);
+ return new ServiceNamedValueResource(_client, data);
}
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
{
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
var data = ApiManagementNamedValueData.DeserializeApiManagementNamedValueData(document.RootElement);
- return new ApiManagementNamedValueResource(_client, data);
+ return new ServiceNamedValueResource(_client, data);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServicePolicyFragmentOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServicePolicyFragmentOperationSource.cs
new file mode 100644
index 000000000000..19680fe884f7
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServicePolicyFragmentOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ internal class ServicePolicyFragmentOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal ServicePolicyFragmentOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ ServicePolicyFragmentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = PolicyFragmentContractData.DeserializePolicyFragmentContractData(document.RootElement);
+ return new ServicePolicyFragmentResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = PolicyFragmentContractData.DeserializePolicyFragmentContractData(document.RootElement);
+ return new ServicePolicyFragmentResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementGlobalSchemaOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceSchemaOperationSource.cs
similarity index 57%
rename from sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementGlobalSchemaOperationSource.cs
rename to sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceSchemaOperationSource.cs
index 68f112f35795..f9e3affef327 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ApiManagementGlobalSchemaOperationSource.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceSchemaOperationSource.cs
@@ -14,27 +14,27 @@
namespace Azure.ResourceManager.ApiManagement
{
- internal class ApiManagementGlobalSchemaOperationSource : IOperationSource
+ internal class ServiceSchemaOperationSource : IOperationSource
{
private readonly ArmClient _client;
- internal ApiManagementGlobalSchemaOperationSource(ArmClient client)
+ internal ServiceSchemaOperationSource(ArmClient client)
{
_client = client;
}
- ApiManagementGlobalSchemaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ ServiceSchemaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
{
using var document = JsonDocument.Parse(response.ContentStream);
var data = ApiManagementGlobalSchemaData.DeserializeApiManagementGlobalSchemaData(document.RootElement);
- return new ApiManagementGlobalSchemaResource(_client, data);
+ return new ServiceSchemaResource(_client, data);
}
- async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
{
using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
var data = ApiManagementGlobalSchemaData.DeserializeApiManagementGlobalSchemaData(document.RootElement);
- return new ApiManagementGlobalSchemaResource(_client, data);
+ return new ServiceSchemaResource(_client, data);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceApiOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceApiOperationSource.cs
new file mode 100644
index 000000000000..8318a3b28a63
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceApiOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ internal class ServiceWorkspaceApiOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal ServiceWorkspaceApiOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ ServiceWorkspaceApiResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = ApiData.DeserializeApiData(document.RootElement);
+ return new ServiceWorkspaceApiResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = ApiData.DeserializeApiData(document.RootElement);
+ return new ServiceWorkspaceApiResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceApiSchemaOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceApiSchemaOperationSource.cs
new file mode 100644
index 000000000000..2af015cf0e2e
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceApiSchemaOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ internal class ServiceWorkspaceApiSchemaOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal ServiceWorkspaceApiSchemaOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ ServiceWorkspaceApiSchemaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = ApiSchemaData.DeserializeApiSchemaData(document.RootElement);
+ return new ServiceWorkspaceApiSchemaResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = ApiSchemaData.DeserializeApiSchemaData(document.RootElement);
+ return new ServiceWorkspaceApiSchemaResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceNamedValueOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceNamedValueOperationSource.cs
new file mode 100644
index 000000000000..b6bee9c6eea5
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceNamedValueOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ internal class ServiceWorkspaceNamedValueOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal ServiceWorkspaceNamedValueOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ ServiceWorkspaceNamedValueResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = ApiManagementNamedValueData.DeserializeApiManagementNamedValueData(document.RootElement);
+ return new ServiceWorkspaceNamedValueResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = ApiManagementNamedValueData.DeserializeApiManagementNamedValueData(document.RootElement);
+ return new ServiceWorkspaceNamedValueResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspacePolicyFragmentOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspacePolicyFragmentOperationSource.cs
new file mode 100644
index 000000000000..b19427886bcf
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspacePolicyFragmentOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ internal class ServiceWorkspacePolicyFragmentOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal ServiceWorkspacePolicyFragmentOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ ServiceWorkspacePolicyFragmentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = PolicyFragmentContractData.DeserializePolicyFragmentContractData(document.RootElement);
+ return new ServiceWorkspacePolicyFragmentResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = PolicyFragmentContractData.DeserializePolicyFragmentContractData(document.RootElement);
+ return new ServiceWorkspacePolicyFragmentResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceSchemaOperationSource.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceSchemaOperationSource.cs
new file mode 100644
index 000000000000..3d0d2d9c4110
--- /dev/null
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/LongRunningOperation/ServiceWorkspaceSchemaOperationSource.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Text.Json;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.ResourceManager;
+
+namespace Azure.ResourceManager.ApiManagement
+{
+ internal class ServiceWorkspaceSchemaOperationSource : IOperationSource
+ {
+ private readonly ArmClient _client;
+
+ internal ServiceWorkspaceSchemaOperationSource(ArmClient client)
+ {
+ _client = client;
+ }
+
+ ServiceWorkspaceSchemaResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken)
+ {
+ using var document = JsonDocument.Parse(response.ContentStream);
+ var data = ApiManagementGlobalSchemaData.DeserializeApiManagementGlobalSchemaData(document.RootElement);
+ return new ServiceWorkspaceSchemaResource(_client, data);
+ }
+
+ async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken)
+ {
+ using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false);
+ var data = ApiManagementGlobalSchemaData.DeserializeApiManagementGlobalSchemaData(document.RootElement);
+ return new ServiceWorkspaceSchemaResource(_client, data);
+ }
+ }
+}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.Serialization.cs
index 942f3c53ff04..9a36605f4b92 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.Serialization.cs
@@ -42,6 +42,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("virtualNetworkConfiguration"u8);
writer.WriteObjectValue(VirtualNetworkConfiguration);
}
+ if (Optional.IsDefined(NatGatewayState))
+ {
+ writer.WritePropertyName("natGatewayState"u8);
+ writer.WriteStringValue(NatGatewayState.Value.ToString());
+ }
if (Optional.IsDefined(DisableGateway))
{
writer.WritePropertyName("disableGateway"u8);
@@ -64,6 +69,8 @@ internal static AdditionalLocation DeserializeAdditionalLocation(JsonElement ele
Optional publicIPAddressId = default;
Optional virtualNetworkConfiguration = default;
Optional gatewayRegionalUri = default;
+ Optional natGatewayState = default;
+ Optional> outboundPublicIPAddresses = default;
Optional disableGateway = default;
Optional platformVersion = default;
foreach (var property in element.EnumerateObject())
@@ -167,6 +174,31 @@ internal static AdditionalLocation DeserializeAdditionalLocation(JsonElement ele
gatewayRegionalUri = new Uri(property.Value.GetString());
continue;
}
+ if (property.NameEquals("natGatewayState"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ natGatewayState = new NatGatewayState(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("outboundPublicIPAddresses"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ outboundPublicIPAddresses = array;
+ continue;
+ }
if (property.NameEquals("disableGateway"u8))
{
if (property.Value.ValueKind == JsonValueKind.Null)
@@ -188,7 +220,7 @@ internal static AdditionalLocation DeserializeAdditionalLocation(JsonElement ele
continue;
}
}
- return new AdditionalLocation(location, sku, Optional.ToList(zones), Optional.ToList(publicIPAddresses), Optional.ToList(privateIPAddresses), publicIPAddressId.Value, virtualNetworkConfiguration.Value, gatewayRegionalUri.Value, Optional.ToNullable(disableGateway), Optional.ToNullable(platformVersion));
+ return new AdditionalLocation(location, sku, Optional.ToList(zones), Optional.ToList(publicIPAddresses), Optional.ToList(privateIPAddresses), publicIPAddressId.Value, virtualNetworkConfiguration.Value, gatewayRegionalUri.Value, Optional.ToNullable(natGatewayState), Optional.ToList(outboundPublicIPAddresses), Optional.ToNullable(disableGateway), Optional.ToNullable(platformVersion));
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs
index 377f7a3cf48f..48301425dc75 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/AdditionalLocation.cs
@@ -28,6 +28,7 @@ public AdditionalLocation(AzureLocation location, ApiManagementServiceSkuPropert
Zones = new ChangeTrackingList();
PublicIPAddresses = new ChangeTrackingList();
PrivateIPAddresses = new ChangeTrackingList();
+ OutboundPublicIPAddresses = new ChangeTrackingList();
}
/// Initializes a new instance of AdditionalLocation.
@@ -39,9 +40,11 @@ public AdditionalLocation(AzureLocation location, ApiManagementServiceSkuPropert
/// Public Standard SKU IP V4 based IP address to be associated with Virtual Network deployed service in the location. Supported only for Premium SKU being deployed in Virtual Network.
/// Virtual network configuration for the location.
/// Gateway URL of the API Management service in the Region.
+ /// Property can be used to enable NAT Gateway for this API Management service.
+ /// Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform.
/// Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location.
/// Compute Platform Version running the service.
- internal AdditionalLocation(AzureLocation location, ApiManagementServiceSkuProperties sku, IList zones, IReadOnlyList publicIPAddresses, IReadOnlyList privateIPAddresses, ResourceIdentifier publicIPAddressId, VirtualNetworkConfiguration virtualNetworkConfiguration, Uri gatewayRegionalUri, bool? disableGateway, PlatformVersion? platformVersion)
+ internal AdditionalLocation(AzureLocation location, ApiManagementServiceSkuProperties sku, IList zones, IReadOnlyList publicIPAddresses, IReadOnlyList privateIPAddresses, ResourceIdentifier publicIPAddressId, VirtualNetworkConfiguration virtualNetworkConfiguration, Uri gatewayRegionalUri, NatGatewayState? natGatewayState, IReadOnlyList outboundPublicIPAddresses, bool? disableGateway, PlatformVersion? platformVersion)
{
Location = location;
Sku = sku;
@@ -51,6 +54,8 @@ internal AdditionalLocation(AzureLocation location, ApiManagementServiceSkuPrope
PublicIPAddressId = publicIPAddressId;
VirtualNetworkConfiguration = virtualNetworkConfiguration;
GatewayRegionalUri = gatewayRegionalUri;
+ NatGatewayState = natGatewayState;
+ OutboundPublicIPAddresses = outboundPublicIPAddresses;
DisableGateway = disableGateway;
PlatformVersion = platformVersion;
}
@@ -71,6 +76,10 @@ internal AdditionalLocation(AzureLocation location, ApiManagementServiceSkuPrope
public VirtualNetworkConfiguration VirtualNetworkConfiguration { get; set; }
/// Gateway URL of the API Management service in the Region.
public Uri GatewayRegionalUri { get; }
+ /// Property can be used to enable NAT Gateway for this API Management service.
+ public NatGatewayState? NatGatewayState { get; set; }
+ /// Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform.
+ public IReadOnlyList OutboundPublicIPAddresses { get; }
/// Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in this additional location.
public bool? DisableGateway { get; set; }
/// Compute Platform Version running the service.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.Serialization.cs
similarity index 93%
rename from sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.Serialization.cs
rename to sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.Serialization.cs
index 9bf70c043dd9..ae27ebfa1df6 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.Serialization.cs
@@ -10,7 +10,7 @@
namespace Azure.ResourceManager.ApiManagement.Models
{
- public partial class ApiCreateOrUpdateContent : IUtf8JsonSerializable
+ public partial class ApiCreateOrUpdateParameter : IUtf8JsonSerializable
{
void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
{
@@ -142,6 +142,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("apiType"u8);
writer.WriteStringValue(SoapApiType.Value.ToString());
}
+ if (Optional.IsDefined(TranslateRequiredQueryParametersConduct))
+ {
+ writer.WritePropertyName("translateRequiredQueryParameters"u8);
+ writer.WriteStringValue(TranslateRequiredQueryParametersConduct.Value.ToString());
+ }
writer.WriteEndObject();
writer.WriteEndObject();
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs
similarity index 91%
rename from sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs
rename to sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs
index 20deabffcd14..fc2ed4387cc7 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateContent.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiCreateOrUpdateParameter.cs
@@ -12,10 +12,10 @@
namespace Azure.ResourceManager.ApiManagement.Models
{
/// API Create or Update Parameters.
- public partial class ApiCreateOrUpdateContent
+ public partial class ApiCreateOrUpdateParameter
{
- /// Initializes a new instance of ApiCreateOrUpdateContent.
- public ApiCreateOrUpdateContent()
+ /// Initializes a new instance of ApiCreateOrUpdateParameter.
+ public ApiCreateOrUpdateParameter()
{
Protocols = new ChangeTrackingList();
}
@@ -76,5 +76,7 @@ public ApiCreateOrUpdateContent()
/// * `graphql` creates GraphQL API.
///
public SoapApiType? SoapApiType { get; set; }
+ /// Strategy of translating required query parameters to template ones. By default has value 'template'. Possible values: 'template', 'query'.
+ public TranslateRequiredQueryParametersConduct? TranslateRequiredQueryParametersConduct { get; set; }
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerData.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerData.Serialization.cs
index e22914f8b00c..1ce9c84108c9 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerData.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerData.Serialization.cs
@@ -95,6 +95,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("displayName"u8);
writer.WriteStringValue(DisplayName);
}
+ if (Optional.IsDefined(UseInTestConsole))
+ {
+ writer.WritePropertyName("useInTestConsole"u8);
+ writer.WriteBooleanValue(UseInTestConsole.Value);
+ }
+ if (Optional.IsDefined(UseInApiDocumentation))
+ {
+ writer.WritePropertyName("useInApiDocumentation"u8);
+ writer.WriteBooleanValue(UseInApiDocumentation.Value);
+ }
if (Optional.IsDefined(ClientRegistrationEndpoint))
{
writer.WritePropertyName("clientRegistrationEndpoint"u8);
@@ -150,6 +160,8 @@ internal static ApiManagementAuthorizationServerData DeserializeApiManagementAut
Optional resourceOwnerUsername = default;
Optional resourceOwnerPassword = default;
Optional displayName = default;
+ Optional useInTestConsole = default;
+ Optional useInApiDocumentation = default;
Optional clientRegistrationEndpoint = default;
Optional authorizationEndpoint = default;
Optional> grantTypes = default;
@@ -291,6 +303,26 @@ internal static ApiManagementAuthorizationServerData DeserializeApiManagementAut
displayName = property0.Value.GetString();
continue;
}
+ if (property0.NameEquals("useInTestConsole"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ useInTestConsole = property0.Value.GetBoolean();
+ continue;
+ }
+ if (property0.NameEquals("useInApiDocumentation"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ useInApiDocumentation = property0.Value.GetBoolean();
+ continue;
+ }
if (property0.NameEquals("clientRegistrationEndpoint"u8))
{
clientRegistrationEndpoint = property0.Value.GetString();
@@ -330,7 +362,7 @@ internal static ApiManagementAuthorizationServerData DeserializeApiManagementAut
continue;
}
}
- return new ApiManagementAuthorizationServerData(id, name, type, systemData.Value, description.Value, Optional.ToList(authorizationMethods), Optional.ToList(clientAuthenticationMethod), Optional.ToList(tokenBodyParameters), tokenEndpoint.Value, Optional.ToNullable(supportState), defaultScope.Value, Optional.ToList(bearerTokenSendingMethods), resourceOwnerUsername.Value, resourceOwnerPassword.Value, displayName.Value, clientRegistrationEndpoint.Value, authorizationEndpoint.Value, Optional.ToList(grantTypes), clientId.Value, clientSecret.Value);
+ return new ApiManagementAuthorizationServerData(id, name, type, systemData.Value, description.Value, Optional.ToList(authorizationMethods), Optional.ToList(clientAuthenticationMethod), Optional.ToList(tokenBodyParameters), tokenEndpoint.Value, Optional.ToNullable(supportState), defaultScope.Value, Optional.ToList(bearerTokenSendingMethods), resourceOwnerUsername.Value, resourceOwnerPassword.Value, displayName.Value, Optional.ToNullable(useInTestConsole), Optional.ToNullable(useInApiDocumentation), clientRegistrationEndpoint.Value, authorizationEndpoint.Value, Optional.ToList(grantTypes), clientId.Value, clientSecret.Value);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.Serialization.cs
index ebdbd3337c08..0a82aa904556 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.Serialization.cs
@@ -94,6 +94,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("displayName"u8);
writer.WriteStringValue(DisplayName);
}
+ if (Optional.IsDefined(UseInTestConsole))
+ {
+ writer.WritePropertyName("useInTestConsole"u8);
+ writer.WriteBooleanValue(UseInTestConsole.Value);
+ }
+ if (Optional.IsDefined(UseInApiDocumentation))
+ {
+ writer.WritePropertyName("useInApiDocumentation"u8);
+ writer.WriteBooleanValue(UseInApiDocumentation.Value);
+ }
if (Optional.IsDefined(ClientRegistrationEndpoint))
{
writer.WritePropertyName("clientRegistrationEndpoint"u8);
@@ -149,6 +159,8 @@ internal static ApiManagementAuthorizationServerPatch DeserializeApiManagementAu
Optional resourceOwnerUsername = default;
Optional resourceOwnerPassword = default;
Optional displayName = default;
+ Optional useInTestConsole = default;
+ Optional useInApiDocumentation = default;
Optional clientRegistrationEndpoint = default;
Optional authorizationEndpoint = default;
Optional> grantTypes = default;
@@ -290,6 +302,26 @@ internal static ApiManagementAuthorizationServerPatch DeserializeApiManagementAu
displayName = property0.Value.GetString();
continue;
}
+ if (property0.NameEquals("useInTestConsole"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ useInTestConsole = property0.Value.GetBoolean();
+ continue;
+ }
+ if (property0.NameEquals("useInApiDocumentation"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ useInApiDocumentation = property0.Value.GetBoolean();
+ continue;
+ }
if (property0.NameEquals("clientRegistrationEndpoint"u8))
{
clientRegistrationEndpoint = property0.Value.GetString();
@@ -329,7 +361,7 @@ internal static ApiManagementAuthorizationServerPatch DeserializeApiManagementAu
continue;
}
}
- return new ApiManagementAuthorizationServerPatch(id, name, type, systemData.Value, description.Value, Optional.ToList(authorizationMethods), Optional.ToList(clientAuthenticationMethod), Optional.ToList(tokenBodyParameters), tokenEndpoint.Value, Optional.ToNullable(supportState), defaultScope.Value, Optional.ToList(bearerTokenSendingMethods), resourceOwnerUsername.Value, resourceOwnerPassword.Value, displayName.Value, clientRegistrationEndpoint.Value, authorizationEndpoint.Value, Optional.ToList(grantTypes), clientId.Value, clientSecret.Value);
+ return new ApiManagementAuthorizationServerPatch(id, name, type, systemData.Value, description.Value, Optional.ToList(authorizationMethods), Optional.ToList(clientAuthenticationMethod), Optional.ToList(tokenBodyParameters), tokenEndpoint.Value, Optional.ToNullable(supportState), defaultScope.Value, Optional.ToList(bearerTokenSendingMethods), resourceOwnerUsername.Value, resourceOwnerPassword.Value, displayName.Value, Optional.ToNullable(useInTestConsole), Optional.ToNullable(useInApiDocumentation), clientRegistrationEndpoint.Value, authorizationEndpoint.Value, Optional.ToList(grantTypes), clientId.Value, clientSecret.Value);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs
index 5c54650d4e25..ab6c7cebec67 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementAuthorizationServerPatch.cs
@@ -40,12 +40,14 @@ public ApiManagementAuthorizationServerPatch()
/// Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner username.
/// Can be optionally specified when resource owner password grant type is supported by this authorization server. Default resource owner password.
/// User-friendly authorization server name.
+ /// If true, the authorization server may be used in the developer portal test console. True by default if no value is provided.
+ /// If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided.
/// Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
/// OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
/// Form of an authorization grant, which the client uses to request the access token.
/// Client or app id registered with this authorization server.
/// Client or app secret registered with this authorization server. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- internal ApiManagementAuthorizationServerPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList authorizationMethods, IList clientAuthenticationMethods, IList tokenBodyParameters, string tokenEndpoint, bool? doesSupportState, string defaultScope, IList bearerTokenSendingMethods, string resourceOwnerUsername, string resourceOwnerPassword, string displayName, string clientRegistrationEndpoint, string authorizationEndpoint, IList grantTypes, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
+ internal ApiManagementAuthorizationServerPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList authorizationMethods, IList clientAuthenticationMethods, IList tokenBodyParameters, string tokenEndpoint, bool? doesSupportState, string defaultScope, IList bearerTokenSendingMethods, string resourceOwnerUsername, string resourceOwnerPassword, string displayName, bool? useInTestConsole, bool? useInApiDocumentation, string clientRegistrationEndpoint, string authorizationEndpoint, IList grantTypes, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
{
Description = description;
AuthorizationMethods = authorizationMethods;
@@ -58,6 +60,8 @@ internal ApiManagementAuthorizationServerPatch(ResourceIdentifier id, string nam
ResourceOwnerUsername = resourceOwnerUsername;
ResourceOwnerPassword = resourceOwnerPassword;
DisplayName = displayName;
+ UseInTestConsole = useInTestConsole;
+ UseInApiDocumentation = useInApiDocumentation;
ClientRegistrationEndpoint = clientRegistrationEndpoint;
AuthorizationEndpoint = authorizationEndpoint;
GrantTypes = grantTypes;
@@ -87,6 +91,10 @@ internal ApiManagementAuthorizationServerPatch(ResourceIdentifier id, string nam
public string ResourceOwnerPassword { get; set; }
/// User-friendly authorization server name.
public string DisplayName { get; set; }
+ /// If true, the authorization server may be used in the developer portal test console. True by default if no value is provided.
+ public bool? UseInTestConsole { get; set; }
+ /// If true, the authorization server will be used in the API documentation in the developer portal. False by default if no value is provided.
+ public bool? UseInApiDocumentation { get; set; }
/// Optional reference to a page where client or app registration for this authorization server is performed. Contains absolute URL to entity being referenced.
public string ClientRegistrationEndpoint { get; set; }
/// OAuth authorization endpoint. See http://tools.ietf.org/html/rfc6749#section-3.2.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendData.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendData.Serialization.cs
index 6da7a844457f..650754bbb57f 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendData.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendData.Serialization.cs
@@ -55,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("tls"u8);
writer.WriteObjectValue(Tls);
}
+ if (Optional.IsDefined(CircuitBreaker))
+ {
+ writer.WritePropertyName("circuitBreaker"u8);
+ writer.WriteObjectValue(CircuitBreaker);
+ }
if (Optional.IsDefined(Uri))
{
writer.WritePropertyName("url"u8);
@@ -86,6 +91,7 @@ internal static ApiManagementBackendData DeserializeApiManagementBackendData(Jso
Optional credentials = default;
Optional proxy = default;
Optional tls = default;
+ Optional circuitBreaker = default;
Optional uri = default;
Optional protocol = default;
foreach (var property in element.EnumerateObject())
@@ -184,6 +190,16 @@ internal static ApiManagementBackendData DeserializeApiManagementBackendData(Jso
tls = BackendTlsProperties.DeserializeBackendTlsProperties(property0.Value);
continue;
}
+ if (property0.NameEquals("circuitBreaker"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ circuitBreaker = BackendCircuitBreaker.DeserializeBackendCircuitBreaker(property0.Value);
+ continue;
+ }
if (property0.NameEquals("url"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -208,7 +224,7 @@ internal static ApiManagementBackendData DeserializeApiManagementBackendData(Jso
continue;
}
}
- return new ApiManagementBackendData(id, name, type, systemData.Value, title.Value, description.Value, resourceId.Value, properties.Value, credentials.Value, proxy.Value, tls.Value, uri.Value, Optional.ToNullable(protocol));
+ return new ApiManagementBackendData(id, name, type, systemData.Value, title.Value, description.Value, resourceId.Value, properties.Value, credentials.Value, proxy.Value, tls.Value, circuitBreaker.Value, uri.Value, Optional.ToNullable(protocol));
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.Serialization.cs
index 02cf45f10df6..0e2ea11d5d2f 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.Serialization.cs
@@ -52,6 +52,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("tls"u8);
writer.WriteObjectValue(Tls);
}
+ if (Optional.IsDefined(CircuitBreaker))
+ {
+ writer.WritePropertyName("circuitBreaker"u8);
+ writer.WriteObjectValue(CircuitBreaker);
+ }
if (Optional.IsDefined(Uri))
{
writer.WritePropertyName("url"u8);
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.cs
index 2ba20ee50e13..4c80dc6eaa78 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementBackendPatch.cs
@@ -6,6 +6,7 @@
#nullable disable
using System;
+using System.Collections.Generic;
namespace Azure.ResourceManager.ApiManagement.Models
{
@@ -21,7 +22,7 @@ public ApiManagementBackendPatch()
public string Title { get; set; }
/// Backend Description.
public string Description { get; set; }
- /// Management Uri of the Resource in External System. This url can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
+ /// Management Uri of the Resource in External System. This URL can be the Arm Resource Id of Logic Apps, Function Apps or API Apps.
public Uri ResourceUri { get; set; }
/// Backend Properties contract.
internal BackendProperties Properties { get; set; }
@@ -39,10 +40,23 @@ public BackendServiceFabricClusterProperties BackendServiceFabricCluster
/// Backend Credentials Contract Properties.
public BackendCredentialsContract Credentials { get; set; }
- /// Backend Proxy Contract Properties.
+ /// Backend gateway Contract Properties.
public BackendProxyContract Proxy { get; set; }
/// Backend TLS Properties.
public BackendTlsProperties Tls { get; set; }
+ /// Backend Circuit Breaker Configuration.
+ internal BackendCircuitBreaker CircuitBreaker { get; set; }
+ /// The rules for tripping the backend.
+ public IList CircuitBreakerRules
+ {
+ get
+ {
+ if (CircuitBreaker is null)
+ CircuitBreaker = new BackendCircuitBreaker();
+ return CircuitBreaker.Rules;
+ }
+ }
+
/// Runtime Url of the Backend.
public Uri Uri { get; set; }
/// Backend communication protocol.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.Serialization.cs
index 88c36fa76dde..0535c0299b65 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.Serialization.cs
@@ -64,6 +64,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("passwordResetPolicyName"u8);
writer.WriteStringValue(PasswordResetPolicyName);
}
+ if (Optional.IsDefined(ClientLibrary))
+ {
+ writer.WritePropertyName("clientLibrary"u8);
+ writer.WriteStringValue(ClientLibrary);
+ }
if (Optional.IsDefined(ClientId))
{
writer.WritePropertyName("clientId"u8);
@@ -96,6 +101,7 @@ internal static ApiManagementIdentityProviderCreateOrUpdateContent DeserializeAp
Optional signinPolicyName = default;
Optional profileEditingPolicyName = default;
Optional passwordResetPolicyName = default;
+ Optional clientLibrary = default;
Optional clientId = default;
Optional clientSecret = default;
foreach (var property in element.EnumerateObject())
@@ -189,6 +195,11 @@ internal static ApiManagementIdentityProviderCreateOrUpdateContent DeserializeAp
passwordResetPolicyName = property0.Value.GetString();
continue;
}
+ if (property0.NameEquals("clientLibrary"u8))
+ {
+ clientLibrary = property0.Value.GetString();
+ continue;
+ }
if (property0.NameEquals("clientId"u8))
{
clientId = property0.Value.GetString();
@@ -203,7 +214,7 @@ internal static ApiManagementIdentityProviderCreateOrUpdateContent DeserializeAp
continue;
}
}
- return new ApiManagementIdentityProviderCreateOrUpdateContent(id, name, type, systemData.Value, Optional.ToNullable(type0), signinTenant.Value, Optional.ToList(allowedTenants), authority.Value, signupPolicyName.Value, signinPolicyName.Value, profileEditingPolicyName.Value, passwordResetPolicyName.Value, clientId.Value, clientSecret.Value);
+ return new ApiManagementIdentityProviderCreateOrUpdateContent(id, name, type, systemData.Value, Optional.ToNullable(type0), signinTenant.Value, Optional.ToList(allowedTenants), authority.Value, signupPolicyName.Value, signinPolicyName.Value, profileEditingPolicyName.Value, passwordResetPolicyName.Value, clientLibrary.Value, clientId.Value, clientSecret.Value);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs
index aec3057b71a1..a22cdf146b6b 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderCreateOrUpdateContent.cs
@@ -33,9 +33,10 @@ public ApiManagementIdentityProviderCreateOrUpdateContent()
/// Signin Policy Name. Only applies to AAD B2C Identity Provider.
/// Profile Editing Policy Name. Only applies to AAD B2C Identity Provider.
/// Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
+ /// The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
/// Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
/// Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
- internal ApiManagementIdentityProviderCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IdentityProviderType? identityProviderType, string signInTenant, IList allowedTenants, string authority, string signUpPolicyName, string signInPolicyName, string profileEditingPolicyName, string passwordResetPolicyName, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
+ internal ApiManagementIdentityProviderCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IdentityProviderType? identityProviderType, string signInTenant, IList allowedTenants, string authority, string signUpPolicyName, string signInPolicyName, string profileEditingPolicyName, string passwordResetPolicyName, string clientLibrary, string clientId, string clientSecret) : base(id, name, resourceType, systemData)
{
IdentityProviderType = identityProviderType;
SignInTenant = signInTenant;
@@ -45,6 +46,7 @@ internal ApiManagementIdentityProviderCreateOrUpdateContent(ResourceIdentifier i
SignInPolicyName = signInPolicyName;
ProfileEditingPolicyName = profileEditingPolicyName;
PasswordResetPolicyName = passwordResetPolicyName;
+ ClientLibrary = clientLibrary;
ClientId = clientId;
ClientSecret = clientSecret;
}
@@ -65,6 +67,8 @@ internal ApiManagementIdentityProviderCreateOrUpdateContent(ResourceIdentifier i
public string ProfileEditingPolicyName { get; set; }
/// Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
public string PasswordResetPolicyName { get; set; }
+ /// The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
+ public string ClientLibrary { get; set; }
/// Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
public string ClientId { get; set; }
/// Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderData.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderData.Serialization.cs
index bb6547cf37ef..9cc2cbf32823 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderData.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderData.Serialization.cs
@@ -65,6 +65,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("passwordResetPolicyName"u8);
writer.WriteStringValue(PasswordResetPolicyName);
}
+ if (Optional.IsDefined(ClientLibrary))
+ {
+ writer.WritePropertyName("clientLibrary"u8);
+ writer.WriteStringValue(ClientLibrary);
+ }
if (Optional.IsDefined(ClientId))
{
writer.WritePropertyName("clientId"u8);
@@ -97,6 +102,7 @@ internal static ApiManagementIdentityProviderData DeserializeApiManagementIdenti
Optional signinPolicyName = default;
Optional profileEditingPolicyName = default;
Optional passwordResetPolicyName = default;
+ Optional clientLibrary = default;
Optional clientId = default;
Optional clientSecret = default;
foreach (var property in element.EnumerateObject())
@@ -190,6 +196,11 @@ internal static ApiManagementIdentityProviderData DeserializeApiManagementIdenti
passwordResetPolicyName = property0.Value.GetString();
continue;
}
+ if (property0.NameEquals("clientLibrary"u8))
+ {
+ clientLibrary = property0.Value.GetString();
+ continue;
+ }
if (property0.NameEquals("clientId"u8))
{
clientId = property0.Value.GetString();
@@ -204,7 +215,7 @@ internal static ApiManagementIdentityProviderData DeserializeApiManagementIdenti
continue;
}
}
- return new ApiManagementIdentityProviderData(id, name, type, systemData.Value, Optional.ToNullable(type0), signinTenant.Value, Optional.ToList(allowedTenants), authority.Value, signupPolicyName.Value, signinPolicyName.Value, profileEditingPolicyName.Value, passwordResetPolicyName.Value, clientId.Value, clientSecret.Value);
+ return new ApiManagementIdentityProviderData(id, name, type, systemData.Value, Optional.ToNullable(type0), signinTenant.Value, Optional.ToList(allowedTenants), authority.Value, signupPolicyName.Value, signinPolicyName.Value, profileEditingPolicyName.Value, passwordResetPolicyName.Value, clientLibrary.Value, clientId.Value, clientSecret.Value);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.Serialization.cs
index 0fd832756a99..eab20f3412cb 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.Serialization.cs
@@ -62,6 +62,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("passwordResetPolicyName"u8);
writer.WriteStringValue(PasswordResetPolicyName);
}
+ if (Optional.IsDefined(ClientLibrary))
+ {
+ writer.WritePropertyName("clientLibrary"u8);
+ writer.WriteStringValue(ClientLibrary);
+ }
if (Optional.IsDefined(ClientId))
{
writer.WritePropertyName("clientId"u8);
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs
index 74d338d8322e..ece4dad6feca 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementIdentityProviderPatch.cs
@@ -35,6 +35,8 @@ public ApiManagementIdentityProviderPatch()
public string ProfileEditingPolicyName { get; set; }
/// Password Reset Policy Name. Only applies to AAD B2C Identity Provider.
public string PasswordResetPolicyName { get; set; }
+ /// The client library to be used in the developer portal. Only applies to AAD and AAD B2C Identity Provider.
+ public string ClientLibrary { get; set; }
/// Client Id of the Application in the external Identity Provider. It is App ID for Facebook login, Client ID for Google login, App ID for Microsoft.
public string ClientId { get; set; }
/// Client secret of the Application in external Identity Provider, used to authenticate login request. For example, it is App Secret for Facebook login, API Key for Google login, Public Key for Microsoft.
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderData.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderData.Serialization.cs
index 77445406788c..a48bdb5c1d56 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderData.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderData.Serialization.cs
@@ -43,6 +43,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("clientSecret"u8);
writer.WriteStringValue(ClientSecret);
}
+ if (Optional.IsDefined(UseInTestConsole))
+ {
+ writer.WritePropertyName("useInTestConsole"u8);
+ writer.WriteBooleanValue(UseInTestConsole.Value);
+ }
+ if (Optional.IsDefined(UseInApiDocumentation))
+ {
+ writer.WritePropertyName("useInApiDocumentation"u8);
+ writer.WriteBooleanValue(UseInApiDocumentation.Value);
+ }
writer.WriteEndObject();
writer.WriteEndObject();
}
@@ -62,6 +72,8 @@ internal static ApiManagementOpenIdConnectProviderData DeserializeApiManagementO
Optional metadataEndpoint = default;
Optional clientId = default;
Optional clientSecret = default;
+ Optional useInTestConsole = default;
+ Optional useInApiDocumentation = default;
foreach (var property in element.EnumerateObject())
{
if (property.NameEquals("id"u8))
@@ -123,11 +135,31 @@ internal static ApiManagementOpenIdConnectProviderData DeserializeApiManagementO
clientSecret = property0.Value.GetString();
continue;
}
+ if (property0.NameEquals("useInTestConsole"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ useInTestConsole = property0.Value.GetBoolean();
+ continue;
+ }
+ if (property0.NameEquals("useInApiDocumentation"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ useInApiDocumentation = property0.Value.GetBoolean();
+ continue;
+ }
}
continue;
}
}
- return new ApiManagementOpenIdConnectProviderData(id, name, type, systemData.Value, displayName.Value, description.Value, metadataEndpoint.Value, clientId.Value, clientSecret.Value);
+ return new ApiManagementOpenIdConnectProviderData(id, name, type, systemData.Value, displayName.Value, description.Value, metadataEndpoint.Value, clientId.Value, clientSecret.Value, Optional.ToNullable(useInTestConsole), Optional.ToNullable(useInApiDocumentation));
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.Serialization.cs
index e8f0b52e9273..c0a2fc201b65 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.Serialization.cs
@@ -42,6 +42,16 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("clientSecret"u8);
writer.WriteStringValue(ClientSecret);
}
+ if (Optional.IsDefined(UseInTestConsole))
+ {
+ writer.WritePropertyName("useInTestConsole"u8);
+ writer.WriteBooleanValue(UseInTestConsole.Value);
+ }
+ if (Optional.IsDefined(UseInApiDocumentation))
+ {
+ writer.WritePropertyName("useInApiDocumentation"u8);
+ writer.WriteBooleanValue(UseInApiDocumentation.Value);
+ }
writer.WriteEndObject();
writer.WriteEndObject();
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.cs
index 789866c59544..858c4eccc691 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementOpenIdConnectProviderPatch.cs
@@ -25,5 +25,9 @@ public ApiManagementOpenIdConnectProviderPatch()
public string ClientId { get; set; }
/// Client Secret of developer console which is the client application.
public string ClientSecret { get; set; }
+ /// If true, the Open ID Connect provider may be used in the developer portal test console. True by default if no value is provided.
+ public bool? UseInTestConsole { get; set; }
+ /// If true, the Open ID Connect provider will be used in the API documentation in the developer portal. False by default if no value is provided.
+ public bool? UseInApiDocumentation { get; set; }
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceData.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceData.Serialization.cs
index 318aca32b93d..61663cf1bf98 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceData.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServiceData.Serialization.cs
@@ -119,6 +119,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("enableClientCertificate"u8);
writer.WriteBooleanValue(EnableClientCertificate.Value);
}
+ if (Optional.IsDefined(NatGatewayState))
+ {
+ writer.WritePropertyName("natGatewayState"u8);
+ writer.WriteStringValue(NatGatewayState.Value.ToString());
+ }
if (Optional.IsDefined(DisableGateway))
{
writer.WritePropertyName("disableGateway"u8);
@@ -193,6 +198,8 @@ internal static ApiManagementServiceData DeserializeApiManagementServiceData(Jso
Optional> customProperties = default;
Optional> certificates = default;
Optional enableClientCertificate = default;
+ Optional natGatewayState = default;
+ Optional> outboundPublicIPAddresses = default;
Optional disableGateway = default;
Optional virtualNetworkType = default;
Optional apiVersionConstraint = default;
@@ -526,6 +533,31 @@ internal static ApiManagementServiceData DeserializeApiManagementServiceData(Jso
enableClientCertificate = property0.Value.GetBoolean();
continue;
}
+ if (property0.NameEquals("natGatewayState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ natGatewayState = new NatGatewayState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("outboundPublicIPAddresses"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ outboundPublicIPAddresses = array;
+ continue;
+ }
if (property0.NameEquals("disableGateway"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -605,7 +637,7 @@ internal static ApiManagementServiceData DeserializeApiManagementServiceData(Jso
continue;
}
}
- return new ApiManagementServiceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, identity, Optional.ToNullable(etag), Optional.ToList(zones), notificationSenderEmail.Value, provisioningState.Value, targetProvisioningState.Value, Optional.ToNullable(createdAtUtc), gatewayUri.Value, gatewayRegionalUri.Value, portalUri.Value, managementApiUri.Value, scmUri.Value, developerPortalUri.Value, Optional.ToList(hostnameConfigurations), Optional.ToList(publicIPAddresses), Optional.ToList(privateIPAddresses), publicIPAddressId.Value, Optional.ToNullable(publicNetworkAccess), virtualNetworkConfiguration.Value, Optional.ToList(additionalLocations), Optional.ToDictionary(customProperties), Optional.ToList(certificates), Optional.ToNullable(enableClientCertificate), Optional.ToNullable(disableGateway), Optional.ToNullable(virtualNetworkType), apiVersionConstraint.Value, Optional.ToNullable(restore), Optional.ToList(privateEndpointConnections), Optional.ToNullable(platformVersion), publisherEmail, publisherName);
+ return new ApiManagementServiceData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, identity, Optional.ToNullable(etag), Optional.ToList(zones), notificationSenderEmail.Value, provisioningState.Value, targetProvisioningState.Value, Optional.ToNullable(createdAtUtc), gatewayUri.Value, gatewayRegionalUri.Value, portalUri.Value, managementApiUri.Value, scmUri.Value, developerPortalUri.Value, Optional.ToList(hostnameConfigurations), Optional.ToList(publicIPAddresses), Optional.ToList(privateIPAddresses), publicIPAddressId.Value, Optional.ToNullable(publicNetworkAccess), virtualNetworkConfiguration.Value, Optional.ToList(additionalLocations), Optional.ToDictionary(customProperties), Optional.ToList(certificates), Optional.ToNullable(enableClientCertificate), Optional.ToNullable(natGatewayState), Optional.ToList(outboundPublicIPAddresses), Optional.ToNullable(disableGateway), Optional.ToNullable(virtualNetworkType), apiVersionConstraint.Value, Optional.ToNullable(restore), Optional.ToList(privateEndpointConnections), Optional.ToNullable(platformVersion), publisherEmail, publisherName);
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.Serialization.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.Serialization.cs
index f33c1e31e69c..a36c63bf8a05 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.Serialization.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.Serialization.cs
@@ -119,6 +119,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer)
writer.WritePropertyName("enableClientCertificate"u8);
writer.WriteBooleanValue(EnableClientCertificate.Value);
}
+ if (Optional.IsDefined(NatGatewayState))
+ {
+ writer.WritePropertyName("natGatewayState"u8);
+ writer.WriteStringValue(NatGatewayState.Value.ToString());
+ }
if (Optional.IsDefined(DisableGateway))
{
writer.WritePropertyName("disableGateway"u8);
@@ -198,6 +203,8 @@ internal static ApiManagementServicePatch DeserializeApiManagementServicePatch(J
Optional> customProperties = default;
Optional> certificates = default;
Optional enableClientCertificate = default;
+ Optional natGatewayState = default;
+ Optional> outboundPublicIPAddresses = default;
Optional disableGateway = default;
Optional virtualNetworkType = default;
Optional apiVersionConstraint = default;
@@ -531,6 +538,31 @@ internal static ApiManagementServicePatch DeserializeApiManagementServicePatch(J
enableClientCertificate = property0.Value.GetBoolean();
continue;
}
+ if (property0.NameEquals("natGatewayState"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ natGatewayState = new NatGatewayState(property0.Value.GetString());
+ continue;
+ }
+ if (property0.NameEquals("outboundPublicIPAddresses"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ property0.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property0.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ outboundPublicIPAddresses = array;
+ continue;
+ }
if (property0.NameEquals("disableGateway"u8))
{
if (property0.Value.ValueKind == JsonValueKind.Null)
@@ -610,7 +642,7 @@ internal static ApiManagementServicePatch DeserializeApiManagementServicePatch(J
continue;
}
}
- return new ApiManagementServicePatch(id, name, type, systemData.Value, sku.Value, identity, Optional.ToNullable(etag), Optional.ToList(zones), notificationSenderEmail.Value, provisioningState.Value, targetProvisioningState.Value, Optional.ToNullable(createdAtUtc), gatewayUri.Value, gatewayRegionalUri.Value, portalUri.Value, managementApiUri.Value, scmUri.Value, developerPortalUri.Value, Optional.ToList(hostnameConfigurations), Optional.ToList(publicIPAddresses), Optional.ToList(privateIPAddresses), publicIPAddressId.Value, Optional.ToNullable(publicNetworkAccess), virtualNetworkConfiguration.Value, Optional.ToList(additionalLocations), Optional.ToDictionary(customProperties), Optional.ToList(certificates), Optional.ToNullable(enableClientCertificate), Optional.ToNullable(disableGateway), Optional.ToNullable(virtualNetworkType), apiVersionConstraint.Value, Optional.ToNullable(restore), Optional.ToList(privateEndpointConnections), Optional.ToNullable(platformVersion), publisherEmail.Value, publisherName.Value, Optional.ToDictionary(tags));
+ return new ApiManagementServicePatch(id, name, type, systemData.Value, sku.Value, identity, Optional.ToNullable(etag), Optional.ToList(zones), notificationSenderEmail.Value, provisioningState.Value, targetProvisioningState.Value, Optional.ToNullable(createdAtUtc), gatewayUri.Value, gatewayRegionalUri.Value, portalUri.Value, managementApiUri.Value, scmUri.Value, developerPortalUri.Value, Optional.ToList(hostnameConfigurations), Optional.ToList(publicIPAddresses), Optional.ToList(privateIPAddresses), publicIPAddressId.Value, Optional.ToNullable(publicNetworkAccess), virtualNetworkConfiguration.Value, Optional.ToList(additionalLocations), Optional.ToDictionary(customProperties), Optional.ToList(certificates), Optional.ToNullable(enableClientCertificate), Optional.ToNullable(natGatewayState), Optional.ToList(outboundPublicIPAddresses), Optional.ToNullable(disableGateway), Optional.ToNullable(virtualNetworkType), apiVersionConstraint.Value, Optional.ToNullable(restore), Optional.ToList(privateEndpointConnections), Optional.ToNullable(platformVersion), publisherEmail.Value, publisherName.Value, Optional.ToDictionary(tags));
}
}
}
diff --git a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs
index d20467e7befa..1ffb76594873 100644
--- a/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs
+++ b/sdk/apimanagement/Azure.ResourceManager.ApiManagement/src/Generated/Models/ApiManagementServicePatch.cs
@@ -27,6 +27,7 @@ public ApiManagementServicePatch()
AdditionalLocations = new ChangeTrackingList();
CustomProperties = new ChangeTrackingDictionary();
Certificates = new ChangeTrackingList();
+ OutboundPublicIPAddresses = new ChangeTrackingList();
PrivateEndpointConnections = new ChangeTrackingList();
Tags = new ChangeTrackingDictionary();
}
@@ -57,9 +58,11 @@ public ApiManagementServicePatch()
/// Whether or not public endpoint access is allowed for this API Management service. Value is optional but if passed in, must be 'Enabled' or 'Disabled'. If 'Disabled', private endpoints are the exclusive access method. Default value is 'Enabled'.
/// Virtual network configuration of the API Management service.
/// Additional datacenter locations of the API Management service.
- /// Custom properties of the API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.</br>Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1st 2018 and `False` otherwise. Http2 setting's default value is `False`.</br></br>You can disable any of next ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them. Note: next ciphers can't be disabled since they are required by Azure CloudService internal components: TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_GCM_SHA384.
+ /// Custom properties of the API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TripleDes168` will disable the cipher TLS_RSA_WITH_3DES_EDE_CBC_SHA for all TLS(1.0, 1.1 and 1.2).</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls11` can be used to disable just TLS 1.1.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Protocols.Tls10` can be used to disable TLS 1.0 on an API Management service.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls11` can be used to disable just TLS 1.1 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Backend.Protocols.Tls10` can be used to disable TLS 1.0 for communications with backends.</br>Setting `Microsoft.WindowsAzure.ApiManagement.Gateway.Protocols.Server.Http2` can be used to enable HTTP2 protocol on an API Management service.</br>Not specifying any of these properties on PATCH operation will reset omitted properties' values to their defaults. For all the settings except Http2 the default value is `True` if the service was created on or before April 1, 2018 and `False` otherwise. Http2 setting's default value is `False`.</br></br>You can disable any of the following ciphers by using settings `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.[cipher_name]`: TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA, TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_128_GCM_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA256, TLS_RSA_WITH_AES_128_CBC_SHA256, TLS_RSA_WITH_AES_256_CBC_SHA, TLS_RSA_WITH_AES_128_CBC_SHA. For example, `Microsoft.WindowsAzure.ApiManagement.Gateway.Security.Ciphers.TLS_RSA_WITH_AES_128_CBC_SHA256`:`false`. The default value is `true` for them.</br> Note: The following ciphers can't be disabled since they are required by internal platform components: TLS_AES_256_GCM_SHA384,TLS_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384,TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256.
/// List of Certificates that need to be installed in the API Management service. Max supported certificates that can be installed is 10.
/// Property only meant to be used for Consumption SKU Service. This enforces a client certificate to be presented on each request to the gateway. This also enables the ability to authenticate the certificate in the policy on the gateway.
+ /// Property can be used to enable NAT Gateway for this API Management service.
+ /// Outbound public IPV4 address prefixes associated with NAT Gateway deployed service. Available only for Premium SKU on stv2 platform.
/// Property only valid for an Api Management service deployed in multiple locations. This can be used to disable the gateway in master region.
/// The type of VPN in which API Management service needs to be configured in. None (Default Value) means the API Management service is not part of any Virtual Network, External means the API Management deployment is set up inside a Virtual Network having an Internet Facing Endpoint, and Internal means that API Management deployment is setup inside a Virtual Network having an Intranet Facing Endpoint only.
/// Control Plane Apis version constraint for the API Management service.
@@ -69,7 +72,7 @@ public ApiManagementServicePatch()
/// Publisher email.
/// Publisher name.
/// Resource tags.
- internal ApiManagementServicePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ApiManagementServiceSkuProperties sku, ManagedServiceIdentity identity, ETag? etag, IList zones, string notificationSenderEmail, string provisioningState, string targetProvisioningState, DateTimeOffset? createdAtUtc, Uri gatewayUri, Uri gatewayRegionalUri, Uri portalUri, Uri managementApiUri, Uri scmUri, Uri developerPortalUri, IList hostnameConfigurations, IReadOnlyList publicIPAddresses, IReadOnlyList privateIPAddresses, ResourceIdentifier publicIPAddressId, PublicNetworkAccess? publicNetworkAccess, VirtualNetworkConfiguration virtualNetworkConfiguration, IList additionalLocations, IDictionary customProperties, IList certificates, bool? enableClientCertificate, bool? disableGateway, VirtualNetworkType? virtualNetworkType, ApiVersionConstraint apiVersionConstraint, bool? restore, IList privateEndpointConnections, PlatformVersion? platformVersion, string publisherEmail, string publisherName, IDictionary tags) : base(id, name, resourceType, systemData)
+ internal ApiManagementServicePatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ApiManagementServiceSkuProperties sku, ManagedServiceIdentity identity, ETag? etag, IList zones, string notificationSenderEmail, string provisioningState, string targetProvisioningState, DateTimeOffset? createdAtUtc, Uri gatewayUri, Uri gatewayRegionalUri, Uri portalUri, Uri managementApiUri, Uri scmUri, Uri developerPortalUri, IList hostnameConfigurations, IReadOnlyList publicIPAddresses, IReadOnlyList privateIPAddresses, ResourceIdentifier publicIPAddressId, PublicNetworkAccess? publicNetworkAccess, VirtualNetworkConfiguration virtualNetworkConfiguration, IList