diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index abc102046755..17a01f690b5d 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -147,7 +147,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ConfigurationStore.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ConfigurationStore.cs index a2a9d06fa91e..bc10fccffc6d 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ConfigurationStore.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/ConfigurationStore.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppConfiguration /// A Class representing a ConfigurationStore along with the instance operations that can be performed on it. public partial class ConfigurationStore : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configStoreName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ConfigurationStoresRestOperations _configurationStoresRestClient; private readonly ConfigurationStoreData _data; diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateEndpointConnection.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateEndpointConnection.cs index 2453663d7b6b..eda09cf38461 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppConfiguration /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configStoreName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateLinkResource.cs b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateLinkResource.cs index 5400d3e03d0f..98d912bb2c59 100644 --- a/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateLinkResource.cs +++ b/sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/src/Generated/PrivateLinkResource.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppConfiguration /// A Class representing a PrivateLinkResource along with the instance operations that can be performed on it. public partial class PrivateLinkResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string configStoreName, string groupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppConfiguration/configurationStores/{configStoreName}/privateLinkResources/{groupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly PrivateLinkResourceData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdCustomDomain.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdCustomDomain.cs index 29ee0ab5e4cb..8a58202d09a2 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdCustomDomain.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdCustomDomain.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdCustomDomain along with the instance operations that can be performed on it. public partial class AfdCustomDomain : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string customDomainName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/customDomains/{customDomainName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdCustomDomainsRestOperations _afdCustomDomainsRestClient; private readonly AfdCustomDomainData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdEndpoint.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdEndpoint.cs index 6ef35a81f89d..3720ee74eb4f 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdEndpoint.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdEndpoint.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdEndpoint along with the instance operations that can be performed on it. public partial class AfdEndpoint : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdEndpointsRestOperations _afdEndpointsRestClient; private readonly AfdEndpointData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOrigin.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOrigin.cs index 90dfc1deb1d3..a75d9f21c9b6 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOrigin.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOrigin.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdOrigin along with the instance operations that can be performed on it. public partial class AfdOrigin : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string originGroupName, string originName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}/origins/{originName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdOriginsRestOperations _afdOriginsRestClient; private readonly AfdOriginData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOriginGroup.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOriginGroup.cs index 3a68d29c1d14..ce4154555908 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOriginGroup.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdOriginGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdOriginGroup along with the instance operations that can be performed on it. public partial class AfdOriginGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string originGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/originGroups/{originGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdOriginGroupsRestOperations _afdOriginGroupsRestClient; private readonly AfdOriginGroupData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRoute.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRoute.cs index eff2f79ed41a..f00c31f809ec 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRoute.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRoute.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdRoute along with the instance operations that can be performed on it. public partial class AfdRoute : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string routeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/afdEndpoints/{endpointName}/routes/{routeName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdRoutesRestOperations _afdRoutesRestClient; private readonly AfdRouteData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRule.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRule.cs index 8997f1d3dd72..209e9668e504 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRule.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdRule along with the instance operations that can be performed on it. public partial class AfdRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName, string ruleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}/rules/{ruleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdRulesRestOperations _afdRulesRestClient; private readonly AfdRuleData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRuleSet.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRuleSet.cs index a552a29e45f1..72476224c7cf 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRuleSet.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdRuleSet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdRuleSet along with the instance operations that can be performed on it. public partial class AfdRuleSet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string ruleSetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/ruleSets/{ruleSetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdRuleSetsRestOperations _afdRuleSetsRestClient; private readonly AfdRuleSetData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecret.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecret.cs index 7b945dc35ed6..458468982a5a 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecret.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecret.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdSecret along with the instance operations that can be performed on it. public partial class AfdSecret : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string secretName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/secrets/{secretName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdSecretsRestOperations _afdSecretsRestClient; private readonly AfdSecretData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecurityPolicy.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecurityPolicy.cs index 6b8a2dbc8935..331d552e354e 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecurityPolicy.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/AfdSecurityPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a AfdSecurityPolicy along with the instance operations that can be performed on it. public partial class AfdSecurityPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string securityPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/securityPolicies/{securityPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AfdSecurityPoliciesRestOperations _afdSecurityPoliciesRestClient; private readonly AfdSecurityPolicyData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnCustomDomain.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnCustomDomain.cs index 1a33e6246031..e781b2cebed7 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnCustomDomain.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnCustomDomain.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a CdnCustomDomain along with the instance operations that can be performed on it. public partial class CdnCustomDomain : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string customDomainName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/customDomains/{customDomainName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CdnCustomDomainsRestOperations _cdnCustomDomainsRestClient; private readonly CdnCustomDomainData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnEndpoint.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnEndpoint.cs index dacede8af410..c490ab06913a 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnEndpoint.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnEndpoint.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a CdnEndpoint along with the instance operations that can be performed on it. public partial class CdnEndpoint : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string endpointName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CdnEndpointsRestOperations _cdnEndpointsRestClient; private readonly CdnEndpointData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOrigin.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOrigin.cs index b84e6235a86c..e408ad796b74 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOrigin.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOrigin.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a CdnOrigin along with the instance operations that can be performed on it. public partial class CdnOrigin : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/origins/{originName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CdnOriginsRestOperations _cdnOriginsRestClient; private readonly CdnOriginData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOriginGroup.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOriginGroup.cs index 77a3dafe0ed6..67489369566f 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOriginGroup.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnOriginGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a CdnOriginGroup along with the instance operations that can be performed on it. public partial class CdnOriginGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName, string endpointName, string originGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}/endpoints/{endpointName}/originGroups/{originGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CdnOriginGroupsRestOperations _cdnOriginGroupsRestClient; private readonly CdnOriginGroupData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicy.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicy.cs index f3f635409170..97cecfa2032b 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicy.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/CdnWebApplicationFirewallPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a CdnWebApplicationFirewallPolicy along with the instance operations that can be performed on it. public partial class CdnWebApplicationFirewallPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/CdnWebApplicationFirewallPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PoliciesRestOperations _policiesRestClient; private readonly CdnWebApplicationFirewallPolicyData _data; diff --git a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Profile.cs b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Profile.cs index 81abbee3c786..2c7129ebe148 100644 --- a/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Profile.cs +++ b/sdk/cdn/Azure.ResourceManager.Cdn/src/Generated/Profile.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Cdn /// A Class representing a Profile along with the instance operations that can be performed on it. public partial class Profile : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string profileName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cdn/profiles/{profileName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ProfilesRestOperations _profilesRestClient; private readonly AfdProfilesRestOperations _afdProfilesRestClient; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySet.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySet.cs index bd86f316e3f9..8b56a00c3652 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySet.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/AvailabilitySet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a AvailabilitySet along with the instance operations that can be performed on it. public partial class AvailabilitySet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string availabilitySetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/availabilitySets/{availabilitySetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AvailabilitySetsRestOperations _availabilitySetsRestClient; private readonly AvailabilitySetData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudService.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudService.cs index b6b7c5bd8abe..ba7b39d7cc49 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudService.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudService.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a CloudService along with the instance operations that can be performed on it. public partial class CloudService : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string cloudServiceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CloudServicesRestOperations _cloudServicesRestClient; private readonly CloudServicesUpdateDomainRestOperations _cloudServicesUpdateDomainRestClient; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRole.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRole.cs index 667cb3c1bb68..1854ab4fb482 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRole.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/CloudServiceRole.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a CloudServiceRole along with the instance operations that can be performed on it. public partial class CloudServiceRole : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roles/{roleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CloudServiceRolesRestOperations _cloudServiceRolesRestClient; private readonly CloudServiceRoleData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHost.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHost.cs index 87ffce5b3bfe..0dc9f90b9a3c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHost.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHost.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a DedicatedHost along with the instance operations that can be performed on it. public partial class DedicatedHost : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string hostGroupName, string hostName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}/hosts/{hostName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DedicatedHostsRestOperations _dedicatedHostsRestClient; private readonly DedicatedHostData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroup.cs index 0d3c3bb057a8..b54b5b98f8be 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DedicatedHostGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a DedicatedHostGroup along with the instance operations that can be performed on it. public partial class DedicatedHostGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string hostGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/hostGroups/{hostGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DedicatedHostGroupsRestOperations _dedicatedHostGroupsRestClient; private readonly DedicatedHostGroupData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Disk.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Disk.cs index 4f144a026ba5..79b4535b655b 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Disk.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Disk.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a Disk along with the instance operations that can be performed on it. public partial class Disk : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string diskName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/disks/{diskName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DisksRestOperations _disksRestClient; private readonly DiskData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskAccess.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskAccess.cs index 2778f1285c64..08255a59c4af 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskAccess.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskAccess.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a DiskAccess along with the instance operations that can be performed on it. public partial class DiskAccess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string diskAccessName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiskAccessesRestOperations _diskAccessesRestClient; private readonly DiskAccessData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskEncryptionSet.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskEncryptionSet.cs index cf888b802b31..4b4cb17a4312 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskEncryptionSet.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskEncryptionSet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a DiskEncryptionSet along with the instance operations that can be performed on it. public partial class DiskEncryptionSet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string diskEncryptionSetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskEncryptionSets/{diskEncryptionSetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiskEncryptionSetsRestOperations _diskEncryptionSetsRestClient; private readonly DiskEncryptionSetData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskRestorePoint.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskRestorePoint.cs index 3f1f6c07dca3..a7b3f43c6cd0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskRestorePoint.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/DiskRestorePoint.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a DiskRestorePoint along with the instance operations that can be performed on it. public partial class DiskRestorePoint : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string restorePointCollectionName, string vmRestorePointName, string diskRestorePointName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{vmRestorePointName}/diskRestorePoints/{diskRestorePointName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiskRestorePointRestOperations _diskRestorePointRestClient; private readonly DiskRestorePointData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Gallery.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Gallery.cs index 5b7ae1376520..6af9712bad4e 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Gallery.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Gallery.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a Gallery along with the instance operations that can be performed on it. public partial class Gallery : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GalleriesRestOperations _galleriesRestClient; private readonly GallerySharingProfileRestOperations _gallerySharingProfileRestClient; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplication.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplication.cs index d3872bf9eaa1..29ccd7518ff2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplication.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplication.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a GalleryApplication along with the instance operations that can be performed on it. public partial class GalleryApplication : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GalleryApplicationsRestOperations _galleryApplicationsRestClient; private readonly GalleryApplicationData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersion.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersion.cs index b8da66b595b5..656f5ac6c0b8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersion.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryApplicationVersion.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a GalleryApplicationVersion along with the instance operations that can be performed on it. public partial class GalleryApplicationVersion : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string galleryApplicationName, string galleryApplicationVersionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/applications/{galleryApplicationName}/versions/{galleryApplicationVersionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GalleryApplicationVersionsRestOperations _galleryApplicationVersionsRestClient; private readonly GalleryApplicationVersionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImage.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImage.cs index e47fde7faf8d..a7e507975f28 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImage.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImage.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a GalleryImage along with the instance operations that can be performed on it. public partial class GalleryImage : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GalleryImagesRestOperations _galleryImagesRestClient; private readonly GalleryImageData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersion.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersion.cs index aa1b57a64d97..aeeb15c4cc5a 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersion.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/GalleryImageVersion.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a GalleryImageVersion along with the instance operations that can be performed on it. public partial class GalleryImageVersion : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string galleryName, string galleryImageName, string galleryImageVersionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/galleries/{galleryName}/images/{galleryImageName}/versions/{galleryImageVersionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GalleryImageVersionsRestOperations _galleryImageVersionsRestClient; private readonly GalleryImageVersionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Image.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Image.cs index 4b2c7e4156e0..eaddb0646cbc 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Image.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Image.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a Image along with the instance operations that can be performed on it. public partial class Image : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string imageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/images/{imageName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ImagesRestOperations _imagesRestClient; private readonly ImageData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSFamily.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSFamily.cs index e0290d940cf7..220ffaa880f1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSFamily.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSFamily.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a OSFamily along with the instance operations that can be performed on it. public partial class OSFamily : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string osFamilyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsFamilies/{osFamilyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CloudServiceOperatingSystemsRestOperations _cloudServiceOperatingSystemsRestClient; private readonly OSFamilyData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSVersion.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSVersion.cs index 898f0c9019bc..33c2b9f5ffab 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSVersion.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/OSVersion.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a OSVersion along with the instance operations that can be performed on it. public partial class OSVersion : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string osVersionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/cloudServiceOsVersions/{osVersionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CloudServiceOperatingSystemsRestOperations _cloudServiceOperatingSystemsRestClient; private readonly OSVersionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/PrivateEndpointConnection.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/PrivateEndpointConnection.cs index 98489bc29bd0..349b556443d4 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string diskAccessName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/diskAccesses/{diskAccessName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiskAccessesRestOperations _diskAccessesRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroup.cs index 62e1aa2dbb39..708ecad773c2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/ProximityPlacementGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a ProximityPlacementGroup along with the instance operations that can be performed on it. public partial class ProximityPlacementGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string proximityPlacementGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/proximityPlacementGroups/{proximityPlacementGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ProximityPlacementGroupsRestOperations _proximityPlacementGroupsRestClient; private readonly ProximityPlacementGroupData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePoint.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePoint.cs index 178cc6505e3a..1958114216a8 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePoint.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePoint.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a RestorePoint along with the instance operations that can be performed on it. public partial class RestorePoint : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string restorePointCollectionName, string restorePointName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}/restorePoints/{restorePointName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RestorePointsRestOperations _restorePointsRestClient; private readonly RestorePointData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroup.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroup.cs index 2a8a16b1474c..dad2a4ad8ee1 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroup.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RestorePointGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a RestorePointGroup along with the instance operations that can be performed on it. public partial class RestorePointGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string restorePointCollectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/restorePointCollections/{restorePointCollectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RestorePointCollectionsRestOperations _restorePointCollectionsRestClient; private readonly RestorePointGroupData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RoleInstance.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RoleInstance.cs index 9b510d56d20f..7a6e62c046a0 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RoleInstance.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/RoleInstance.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a RoleInstance along with the instance operations that can be performed on it. public partial class RoleInstance : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string cloudServiceName, string roleInstanceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/cloudServices/{cloudServiceName}/roleInstances/{roleInstanceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CloudServiceRoleInstancesRestOperations _cloudServiceRoleInstancesRestClient; private readonly RoleInstanceData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Snapshot.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Snapshot.cs index d8f4a07aeb51..c166499ee496 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Snapshot.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Snapshot.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a Snapshot along with the instance operations that can be performed on it. public partial class Snapshot : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string snapshotName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/snapshots/{snapshotName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SnapshotsRestOperations _snapshotsRestClient; private readonly SnapshotData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKey.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKey.cs index f3135f1108ff..2e43f5432add 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKey.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/SshPublicKey.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a SshPublicKey along with the instance operations that can be performed on it. public partial class SshPublicKey : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string sshPublicKeyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/sshPublicKeys/{sshPublicKeyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SshPublicKeysRestOperations _sshPublicKeysRestClient; private readonly SshPublicKeyData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachine.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachine.cs index 8212cf95458c..7ad716d57cb6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachine.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachine.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachine along with the instance operations that can be performed on it. public partial class VirtualMachine : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachinesRestOperations _virtualMachinesRestClient; private readonly VirtualMachineData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtension.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtension.cs index 01bcb90a44d1..564449f48fd6 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtension.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineExtension along with the instance operations that can be performed on it. public partial class VirtualMachineExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmName, string vmExtensionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{vmExtensionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineExtensionsRestOperations _virtualMachineExtensionsRestClient; private readonly VirtualMachineExtensionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionImage.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionImage.cs index f1f936b40c96..75ff05f4ce3f 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionImage.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineExtensionImage.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineExtensionImage along with the instance operations that can be performed on it. public partial class VirtualMachineExtensionImage : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string publisherName, string type, string version) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Compute/locations/{location}/publishers/{publisherName}/artifacttypes/vmextension/types/{type}/versions/{version}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineExtensionImagesRestOperations _virtualMachineExtensionImagesRestClient; private readonly VirtualMachineExtensionImageData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineRunCommand.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineRunCommand.cs index cc696767aa0c..980751ddd2f9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineRunCommand.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineRunCommand.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineRunCommand along with the instance operations that can be performed on it. public partial class VirtualMachineRunCommand : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmName, string runCommandName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/runCommands/{runCommandName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineRunCommandsRestOperations _virtualMachineRunCommandsRestClient; private readonly VirtualMachineRunCommandData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSet.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSet.cs index a9cb98bb968f..90308283599d 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSet.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineScaleSet along with the instance operations that can be performed on it. public partial class VirtualMachineScaleSet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmScaleSetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineScaleSetsRestOperations _virtualMachineScaleSetsRestClient; private readonly VirtualMachineScaleSetRollingUpgradesRestOperations _virtualMachineScaleSetRollingUpgradesRestClient; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtension.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtension.cs index 7902d104ff1a..b81b85ae62a9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtension.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineScaleSetExtension along with the instance operations that can be performed on it. public partial class VirtualMachineScaleSetExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmScaleSetName, string vmssExtensionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/extensions/{vmssExtensionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineScaleSetExtensionsRestOperations _virtualMachineScaleSetExtensionsRestClient; private readonly VirtualMachineScaleSetExtensionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetRollingUpgrade.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetRollingUpgrade.cs index 614a136e9473..43dd7d08548c 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetRollingUpgrade.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetRollingUpgrade.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineScaleSetRollingUpgrade along with the instance operations that can be performed on it. public partial class VirtualMachineScaleSetRollingUpgrade : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmScaleSetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/rollingUpgrades/latest"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineScaleSetRollingUpgradesRestOperations _virtualMachineScaleSetRollingUpgradesRestClient; private readonly VirtualMachineScaleSetRollingUpgradeData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVM.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVM.cs index 3570eac8b971..beb2e4ab9c86 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVM.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVM.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineScaleSetVM along with the instance operations that can be performed on it. public partial class VirtualMachineScaleSetVM : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmScaleSetName, string instanceId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualmachines/{instanceId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineScaleSetVMsRestOperations _virtualMachineScaleSetVMsRestClient; private readonly VirtualMachineScaleSetVMData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVMExtension.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVMExtension.cs index 68dfbd524266..976f76660078 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVMExtension.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVMExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineScaleSetVMExtension along with the instance operations that can be performed on it. public partial class VirtualMachineScaleSetVMExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmScaleSetName, string instanceId, string vmExtensionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/extensions/{vmExtensionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineScaleSetVMExtensionsRestOperations _virtualMachineScaleSetVMExtensionsRestClient; private readonly VirtualMachineScaleSetVMExtensionData _data; diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVirtualMachineRunCommand.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVirtualMachineRunCommand.cs index c9d4e9fe973b..90662e07c7f9 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVirtualMachineRunCommand.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/VirtualMachineScaleSetVirtualMachineRunCommand.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Compute /// A Class representing a VirtualMachineScaleSetVirtualMachineRunCommand along with the instance operations that can be performed on it. public partial class VirtualMachineScaleSetVirtualMachineRunCommand : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vmScaleSetName, string instanceId, string runCommandName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachineScaleSets/{vmScaleSetName}/virtualMachines/{instanceId}/runCommands/{runCommandName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineScaleSetVMRunCommandsRestOperations _virtualMachineScaleSetVMRunCommandsRestClient; private readonly VirtualMachineRunCommandData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/GuestAgent.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/GuestAgent.cs index 729a8fb0caaf..af4029fa2eb6 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/GuestAgent.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/GuestAgent.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a GuestAgent along with the instance operations that can be performed on it. public partial class GuestAgent : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualMachineName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/guestAgents/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GuestAgentsRestOperations _guestAgentsRestClient; private readonly GuestAgentData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/HybridIdentityMetadata.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/HybridIdentityMetadata.cs index 61f817fc85c5..4aa69d96250f 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/HybridIdentityMetadata.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/HybridIdentityMetadata.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a HybridIdentityMetadata along with the instance operations that can be performed on it. public partial class HybridIdentityMetadata : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualMachineName, string metadataName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}/hybridIdentityMetadata/{metadataName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly HybridIdentityMetadataRestOperations _hybridIdentityMetadataRestClient; private readonly HybridIdentityMetadataData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/InventoryItem.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/InventoryItem.cs index 7eca04d346af..9c5f4413c981 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/InventoryItem.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/InventoryItem.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a InventoryItem along with the instance operations that can be performed on it. public partial class InventoryItem : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vcenterName, string inventoryItemName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}/inventoryItems/{inventoryItemName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly InventoryItemsRestOperations _inventoryItemsRestClient; private readonly InventoryItemData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/MachineExtension.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/MachineExtension.cs index b6c149ed286a..255838a738d8 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/MachineExtension.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/MachineExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a MachineExtension along with the instance operations that can be performed on it. public partial class MachineExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string extensionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{name}/extensions/{extensionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MachineExtensionsRestOperations _machineExtensionsRestClient; private readonly MachineExtensionData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/ResourcePool.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/ResourcePool.cs index 721d913d1c0a..2e3f8bc384e1 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/ResourcePool.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/ResourcePool.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a ResourcePool along with the instance operations that can be performed on it. public partial class ResourcePool : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourcePoolName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/resourcePools/{resourcePoolName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ResourcePoolsRestOperations _resourcePoolsRestClient; private readonly ResourcePoolData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VCenter.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VCenter.cs index 8413196a7aaa..7510f3c212ae 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VCenter.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VCenter.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VCenter along with the instance operations that can be performed on it. public partial class VCenter : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vcenterName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/vcenters/{vcenterName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VCentersRestOperations _vCentersRestClient; private readonly VCenterData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachine.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachine.cs index b80e33e556b8..26c2d9f26ce5 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachine.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachine.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VirtualMachine along with the instance operations that can be performed on it. public partial class VirtualMachine : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualMachineName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachines/{virtualMachineName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachinesRestOperations _virtualMachinesRestClient; private readonly VirtualMachineData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachineTemplate.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachineTemplate.cs index f7a1fffb13ba..21eb7c5cd560 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachineTemplate.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualMachineTemplate.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VirtualMachineTemplate along with the instance operations that can be performed on it. public partial class VirtualMachineTemplate : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualMachineTemplateName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualMachineTemplates/{virtualMachineTemplateName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualMachineTemplatesRestOperations _virtualMachineTemplatesRestClient; private readonly VirtualMachineTemplateData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualNetwork.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualNetwork.cs index a039b4587415..26931c9eef28 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualNetwork.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VirtualNetwork.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VirtualNetwork along with the instance operations that can be performed on it. public partial class VirtualNetwork : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/virtualNetworks/{virtualNetworkName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworksRestOperations _virtualNetworksRestClient; private readonly VirtualNetworkData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareCluster.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareCluster.cs index c71ac8193070..9c1f58eb1b75 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareCluster.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareCluster.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VmwareCluster along with the instance operations that can be performed on it. public partial class VmwareCluster : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/clusters/{clusterName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ClustersRestOperations _clustersRestClient; private readonly VmwareClusterData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareDatastore.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareDatastore.cs index a76ed252ea7a..35fb8424dced 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareDatastore.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareDatastore.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VmwareDatastore along with the instance operations that can be performed on it. public partial class VmwareDatastore : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string datastoreName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/datastores/{datastoreName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatastoresRestOperations _datastoresRestClient; private readonly VmwareDatastoreData _data; diff --git a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareHost.cs b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareHost.cs index 30702e21bfce..5ca5852eea6c 100644 --- a/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareHost.cs +++ b/sdk/connectedvmware/Azure.ResourceManager.ConnectedVmware/src/Generated/VmwareHost.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ConnectedVmware /// A Class representing a VmwareHost along with the instance operations that can be performed on it. public partial class VmwareHost : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string hostName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConnectedVMwarevSphere/hosts/{hostName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly HostsRestOperations _hostsRestClient; private readonly VmwareHostData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspace.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspace.cs index ebd339661c30..a49050c239ea 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspace.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraKeyspace.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a CassandraKeyspace along with the instance operations that can be performed on it. public partial class CassandraKeyspace : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CassandraResourcesRestOperations _cassandraResourcesRestClient; private readonly CassandraKeyspaceData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTable.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTable.cs index 52b23e0c0cf0..35a91cdfd636 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTable.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CassandraTable.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a CassandraTable along with the instance operations that can be performed on it. public partial class CassandraTable : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CassandraResourcesRestOperations _cassandraResourcesRestClient; private readonly CassandraTableData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosTable.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosTable.cs index 96398810928e..586efd0fc4ca 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosTable.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosTable.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a CosmosTable along with the instance operations that can be performed on it. public partial class CosmosTable : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TableResourcesRestOperations _tableResourcesRestClient; private readonly CosmosTableData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccount.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccount.cs index 0f52946ea4c0..45afc1b43a94 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccount.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccount.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccount along with the instance operations that can be performed on it. public partial class DatabaseAccount : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseAccountsRestOperations _databaseAccountsRestClient; private readonly DatabaseRestOperations _databaseRestClient; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceTableThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceTableThroughputSetting.cs index 480d58866206..4fe09f1cffff 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceTableThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceTableThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountCassandraKeyspaceTableThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountCassandraKeyspaceTableThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/tables/{tableName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CassandraResourcesRestOperations _cassandraResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceThroughputSetting.cs index 213aad366f46..2c2438ab3b91 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountCassandraKeyspaceThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountCassandraKeyspaceThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountCassandraKeyspaceThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string keyspaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/cassandraKeyspaces/{keyspaceName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CassandraResourcesRestOperations _cassandraResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseGraphThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseGraphThroughputSetting.cs index cb7cd48a20cf..7656bf96ad9f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseGraphThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseGraphThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountGremlinDatabaseGraphThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountGremlinDatabaseGraphThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GremlinResourcesRestOperations _gremlinResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseThroughputSetting.cs index 6856d4d17956..8b56ff12655e 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountGremlinDatabaseThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountGremlinDatabaseThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountGremlinDatabaseThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GremlinResourcesRestOperations _gremlinResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseCollectionThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseCollectionThroughputSetting.cs index a375c1283475..af693e6b8158 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseCollectionThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseCollectionThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountMongodbDatabaseCollectionThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountMongodbDatabaseCollectionThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MongoDBResourcesRestOperations _mongoDBResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseThroughputSetting.cs index e47a40cbf410..fdcf113598e0 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountMongodbDatabaseThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountMongodbDatabaseThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountMongodbDatabaseThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MongoDBResourcesRestOperations _mongoDBResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseContainerThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseContainerThroughputSetting.cs index c21f720a0c9b..d66221d3a9cc 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseContainerThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseContainerThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountSqlDatabaseContainerThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountSqlDatabaseContainerThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseThroughputSetting.cs index bd020736a48a..f549ffe1a7aa 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountSqlDatabaseThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountSqlDatabaseThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountSqlDatabaseThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountTableThroughputSetting.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountTableThroughputSetting.cs index e711cd115178..ba17e7420f0b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountTableThroughputSetting.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/DatabaseAccountTableThroughputSetting.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a DatabaseAccountTableThroughputSetting along with the instance operations that can be performed on it. public partial class DatabaseAccountTableThroughputSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/tables/{tableName}/throughputSettings/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TableResourcesRestOperations _tableResourcesRestClient; private readonly ThroughputSettingsData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabase.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabase.cs index 7ff60a3d7f25..a9213632dc72 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabase.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinDatabase.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a GremlinDatabase along with the instance operations that can be performed on it. public partial class GremlinDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GremlinResourcesRestOperations _gremlinResourcesRestClient; private readonly GremlinDatabaseData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraph.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraph.cs index ee4a2229bbee..2c86ec51f876 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraph.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/GremlinGraph.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a GremlinGraph along with the instance operations that can be performed on it. public partial class GremlinGraph : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string graphName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/gremlinDatabases/{databaseName}/graphs/{graphName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GremlinResourcesRestOperations _gremlinResourcesRestClient; private readonly GremlinGraphData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollection.cs index 5a51bcf7a112..0436af1b3f7f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBCollection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a MongoDBCollection along with the instance operations that can be performed on it. public partial class MongoDBCollection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string collectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}/collections/{collectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MongoDBResourcesRestOperations _mongoDBResourcesRestClient; private readonly MongoDBCollectionData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabase.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabase.cs index 97abf0b0bdad..fdcf6496168f 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabase.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/MongoDBDatabase.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a MongoDBDatabase along with the instance operations that can be performed on it. public partial class MongoDBDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/mongodbDatabases/{databaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MongoDBResourcesRestOperations _mongoDBResourcesRestClient; private readonly MongoDBDatabaseData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateEndpointConnection.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateEndpointConnection.cs index 93e961f5c852..d4ed512c0320 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateLinkResource.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateLinkResource.cs index 982500057c95..9e573e89decb 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateLinkResource.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/PrivateLinkResource.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a PrivateLinkResource along with the instance operations that can be performed on it. public partial class PrivateLinkResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string groupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/privateLinkResources/{groupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly PrivateLinkResourceData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestorableDatabaseAccount.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestorableDatabaseAccount.cs index 694e5892efb0..466254c8fc40 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestorableDatabaseAccount.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/RestorableDatabaseAccount.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a RestorableDatabaseAccount along with the instance operations that can be performed on it. public partial class RestorableDatabaseAccount : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string instanceId) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.DocumentDB/locations/{location}/restorableDatabaseAccounts/{instanceId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RestorableDatabaseAccountsRestOperations _restorableDatabaseAccountsRestClient; private readonly RestorableSqlDatabasesRestOperations _restorableSqlDatabasesRestClient; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlContainer.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlContainer.cs index 56d8daf00db8..6302c501e844 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlContainer.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlContainer.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a SqlContainer along with the instance operations that can be performed on it. public partial class SqlContainer : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly SqlContainerData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlDatabase.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlDatabase.cs index d1b5ae608eee..21883bc96a8d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlDatabase.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlDatabase.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a SqlDatabase along with the instance operations that can be performed on it. public partial class SqlDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly SqlDatabaseData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlStoredProcedure.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlStoredProcedure.cs index 046174123c2f..87b32ba1badb 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlStoredProcedure.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlStoredProcedure.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a SqlStoredProcedure along with the instance operations that can be performed on it. public partial class SqlStoredProcedure : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string storedProcedureName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/storedProcedures/{storedProcedureName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly SqlStoredProcedureData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlTrigger.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlTrigger.cs index 252bfb6ed31c..01369a092f84 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlTrigger.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlTrigger.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a SqlTrigger along with the instance operations that can be performed on it. public partial class SqlTrigger : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string triggerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/triggers/{triggerName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly SqlTriggerData _data; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlUserDefinedFunction.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlUserDefinedFunction.cs index e7d721dc62a7..ce81bf2b5b2c 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlUserDefinedFunction.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/SqlUserDefinedFunction.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.CosmosDB /// A Class representing a SqlUserDefinedFunction along with the instance operations that can be performed on it. public partial class SqlUserDefinedFunction : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string databaseName, string containerName, string userDefinedFunctionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DocumentDB/databaseAccounts/{accountName}/sqlDatabases/{databaseName}/containers/{containerName}/userDefinedFunctions/{userDefinedFunctionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlResourcesRestOperations _sqlResourcesRestClient; private readonly SqlUserDefinedFunctionData _data; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccount.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccount.cs index 78210f3876a1..fa03da5d4299 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccount.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateAccount.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.DeviceUpdate /// A Class representing a DeviceUpdateAccount along with the instance operations that can be performed on it. public partial class DeviceUpdateAccount : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeviceUpdateAccountsRestOperations _deviceUpdateAccountsRestClient; private readonly DeviceUpdateAccountData _data; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateInstance.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateInstance.cs index f4abda8fcd20..13ccf2064ee7 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateInstance.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/DeviceUpdateInstance.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.DeviceUpdate /// A Class representing a DeviceUpdateInstance along with the instance operations that can be performed on it. public partial class DeviceUpdateInstance : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string instanceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/instances/{instanceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeviceUpdateInstancesRestOperations _deviceUpdateInstancesRestClient; private readonly DeviceUpdateInstanceData _data; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnection.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnection.cs index 8eca753614ca..370261e10268 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.DeviceUpdate /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxy.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxy.cs index 8d1defabea0e..58a6f62ee18d 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxy.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateEndpointConnectionProxy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.DeviceUpdate /// A Class representing a PrivateEndpointConnectionProxy along with the instance operations that can be performed on it. public partial class PrivateEndpointConnectionProxy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionProxyId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateEndpointConnectionProxies/{privateEndpointConnectionProxyId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionProxiesRestOperations _privateEndpointConnectionProxiesRestClient; private readonly PrivateEndpointConnectionProxyData _data; diff --git a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateLink.cs b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateLink.cs index 3d0326cf4c7d..b6ec65fe9502 100644 --- a/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateLink.cs +++ b/sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/src/Generated/PrivateLink.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.DeviceUpdate /// A Class representing a PrivateLink along with the instance operations that can be performed on it. public partial class PrivateLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string groupId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeviceUpdate/accounts/{accountName}/privateLinkResources/{groupId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly PrivateLinkData _data; diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/AddressResource.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/AddressResource.cs index 8a76c5c324e1..dfd482f46e8a 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/AddressResource.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/AddressResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EdgeOrder /// A Class representing a AddressResource along with the instance operations that can be performed on it. public partial class AddressResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string addressName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/addresses/{addressName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EdgeOrderManagementRestOperations _restClient; private readonly AddressResourceData _data; diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderItemResource.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderItemResource.cs index c2e705a50762..aa874170731a 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderItemResource.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderItemResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EdgeOrder /// A Class representing a OrderItemResource along with the instance operations that can be performed on it. public partial class OrderItemResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string orderItemName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/orderItems/{orderItemName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EdgeOrderManagementRestOperations _restClient; private readonly OrderItemResourceData _data; diff --git a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderResource.cs b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderResource.cs index 1cf7c98845d1..05d698cc90f8 100644 --- a/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderResource.cs +++ b/sdk/edgeorder/Azure.ResourceManager.EdgeOrder/src/Generated/OrderResource.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.EdgeOrder /// A Class representing a OrderResource along with the instance operations that can be performed on it. public partial class OrderResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string location, string orderName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EdgeOrder/locations/{location}/orders/{orderName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EdgeOrderManagementRestOperations _restClient; private readonly OrderResourceData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ConsumerGroup.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ConsumerGroup.cs index e257cf495466..40e69f94326e 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ConsumerGroup.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/ConsumerGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a ConsumerGroup along with the instance operations that can be performed on it. public partial class ConsumerGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string consumerGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ConsumerGroupsRestOperations _consumerGroupsRestClient; private readonly ConsumerGroupData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecovery.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecovery.cs index 6afd57bee73c..95cc8df2d925 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecovery.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecovery.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a DisasterRecovery along with the instance operations that can be performed on it. public partial class DisasterRecovery : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string alias) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DisasterRecoveryConfigsRestOperations _disasterRecoveryConfigsRestClient; private readonly DisasterRecoveriesRestOperations _disasterRecoveriesRestClient; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecoveryAuthorizationRule.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecoveryAuthorizationRule.cs index 6301567d60d2..188aaa916a8a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecoveryAuthorizationRule.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/DisasterRecoveryAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a DisasterRecoveryAuthorizationRule along with the instance operations that can be performed on it. public partial class DisasterRecoveryAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string alias, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DisasterRecoveryConfigsRestOperations _disasterRecoveryConfigsRestClient; private readonly AuthorizationRuleData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHub.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHub.cs index 951f5eac3790..90835263b64a 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHub.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHub.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a EventHub along with the instance operations that can be performed on it. public partial class EventHub : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EventHubsRestOperations _eventHubsRestClient; private readonly EventHubData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRule.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRule.cs index a069b4dc42cb..28879e6777cc 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRule.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a EventHubAuthorizationRule along with the instance operations that can be performed on it. public partial class EventHubAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string eventHubName, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EventHubsRestOperations _eventHubsRestClient; private readonly AuthorizationRuleData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCluster.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCluster.cs index 63579d3470b5..cf31b6fe044d 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCluster.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubCluster.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a EventHubCluster along with the instance operations that can be performed on it. public partial class EventHubCluster : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/clusters/{clusterName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ClustersRestOperations _clustersRestClient; private readonly EventHubClustersRestOperations _eventHubClustersRestClient; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubNamespace.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubNamespace.cs index 621c9d50d73f..84b43736e592 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubNamespace.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/EventHubNamespace.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a EventHubNamespace along with the instance operations that can be performed on it. public partial class EventHubNamespace : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NamespacesRestOperations _namespacesRestClient; private readonly EventHubNamespacesRestOperations _eventHubNamespacesRestClient; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NamespaceAuthorizationRule.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NamespaceAuthorizationRule.cs index e1d1787fe065..573d155ef4ce 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NamespaceAuthorizationRule.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NamespaceAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a NamespaceAuthorizationRule along with the instance operations that can be performed on it. public partial class NamespaceAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/authorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NamespacesRestOperations _namespacesRestClient; private readonly AuthorizationRuleData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSet.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSet.cs index dc6de156f141..e16b6f735a87 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSet.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/NetworkRuleSet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a NetworkRuleSet along with the instance operations that can be performed on it. public partial class NetworkRuleSet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/networkRuleSets/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NamespacesRestOperations _namespacesRestClient; private readonly NetworkRuleSetData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/PrivateEndpointConnection.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/PrivateEndpointConnection.cs index 214c32225eb3..8d2629537284 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/SchemaGroup.cs b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/SchemaGroup.cs index 69765f7366a3..45bd80547127 100644 --- a/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/SchemaGroup.cs +++ b/sdk/eventhub/Azure.ResourceManager.EventHubs/src/Generated/SchemaGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.EventHubs /// A Class representing a SchemaGroup along with the instance operations that can be performed on it. public partial class SchemaGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string schemaGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/schemagroups/{schemaGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SchemaRegistryRestOperations _schemaRegistryRestClient; private readonly SchemaGroupData _data; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsm.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsm.cs index 2e3f936a3dd9..e10a85cab0a9 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsm.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedManagedHsm.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.KeyVault /// A Class representing a DeletedManagedHsm along with the instance operations that can be performed on it. public partial class DeletedManagedHsm : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedManagedHSMs/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedHsmsRestOperations _managedHsmsRestClient; private readonly DeletedManagedHsmData _data; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedVault.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedVault.cs index e5d4d872bfb5..4f9b1dc90bba 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedVault.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/DeletedVault.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.KeyVault /// A Class representing a DeletedVault along with the instance operations that can be performed on it. public partial class DeletedVault : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string vaultName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.KeyVault/locations/{location}/deletedVaults/{vaultName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VaultsRestOperations _vaultsRestClient; private readonly DeletedVaultData _data; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsm.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsm.cs index ad35f9377edd..abf2be14c19a 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsm.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/ManagedHsm.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.KeyVault /// A Class representing a ManagedHsm along with the instance operations that can be performed on it. public partial class ManagedHsm : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedHsmsRestOperations _managedHsmsRestClient; private readonly MhsmPrivateLinkResourcesRestOperations _mHSMPrivateLinkResourcesRestClient; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/MhsmPrivateEndpointConnection.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/MhsmPrivateEndpointConnection.cs index 56f4c72cbdcb..c02e063299a8 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/MhsmPrivateEndpointConnection.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/MhsmPrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.KeyVault /// A Class representing a MhsmPrivateEndpointConnection along with the instance operations that can be performed on it. public partial class MhsmPrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MhsmPrivateEndpointConnectionsRestOperations _mHSMPrivateEndpointConnectionsRestClient; private readonly MhsmPrivateEndpointConnectionData _data; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/PrivateEndpointConnection.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/PrivateEndpointConnection.cs index 12756fcc3934..d34c6f6eff3d 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.KeyVault /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Vault.cs b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Vault.cs index 825f23edb764..0eb798d19430 100644 --- a/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Vault.cs +++ b/sdk/keyvault/Azure.ResourceManager.KeyVault/src/Generated/Vault.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.KeyVault /// A Class representing a Vault along with the instance operations that can be performed on it. public partial class Vault : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vaultName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/vaults/{vaultName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VaultsRestOperations _vaultsRestClient; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGateway.cs index 3b4cf3f3992b..7182db66cf66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ApplicationGateway along with the instance operations that can be performed on it. public partial class ApplicationGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationGatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationGatewaysRestOperations _applicationGatewaysRestClient; private readonly ApplicationGatewayPrivateLinkResourcesRestOperations _applicationGatewayPrivateLinkResourcesRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayAvailableSslOptions.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayAvailableSslOptions.cs index 62afd661bdbc..68170bf5a8d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayAvailableSslOptions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayAvailableSslOptions.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ApplicationGatewayAvailableSslOptions along with the instance operations that can be performed on it. public partial class ApplicationGatewayAvailableSslOptions : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationGatewaysRestOperations _applicationGatewaysRestClient; private readonly ApplicationGatewayAvailableSslOptionsData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnection.cs index 520e540a790d..62523fe197e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ApplicationGatewayPrivateEndpointConnection along with the instance operations that can be performed on it. public partial class ApplicationGatewayPrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationGatewayName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationGateways/{applicationGatewayName}/privateEndpointConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationGatewayPrivateEndpointConnectionsRestOperations _applicationGatewayPrivateEndpointConnectionsRestClient; private readonly ApplicationGatewayPrivateEndpointConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewaySslPredefinedPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewaySslPredefinedPolicy.cs index 609594af66ea..340ead4b2a48 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewaySslPredefinedPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewaySslPredefinedPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ApplicationGatewaySslPredefinedPolicy along with the instance operations that can be performed on it. public partial class ApplicationGatewaySslPredefinedPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string predefinedPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Network/applicationGatewayAvailableSslOptions/default/predefinedPolicies/{predefinedPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationGatewaysRestOperations _applicationGatewaysRestClient; private readonly ApplicationGatewaySslPredefinedPolicyData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroup.cs index f7f5971bed2c..1078ca843af7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ApplicationSecurityGroup along with the instance operations that can be performed on it. public partial class ApplicationSecurityGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationSecurityGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/applicationSecurityGroups/{applicationSecurityGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationSecurityGroupsRestOperations _applicationSecurityGroupsRestClient; private readonly ApplicationSecurityGroupData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewall.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewall.cs index 6b24729a457d..603ff75d5ad8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewall.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewall.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a AzureFirewall along with the instance operations that can be performed on it. public partial class AzureFirewall : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string azureFirewallName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/azureFirewalls/{azureFirewallName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AzureFirewallsRestOperations _azureFirewallsRestClient; private readonly AzureFirewallData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategory.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategory.cs index 4662eab82f77..d4c9742ea1ff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategory.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategory.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a AzureWebCategory along with the instance operations that can be performed on it. public partial class AzureWebCategory : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Network/azureWebCategories/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebCategoriesRestOperations _webCategoriesRestClient; private readonly AzureWebCategoryData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPool.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPool.cs index 00dfb1d507fb..3bf716952a4d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPool.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPool.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a BackendAddressPool along with the instance operations that can be performed on it. public partial class BackendAddressPool : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName, string backendAddressPoolName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/backendAddressPools/{backendAddressPoolName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LoadBalancerBackendAddressPoolsRestOperations _loadBalancerBackendAddressPoolsRestClient; private readonly BackendAddressPoolData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHost.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHost.cs index d83ff035f1c3..62f627cae539 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHost.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHost.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a BastionHost along with the instance operations that can be performed on it. public partial class BastionHost : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string bastionHostName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/bastionHosts/{bastionHostName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly BastionHostsRestOperations _bastionHostsRestClient; private readonly BastionHostData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnection.cs index 1bc04ece5492..10df3b3e3e66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a BgpConnection along with the instance operations that can be performed on it. public partial class BgpConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/bgpConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualHubBgpConnectionRestOperations _virtualHubBgpConnectionRestClient; private readonly VirtualHubBgpConnectionsRestOperations _virtualHubBgpConnectionsRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitor.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitor.cs index 2cae83da3b81..a585c591b7ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitor.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitor.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ConnectionMonitor along with the instance operations that can be performed on it. public partial class ConnectionMonitor : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkWatcherName, string connectionMonitorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/connectionMonitors/{connectionMonitorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ConnectionMonitorsRestOperations _connectionMonitorsRestClient; private readonly ConnectionMonitorData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefix.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefix.cs index 2cf7588ef8a6..cd462c534e47 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefix.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIpPrefix.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a CustomIpPrefix along with the instance operations that can be performed on it. public partial class CustomIpPrefix : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string customIpPrefixName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/customIpPrefixes/{customIpPrefixName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CustomIPPrefixesRestOperations _customIPPrefixesRestClient; private readonly CustomIpPrefixData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicy.cs index 4f651a7e6639..5af29b47fdcb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a DdosCustomPolicy along with the instance operations that can be performed on it. public partial class DdosCustomPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string ddosCustomPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosCustomPolicies/{ddosCustomPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DdosCustomPoliciesRestOperations _ddosCustomPoliciesRestClient; private readonly DdosCustomPolicyData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlan.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlan.cs index 9d38b9cc11c1..756d3a7ed220 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlan.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlan.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a DdosProtectionPlan along with the instance operations that can be performed on it. public partial class DdosProtectionPlan : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string ddosProtectionPlanName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ddosProtectionPlans/{ddosProtectionPlanName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DdosProtectionPlansRestOperations _ddosProtectionPlansRestClient; private readonly DdosProtectionPlanData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRule.cs index a91cd2a37644..443b7d46aa7a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a DefaultSecurityRule along with the instance operations that can be performed on it. public partial class DefaultSecurityRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string defaultSecurityRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/defaultSecurityRules/{defaultSecurityRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DefaultSecurityRulesRestOperations _defaultSecurityRulesRestClient; private readonly SecurityRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfiguration.cs index c13f960ddc1e..fd6154f7929e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfiguration.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a DscpConfiguration along with the instance operations that can be performed on it. public partial class DscpConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string dscpConfigurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dscpConfigurations/{dscpConfigurationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DscpConfigurationRestOperations _dscpConfigurationRestClient; private readonly DscpConfigurationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuit.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuit.cs index 7ba055f4af81..5dacf8413ba7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuit.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuit.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteCircuit along with the instance operations that can be performed on it. public partial class ExpressRouteCircuit : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string circuitName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteCircuitsRestOperations _expressRouteCircuitsRestClient; private readonly ExpressRouteCircuitData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorization.cs index d6922c17c3dc..593e421a7c6e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorization.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteCircuitAuthorization along with the instance operations that can be performed on it. public partial class ExpressRouteCircuitAuthorization : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string circuitName, string authorizationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/authorizations/{authorizationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteCircuitAuthorizationsRestOperations _expressRouteCircuitAuthorizationsRestClient; private readonly ExpressRouteCircuitAuthorizationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnection.cs index ba3408ab91bb..0252434f396c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteCircuitConnection along with the instance operations that can be performed on it. public partial class ExpressRouteCircuitConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/connections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteCircuitConnectionsRestOperations _expressRouteCircuitConnectionsRestClient; private readonly ExpressRouteCircuitConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeering.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeering.cs index cc137c051a14..e18cdb13ec42 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeering.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeering.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteCircuitPeering along with the instance operations that can be performed on it. public partial class ExpressRouteCircuitPeering : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string circuitName, string peeringName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteCircuitPeeringsRestOperations _expressRouteCircuitPeeringsRestClient; private readonly ExpressRouteCircuitsRestOperations _expressRouteCircuitsRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnection.cs index 5c8ef72d67d5..ce86dded3315 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteConnection along with the instance operations that can be performed on it. public partial class ExpressRouteConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string expressRouteGatewayName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}/expressRouteConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteConnectionsRestOperations _expressRouteConnectionsRestClient; private readonly ExpressRouteConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnection.cs index 43ad8721458b..a1f632a706fb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteCrossConnection along with the instance operations that can be performed on it. public partial class ExpressRouteCrossConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string crossConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteCrossConnectionsRestOperations _expressRouteCrossConnectionsRestClient; private readonly ExpressRouteCrossConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeering.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeering.cs index db351e27018d..a17328d67031 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeering.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeering.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteCrossConnectionPeering along with the instance operations that can be performed on it. public partial class ExpressRouteCrossConnectionPeering : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string crossConnectionName, string peeringName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCrossConnections/{crossConnectionName}/peerings/{peeringName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteCrossConnectionPeeringsRestOperations _expressRouteCrossConnectionPeeringsRestClient; private readonly ExpressRouteCrossConnectionsRestOperations _expressRouteCrossConnectionsRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGateway.cs index f9ebff0025c6..11778739cf9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteGateway along with the instance operations that can be performed on it. public partial class ExpressRouteGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string expressRouteGatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteGateways/{expressRouteGatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteGatewaysRestOperations _expressRouteGatewaysRestClient; private readonly ExpressRouteGatewayData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLink.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLink.cs index d3ca8c22ff5a..1c1c3540bec8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLink.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLink.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRouteLink along with the instance operations that can be performed on it. public partial class ExpressRouteLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string expressRoutePortName, string linkName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}/links/{linkName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRouteLinksRestOperations _expressRouteLinksRestClient; private readonly ExpressRouteLinkData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePort.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePort.cs index eee0f0bd4d41..6b1c449d2313 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePort.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePort.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRoutePort along with the instance operations that can be performed on it. public partial class ExpressRoutePort : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string expressRoutePortName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ExpressRoutePorts/{expressRoutePortName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRoutePortsRestOperations _expressRoutePortsRestClient; private readonly ExpressRoutePortData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocation.cs index 9798ce146f15..7b1ee1d07d55 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocation.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocation.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ExpressRoutePortsLocation along with the instance operations that can be performed on it. public partial class ExpressRoutePortsLocation : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string locationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Network/ExpressRoutePortsLocations/{locationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExpressRoutePortsLocationsRestOperations _expressRoutePortsLocationsRestClient; private readonly ExpressRoutePortsLocationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicy.cs index 75bc43f7a638..4d2f1a7816b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a FirewallPolicy along with the instance operations that can be performed on it. public partial class FirewallPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string firewallPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FirewallPoliciesRestOperations _firewallPoliciesRestClient; private readonly FirewallPolicyData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroup.cs index 3a7e95104d1b..0bb816e24b60 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a FirewallPolicyRuleCollectionGroup along with the instance operations that can be performed on it. public partial class FirewallPolicyRuleCollectionGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string firewallPolicyName, string ruleCollectionGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/firewallPolicies/{firewallPolicyName}/ruleCollectionGroups/{ruleCollectionGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FirewallPolicyRuleCollectionGroupsRestOperations _firewallPolicyRuleCollectionGroupsRestClient; private readonly FirewallPolicyRuleCollectionGroupData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLog.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLog.cs index 1dd13c282e9b..288d66b7d2a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLog.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLog.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a FlowLog along with the instance operations that can be performed on it. public partial class FlowLog : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkWatcherName, string flowLogName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/flowLogs/{flowLogName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FlowLogsRestOperations _flowLogsRestClient; private readonly FlowLogData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfiguration.cs index 7215026c9d82..17adc43d6938 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfiguration.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a FrontendIPConfiguration along with the instance operations that can be performed on it. public partial class FrontendIPConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName, string frontendIPConfigurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/frontendIPConfigurations/{frontendIPConfigurationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LoadBalancerFrontendIPConfigurationsRestOperations _loadBalancerFrontendIPConfigurationsRestClient; private readonly FrontendIPConfigurationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfiguration.cs index fae295f7fc0d..72b139c7dca0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIpConfiguration.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a HubIpConfiguration along with the instance operations that can be performed on it. public partial class HubIpConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualHubName, string ipConfigName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/ipConfigurations/{ipConfigName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualHubIpConfigurationRestOperations _virtualHubIpConfigurationRestClient; private readonly HubIpConfigurationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTable.cs index af0513e4705f..412b5f5fb2d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTable.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTable.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a HubRouteTable along with the instance operations that can be performed on it. public partial class HubRouteTable : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubRouteTables/{routeTableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly HubRouteTablesRestOperations _hubRouteTablesRestClient; private readonly HubRouteTableData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnection.cs index 75c90c4078b3..d16f5b1bd2b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a HubVirtualNetworkConnection along with the instance operations that can be performed on it. public partial class HubVirtualNetworkConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualHubName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/hubVirtualNetworkConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly HubVirtualNetworkConnectionsRestOperations _hubVirtualNetworkConnectionsRestClient; private readonly HubVirtualNetworkConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRule.cs index bb2e14966cdb..9da892cce168 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a InboundNatRule along with the instance operations that can be performed on it. public partial class InboundNatRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName, string inboundNatRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/inboundNatRules/{inboundNatRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly InboundNatRulesRestOperations _inboundNatRulesRestClient; private readonly InboundNatRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocation.cs index 71758050945e..6894184d00e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocation.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpAllocation.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a IpAllocation along with the instance operations that can be performed on it. public partial class IpAllocation : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string ipAllocationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/IpAllocations/{ipAllocationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly IpAllocationsRestOperations _ipAllocationsRestClient; private readonly IpAllocationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroup.cs index 3e098f5179c5..3fcf334df6e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a IpGroup along with the instance operations that can be performed on it. public partial class IpGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string ipGroupsName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ipGroups/{ipGroupsName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly IpGroupsRestOperations _ipGroupsRestClient; private readonly IpGroupData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancer.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancer.cs index cf814ed7cc05..ddb4d5a1d68d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancer.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancer.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a LoadBalancer along with the instance operations that can be performed on it. public partial class LoadBalancer : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LoadBalancersRestOperations _loadBalancersRestClient; private readonly LoadBalancerNetworkInterfacesRestOperations _loadBalancerNetworkInterfacesRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRule.cs index 82b219dd8c09..1551dcb2513b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a LoadBalancingRule along with the instance operations that can be performed on it. public partial class LoadBalancingRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName, string loadBalancingRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LoadBalancerLoadBalancingRulesRestOperations _loadBalancerLoadBalancingRulesRestClient; private readonly LoadBalancingRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGateway.cs index 3202060fc9a5..dd7a344f5b40 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a LocalNetworkGateway along with the instance operations that can be performed on it. public partial class LocalNetworkGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string localNetworkGatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/localNetworkGateways/{localNetworkGatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LocalNetworkGatewaysRestOperations _localNetworkGatewaysRestClient; private readonly LocalNetworkGatewayData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGateway.cs index 5acc155d4fdf..a7f0e871ef73 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NatGateway along with the instance operations that can be performed on it. public partial class NatGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string natGatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NatGatewaysRestOperations _natGatewaysRestClient; private readonly NatGatewayData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterface.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterface.cs index 0f52999c8093..1230f62a5e27 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterface.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterface.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkInterface along with the instance operations that can be performed on it. public partial class NetworkInterface : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkInterfaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkInterfacesRestOperations _networkInterfacesRestClient; private readonly NetworkInterfaceLoadBalancersRestOperations _networkInterfaceLoadBalancersRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfiguration.cs index 7514264526cd..9d19accc4d15 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfiguration.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkInterfaceIPConfiguration along with the instance operations that can be performed on it. public partial class NetworkInterfaceIPConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkInterfaceName, string ipConfigurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/ipConfigurations/{ipConfigurationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkInterfaceIPConfigurationsRestOperations _networkInterfaceIPConfigurationsRestClient; private readonly NetworkInterfaceIPConfigurationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfiguration.cs index 7068dcab5e1b..9548cc40bd7b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfiguration.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkInterfaceTapConfiguration along with the instance operations that can be performed on it. public partial class NetworkInterfaceTapConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkInterfaceName, string tapConfigurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkInterfaces/{networkInterfaceName}/tapConfigurations/{tapConfigurationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkInterfaceTapConfigurationsRestOperations _networkInterfaceTapConfigurationsRestClient; private readonly NetworkInterfaceTapConfigurationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfile.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfile.cs index c685e647f38d..1b25b45cf195 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfile.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfile.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkProfile along with the instance operations that can be performed on it. public partial class NetworkProfile : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkProfileName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkProfiles/{networkProfileName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkProfilesRestOperations _networkProfilesRestClient; private readonly NetworkProfileData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroup.cs index eb86cdc59e3f..3a74d2179d53 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkSecurityGroup along with the instance operations that can be performed on it. public partial class NetworkSecurityGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkSecurityGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkSecurityGroupsRestOperations _networkSecurityGroupsRestClient; private readonly NetworkSecurityGroupData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualAppliance.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualAppliance.cs index 2607e661dae5..e3fc78506bbf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualAppliance.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualAppliance.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkVirtualAppliance along with the instance operations that can be performed on it. public partial class NetworkVirtualAppliance : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkVirtualAppliancesRestOperations _networkVirtualAppliancesRestClient; private readonly InboundSecurityRuleRestOperations _inboundSecurityRuleRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSku.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSku.cs index 8b0e4f2b446d..d61a68ea95a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSku.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSku.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkVirtualApplianceSku along with the instance operations that can be performed on it. public partial class NetworkVirtualApplianceSku : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string skuName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Network/networkVirtualApplianceSkus/{skuName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualApplianceSkusRestOperations _virtualApplianceSkusRestClient; private readonly NetworkVirtualApplianceSkuData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcher.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcher.cs index 11cc676d62a4..665ba5d54254 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcher.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcher.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a NetworkWatcher along with the instance operations that can be performed on it. public partial class NetworkWatcher : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkWatcherName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NetworkWatchersRestOperations _networkWatchersRestClient; private readonly NetworkWatcherData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRule.cs index bdfd669b7fdf..474d3f027e29 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a OutboundRule along with the instance operations that can be performed on it. public partial class OutboundRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName, string outboundRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/outboundRules/{outboundRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LoadBalancerOutboundRulesRestOperations _loadBalancerOutboundRulesRestClient; private readonly OutboundRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGateway.cs index 79fe0d7d065d..bee3fa3d234d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a P2SVpnGateway along with the instance operations that can be performed on it. public partial class P2SVpnGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string gatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/p2svpnGateways/{gatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly P2SVpnGatewaysRestOperations _p2sVpnGatewaysRestClient; private readonly P2SVpnGatewayData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCapture.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCapture.cs index 8909909c2831..ade7faa2b0cc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCapture.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCapture.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PacketCapture along with the instance operations that can be performed on it. public partial class PacketCapture : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkWatcherName, string packetCaptureName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkWatchers/{networkWatcherName}/packetCaptures/{packetCaptureName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PacketCapturesRestOperations _packetCapturesRestClient; private readonly PacketCaptureData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnection.cs index 1ba98f4574d0..ec870759b52e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnection.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PeerExpressRouteCircuitConnection along with the instance operations that can be performed on it. public partial class PeerExpressRouteCircuitConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string circuitName, string peeringName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/expressRouteCircuits/{circuitName}/peerings/{peeringName}/peerConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PeerExpressRouteCircuitConnectionsRestOperations _peerExpressRouteCircuitConnectionsRestClient; private readonly PeerExpressRouteCircuitConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroup.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroup.cs index dd3d797e5465..cd02e7b7a278 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroup.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PrivateDnsZoneGroup along with the instance operations that can be performed on it. public partial class PrivateDnsZoneGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateEndpointName, string privateDnsZoneGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}/privateDnsZoneGroups/{privateDnsZoneGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateDnsZoneGroupsRestOperations _privateDnsZoneGroupsRestClient; private readonly PrivateDnsZoneGroupData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpoint.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpoint.cs index 4fb15314d767..306116979f5e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpoint.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpoint.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PrivateEndpoint along with the instance operations that can be performed on it. public partial class PrivateEndpoint : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string privateEndpointName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateEndpoints/{privateEndpointName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointsRestOperations _privateEndpointsRestClient; private readonly PrivateEndpointData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointConnection.cs index 1dda65860db6..24ef87c3fb88 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceName, string peConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}/privateEndpointConnections/{peConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateLinkServicesRestOperations _privateLinkServicesRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkService.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkService.cs index 0df97e077491..da3ee72f4823 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkService.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkService.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PrivateLinkService along with the instance operations that can be performed on it. public partial class PrivateLinkService : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateLinkServices/{serviceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateLinkServicesRestOperations _privateLinkServicesRestClient; private readonly PrivateLinkServiceData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Probe.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Probe.cs index 4724f8fb18a7..4e49dc62d4fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Probe.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Probe.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a Probe along with the instance operations that can be performed on it. public partial class Probe : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string loadBalancerName, string probeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LoadBalancerProbesRestOperations _loadBalancerProbesRestClient; private readonly ProbeData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddress.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddress.cs index 5363d979c647..e56dab813ace 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddress.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddress.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PublicIPAddress along with the instance operations that can be performed on it. public partial class PublicIPAddress : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string publicIpAddressName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPAddresses/{publicIpAddressName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PublicIPAddressesRestOperations _publicIPAddressesRestClient; private readonly PublicIPAddressData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefix.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefix.cs index 1ab348028b58..de4ccc1bac78 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefix.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefix.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a PublicIPPrefix along with the instance operations that can be performed on it. public partial class PublicIPPrefix : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string publicIpPrefixName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIpPrefixName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PublicIPPrefixesRestOperations _publicIPPrefixesRestClient; private readonly PublicIPPrefixData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Route.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Route.cs index ae97f6e0b51a..7c58e05a2433 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Route.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Route.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a Route along with the instance operations that can be performed on it. public partial class Route : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string routeTableName, string routeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RoutesRestOperations _routesRestClient; private readonly RouteData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilter.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilter.cs index cb2a8e536c8f..326cc4ca67a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilter.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilter.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a RouteFilter along with the instance operations that can be performed on it. public partial class RouteFilter : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string routeFilterName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RouteFiltersRestOperations _routeFiltersRestClient; private readonly RouteFilterData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRule.cs index 6921c1d1f891..7e2eb3817eec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a RouteFilterRule along with the instance operations that can be performed on it. public partial class RouteFilterRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string routeFilterName, string ruleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeFilters/{routeFilterName}/routeFilterRules/{ruleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RouteFilterRulesRestOperations _routeFilterRulesRestClient; private readonly RouteFilterRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTable.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTable.cs index c1f8646015f5..a9b463617ae5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTable.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTable.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a RouteTable along with the instance operations that can be performed on it. public partial class RouteTable : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string routeTableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RouteTablesRestOperations _routeTablesRestClient; private readonly RouteTableData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProvider.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProvider.cs index 0295e8eaeac8..72b73e709a0f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProvider.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProvider.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a SecurityPartnerProvider along with the instance operations that can be performed on it. public partial class SecurityPartnerProvider : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string securityPartnerProviderName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/securityPartnerProviders/{securityPartnerProviderName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SecurityPartnerProvidersRestOperations _securityPartnerProvidersRestClient; private readonly SecurityPartnerProviderData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRule.cs index 569eb70fd376..4fd7bd120639 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a SecurityRule along with the instance operations that can be performed on it. public partial class SecurityRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkSecurityGroupName, string securityRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkSecurityGroups/{networkSecurityGroupName}/securityRules/{securityRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SecurityRulesRestOperations _securityRulesRestClient; private readonly SecurityRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicy.cs index e854b7b03920..7ea4af33c9a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ServiceEndpointPolicy along with the instance operations that can be performed on it. public partial class ServiceEndpointPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServiceEndpointPoliciesRestOperations _serviceEndpointPoliciesRestClient; private readonly ServiceEndpointPolicyData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinition.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinition.cs index a6063b2ea850..7b66783e6b32 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinition.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinition.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a ServiceEndpointPolicyDefinition along with the instance operations that can be performed on it. public partial class ServiceEndpointPolicyDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serviceEndpointPolicyName, string serviceEndpointPolicyDefinitionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/serviceEndpointPolicies/{serviceEndpointPolicyName}/serviceEndpointPolicyDefinitions/{serviceEndpointPolicyDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServiceEndpointPolicyDefinitionsRestOperations _serviceEndpointPolicyDefinitionsRestClient; private readonly ServiceEndpointPolicyDefinitionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Subnet.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Subnet.cs index d36fa99cda55..3c8fff5d566a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Subnet.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Subnet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a Subnet along with the instance operations that can be performed on it. public partial class Subnet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkName, string subnetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SubnetsRestOperations _subnetsRestClient; private readonly ResourceNavigationLinksRestOperations _resourceNavigationLinksRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSite.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSite.cs index 94c11205698c..5ef0b781053d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSite.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSite.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualApplianceSite along with the instance operations that can be performed on it. public partial class VirtualApplianceSite : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkVirtualApplianceName, string siteName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkVirtualAppliances/{networkVirtualApplianceName}/virtualApplianceSites/{siteName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualApplianceSitesRestOperations _virtualApplianceSitesRestClient; private readonly VirtualApplianceSiteData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHub.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHub.cs index 7e1929dad76b..3366ad59e96a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHub.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHub.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualHub along with the instance operations that can be performed on it. public partial class VirtualHub : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualHubName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualHubsRestOperations _virtualHubsRestClient; private readonly VirtualHubData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2.cs index 61c76970e96e..a0882aef203f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualHubRouteTableV2 along with the instance operations that can be performed on it. public partial class VirtualHubRouteTableV2 : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualHubName, string routeTableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualHubs/{virtualHubName}/routeTables/{routeTableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualHubRouteTableV2SRestOperations _virtualHubRouteTableV2sRestClient; private readonly VirtualHubRouteTableV2Data _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetwork.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetwork.cs index 6401835ea77d..042c08f55c6e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetwork.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetwork.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualNetwork along with the instance operations that can be performed on it. public partial class VirtualNetwork : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworksRestOperations _virtualNetworksRestClient; private readonly VirtualNetworkData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGateway.cs index 3b8a3ab23ec5..224bd8f132de 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualNetworkGateway along with the instance operations that can be performed on it. public partial class VirtualNetworkGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworkGatewaysRestOperations _virtualNetworkGatewaysRestClient; private readonly VirtualNetworkGatewayData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnection.cs index 11511f980698..40a684201315 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualNetworkGatewayConnection along with the instance operations that can be performed on it. public partial class VirtualNetworkGatewayConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/connections/{virtualNetworkGatewayConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworkGatewayConnectionsRestOperations _virtualNetworkGatewayConnectionsRestClient; private readonly VirtualNetworkGatewaysRestOperations _virtualNetworkGatewaysRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRule.cs index 493f38ea7dc8..fea1ca061410 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualNetworkGatewayNatRule along with the instance operations that can be performed on it. public partial class VirtualNetworkGatewayNatRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string natRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/natRules/{natRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworkGatewayNatRulesRestOperations _virtualNetworkGatewayNatRulesRestClient; private readonly VirtualNetworkGatewayNatRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeering.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeering.cs index d515273dfcc1..8dc38388c453 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeering.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeering.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualNetworkPeering along with the instance operations that can be performed on it. public partial class VirtualNetworkPeering : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualNetworkName, string virtualNetworkPeeringName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/virtualNetworkPeerings/{virtualNetworkPeeringName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworkPeeringsRestOperations _virtualNetworkPeeringsRestClient; private readonly VirtualNetworkPeeringData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTap.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTap.cs index 13b637619b63..a060110dab1e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTap.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTap.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualNetworkTap along with the instance operations that can be performed on it. public partial class VirtualNetworkTap : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string tapName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkTaps/{tapName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworkTapsRestOperations _virtualNetworkTapsRestClient; private readonly VirtualNetworkTapData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouter.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouter.cs index 4b8d72163806..91a596c1fe5c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouter.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouter.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualRouter along with the instance operations that can be performed on it. public partial class VirtualRouter : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualRouterName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualRoutersRestOperations _virtualRoutersRestClient; private readonly VirtualRouterData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeering.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeering.cs index f93097c070fd..491ab649e2d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeering.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeering.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualRouterPeering along with the instance operations that can be performed on it. public partial class VirtualRouterPeering : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualRouterName, string peeringName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualRouters/{virtualRouterName}/peerings/{peeringName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualRouterPeeringsRestOperations _virtualRouterPeeringsRestClient; private readonly VirtualRouterPeeringData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWAN.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWAN.cs index 85073efaed72..7666d0afa40f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWAN.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWAN.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VirtualWAN along with the instance operations that can be performed on it. public partial class VirtualWAN : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualWANName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualWans/{virtualWANName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualWansRestOperations _virtualWansRestClient; private readonly NetworkManagementRestOperations _restClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnection.cs index 138258a36556..d493d72ef724 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnConnection along with the instance operations that can be performed on it. public partial class VpnConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VpnConnectionsRestOperations _vpnConnectionsRestClient; private readonly VpnConnectionData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGateway.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGateway.cs index 867406522b48..a32ecdee85da 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGateway.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGateway.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnGateway along with the instance operations that can be performed on it. public partial class VpnGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string gatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VpnGatewaysRestOperations _vpnGatewaysRestClient; private readonly VpnGatewayData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRule.cs index bc842851cc9b..37e5b289529d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRule.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnGatewayNatRule along with the instance operations that can be performed on it. public partial class VpnGatewayNatRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string gatewayName, string natRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/natRules/{natRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NatRulesRestOperations _natRulesRestClient; private readonly VpnGatewayNatRuleData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfiguration.cs index 6a60d5751d9b..bab9fde20ab6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfiguration.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnServerConfiguration along with the instance operations that can be performed on it. public partial class VpnServerConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vpnServerConfigurationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnServerConfigurations/{vpnServerConfigurationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VpnServerConfigurationsRestOperations _vpnServerConfigurationsRestClient; private readonly VpnServerConfigurationData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSite.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSite.cs index a4addd4c6fa2..757723aaf8eb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSite.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSite.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnSite along with the instance operations that can be performed on it. public partial class VpnSite : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vpnSiteName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VpnSitesRestOperations _vpnSitesRestClient; private readonly VpnSiteData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLink.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLink.cs index 5ea600b4041d..f2127fecb1fd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLink.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLink.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnSiteLink along with the instance operations that can be performed on it. public partial class VpnSiteLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string vpnSiteName, string vpnSiteLinkName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnSites/{vpnSiteName}/vpnSiteLinks/{vpnSiteLinkName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VpnSiteLinksRestOperations _vpnSiteLinksRestClient; private readonly VpnSiteLinkData _data; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnection.cs index a26da8e52134..52dff0a56927 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a VpnSiteLinkConnection along with the instance operations that can be performed on it. public partial class VpnSiteLinkConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string gatewayName, string connectionName, string linkConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/vpnGateways/{gatewayName}/vpnConnections/{connectionName}/vpnLinkConnections/{linkConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VpnSiteLinkConnectionsRestOperations _vpnSiteLinkConnectionsRestClient; private readonly VpnLinkConnectionsRestOperations _vpnLinkConnectionsRestClient; diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicy.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicy.cs index 915d6ff21fec..227e1285e6bb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicy.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Network /// A Class representing a WebApplicationFirewallPolicy along with the instance operations that can be performed on it. public partial class WebApplicationFirewallPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/ApplicationGatewayWebApplicationFirewallPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebApplicationFirewallPoliciesRestOperations _webApplicationFirewallPoliciesRestClient; private readonly WebApplicationFirewallPolicyData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifest.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifest.cs index fecd8dbc85ec..792256302054 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifest.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/DataPolicyManifest.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a DataPolicyManifest along with the instance operations that can be performed on it. public partial class DataPolicyManifest : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string policyMode) + { + var resourceId = $"/providers/Microsoft.Authorization/dataPolicyManifests/{policyMode}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DataPolicyManifestsRestOperations _dataPolicyManifestsRestClient; private readonly DataPolicyManifestData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinition.cs index 775f7d7544af..b894d4d24b6f 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicyDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ManagementGroupPolicyDefinition along with the instance operations that can be performed on it. public partial class ManagementGroupPolicyDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string policyDefinitionName) + { + var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicyDefinitionsRestOperations _policyDefinitionsRestClient; private readonly PolicyDefinitionData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinition.cs index da59b123e215..796ef5177f8d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementGroupPolicySetDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ManagementGroupPolicySetDefinition along with the instance operations that can be performed on it. public partial class ManagementGroupPolicySetDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string policySetDefinitionName) + { + var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicySetDefinitionsRestOperations _policySetDefinitionsRestClient; private readonly PolicySetDefinitionData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockObject.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockObject.cs index 2d1374f24562..bc81b04311d1 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockObject.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ManagementLockObject.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ManagementLockObject along with the instance operations that can be performed on it. public partial class ManagementLockObject : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string scope, string lockName) + { + var resourceId = $"/{scope}/providers/Microsoft.Authorization/locks/{lockName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagementLocksRestOperations _managementLocksRestClient; private readonly ManagementLockObjectData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignment.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignment.cs index 2507b287b995..e960c205683e 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignment.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyAssignment.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a PolicyAssignment along with the instance operations that can be performed on it. public partial class PolicyAssignment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string scope, string policyAssignmentName) + { + var resourceId = $"/{scope}/providers/Microsoft.Authorization/policyAssignments/{policyAssignmentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicyAssignmentsRestOperations _policyAssignmentsRestClient; private readonly PolicyAssignmentData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyExemption.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyExemption.cs index 62d313ff72b6..3dd1603a3be6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyExemption.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/PolicyExemption.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a PolicyExemption along with the instance operations that can be performed on it. public partial class PolicyExemption : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string scope, string policyExemptionName) + { + var resourceId = $"/{scope}/providers/Microsoft.Authorization/policyExemptions/{policyExemptionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicyExemptionsRestOperations _policyExemptionsRestClient; private readonly PolicyExemptionData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceLink.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceLink.cs index 0661d6e9a814..8aeac4b60c00 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceLink.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/ResourceLink.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ResourceLink along with the instance operations that can be performed on it. public partial class ResourceLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string linkId) + { + var resourceId = $"/{linkId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ResourceLinksRestOperations _resourceLinksRestClient; private readonly ResourceLinkData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinition.cs index a4741969ceca..9253bca48a5d 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicyDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a SubscriptionPolicyDefinition along with the instance operations that can be performed on it. public partial class SubscriptionPolicyDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string policyDefinitionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicyDefinitionsRestOperations _policyDefinitionsRestClient; private readonly PolicyDefinitionData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinition.cs index 986751967f41..7838aba2a2d6 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/SubscriptionPolicySetDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a SubscriptionPolicySetDefinition along with the instance operations that can be performed on it. public partial class SubscriptionPolicySetDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string policySetDefinitionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicySetDefinitionsRestOperations _policySetDefinitionsRestClient; private readonly PolicySetDefinitionData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicyDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicyDefinition.cs index d53628e1f2f1..ea9fb0293b25 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicyDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicyDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a TenantPolicyDefinition along with the instance operations that can be performed on it. public partial class TenantPolicyDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string policyDefinitionName) + { + var resourceId = $"/providers/Microsoft.Authorization/policyDefinitions/{policyDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicyDefinitionsRestOperations _policyDefinitionsRestClient; private readonly PolicyDefinitionData _data; diff --git a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicySetDefinition.cs b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicySetDefinition.cs index 2c590384b9a1..7ded5edbe436 100644 --- a/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicySetDefinition.cs +++ b/sdk/resourcemanager/Azure.ResourceManager/src/Resources/Generated/TenantPolicySetDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a TenantPolicySetDefinition along with the instance operations that can be performed on it. public partial class TenantPolicySetDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string policySetDefinitionName) + { + var resourceId = $"/providers/Microsoft.Authorization/policySetDefinitions/{policySetDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PolicySetDefinitionsRestOperations _policySetDefinitionsRestClient; private readonly PolicySetDefinitionData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Application.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Application.cs index 15e3e37260e6..1e77fe76ac7a 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Application.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Application.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a Application along with the instance operations that can be performed on it. public partial class Application : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applications/{applicationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationsRestOperations _applicationsRestClient; private readonly ApplicationData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinition.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinition.cs index 062bcea0fec3..44ef4294c754 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinition.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ApplicationDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ApplicationDefinition along with the instance operations that can be performed on it. public partial class ApplicationDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string applicationDefinitionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/applicationDefinitions/{applicationDefinitionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ApplicationDefinitionsRestOperations _applicationDefinitionsRestClient; private readonly ApplicationDefinitionData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Deployment.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Deployment.cs index 8943133f0230..316f26262b1d 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Deployment.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/Deployment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a Deployment along with the instance operations that can be performed on it. public partial class Deployment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string scope, string deploymentName) + { + var resourceId = $"/{scope}/providers/Microsoft.Resources/deployments/{deploymentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeploymentsRestOperations _deploymentsRestClient; private readonly DeploymentRestOperations _deploymentOperationsRestClient; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScript.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScript.cs index 3cc647563d0b..4dd5b58892c9 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScript.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/DeploymentScript.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a DeploymentScript along with the instance operations that can be performed on it. public partial class DeploymentScript : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string scriptName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeploymentScriptsRestOperations _deploymentScriptsRestClient; private readonly DeploymentScriptData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestDefinition.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestDefinition.cs index 59c42d7c5ee0..fdc5106ca09e 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestDefinition.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/JitRequestDefinition.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a JitRequestDefinition along with the instance operations that can be performed on it. public partial class JitRequestDefinition : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string jitRequestName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Solutions/jitRequests/{jitRequestName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JitRequestsRestOperations _jitRequestsRestClient; private readonly JitRequestDefinitionData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLog.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLog.cs index 2634ebbebb2b..4b61bc211705 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLog.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/ScriptLog.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a ScriptLog along with the instance operations that can be performed on it. public partial class ScriptLog : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string scriptName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Resources/deploymentScripts/{scriptName}/logs/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeploymentScriptsRestOperations _deploymentScriptsRestClient; private readonly ScriptLogData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpec.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpec.cs index 42a57289bec3..2c6a0063bfe2 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpec.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpec.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a TemplateSpec along with the instance operations that can be performed on it. public partial class TemplateSpec : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string templateSpecName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TemplateSpecsRestOperations _templateSpecsRestClient; private readonly TemplateSpecData _data; diff --git a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersion.cs b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersion.cs index cee8cb31c1bf..e577ffc229f0 100644 --- a/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersion.cs +++ b/sdk/resources/Azure.ResourceManager.Resources/src/Generated/TemplateSpecVersion.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Resources /// A Class representing a TemplateSpecVersion along with the instance operations that can be performed on it. public partial class TemplateSpecVersion : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string templateSpecName, string templateSpecVersion) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Resources/templateSpecs/{templateSpecName}/versions/{templateSpecVersion}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TemplateSpecVersionsRestOperations _templateSpecVersionsRestClient; private readonly TemplateSpecVersionData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/DisasterRecovery.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/DisasterRecovery.cs index de89af7ad00d..4c54ed230864 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/DisasterRecovery.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/DisasterRecovery.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a DisasterRecovery along with the instance operations that can be performed on it. public partial class DisasterRecovery : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string alias) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DisasterRecoveryConfigsRestOperations _disasterRecoveryConfigsRestClient; private readonly DisasterRecoveryData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigProperties.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigProperties.cs index 58bdf020cd78..7f73ac91b817 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigProperties.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/MigrationConfigProperties.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a MigrationConfigProperties along with the instance operations that can be performed on it. public partial class MigrationConfigProperties : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string configName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/migrationConfigurations/{configName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MigrationConfigsRestOperations _migrationConfigsRestClient; private readonly MigrationConfigPropertiesData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceAuthorizationRule.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceAuthorizationRule.cs index 5026b0094535..cf79b4a2177e 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceAuthorizationRule.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a NamespaceAuthorizationRule along with the instance operations that can be performed on it. public partial class NamespaceAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NamespaceAuthorizationRulesRestOperations _namespaceAuthorizationRulesRestClient; private readonly ServiceBusAuthorizationRuleData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceDisasterRecoveryConfigAuthorizationRule.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceDisasterRecoveryConfigAuthorizationRule.cs index 83b43bab60d5..c910b314898c 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceDisasterRecoveryConfigAuthorizationRule.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceDisasterRecoveryConfigAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a NamespaceDisasterRecoveryConfigAuthorizationRule along with the instance operations that can be performed on it. public partial class NamespaceDisasterRecoveryConfigAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string alias, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DisasterRecoveryConfigAuthorizationRulesRestOperations _disasterRecoveryConfigAuthorizationRulesRestClient; private readonly ServiceBusAuthorizationRuleData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceQueueAuthorizationRule.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceQueueAuthorizationRule.cs index d700203fee40..e67ee90fe06d 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceQueueAuthorizationRule.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceQueueAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a NamespaceQueueAuthorizationRule along with the instance operations that can be performed on it. public partial class NamespaceQueueAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly QueueAuthorizationRulesRestOperations _queueAuthorizationRulesRestClient; private readonly ServiceBusAuthorizationRuleData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceTopicAuthorizationRule.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceTopicAuthorizationRule.cs index 7844ef920177..7bd5d83cef4e 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceTopicAuthorizationRule.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NamespaceTopicAuthorizationRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a NamespaceTopicAuthorizationRule along with the instance operations that can be performed on it. public partial class NamespaceTopicAuthorizationRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TopicAuthorizationRulesRestOperations _topicAuthorizationRulesRestClient; private readonly ServiceBusAuthorizationRuleData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NetworkRuleSet.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NetworkRuleSet.cs index 37aa6c214240..b558b841546b 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NetworkRuleSet.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/NetworkRuleSet.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a NetworkRuleSet along with the instance operations that can be performed on it. public partial class NetworkRuleSet : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/networkRuleSets/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NamespacesRestOperations _namespacesRestClient; private readonly NetworkRuleSetData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/PrivateEndpointConnection.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/PrivateEndpointConnection.cs index 61a676b0eb44..85fcb796a2f8 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespace.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespace.cs index 52a6dd0b00a4..98537b0313c6 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespace.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusNamespace.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a ServiceBusNamespace along with the instance operations that can be performed on it. public partial class ServiceBusNamespace : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly NamespacesRestOperations _namespacesRestClient; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueue.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueue.cs index 656fa95c24aa..f84e04d3e768 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueue.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusQueue.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a ServiceBusQueue along with the instance operations that can be performed on it. public partial class ServiceBusQueue : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string queueName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly QueuesRestOperations _queuesRestClient; private readonly ServiceBusQueueData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRule.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRule.cs index 17d916e00a64..01e63b9b7b3e 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRule.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a ServiceBusRule along with the instance operations that can be performed on it. public partial class ServiceBusRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName, string ruleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RulesRestOperations _rulesRestClient; private readonly ServiceBusRuleData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscription.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscription.cs index b2007b796947..4212fe27ac15 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscription.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusSubscription.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a ServiceBusSubscription along with the instance operations that can be performed on it. public partial class ServiceBusSubscription : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string topicName, string subscriptionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SubscriptionsRestOperations _subscriptionsRestClient; private readonly ServiceBusSubscriptionData _data; diff --git a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopic.cs b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopic.cs index fab9d3b9ce7a..53180c6924de 100644 --- a/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopic.cs +++ b/sdk/servicebus/Azure.ResourceManager.ServiceBus/src/Generated/ServiceBusTopic.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.ServiceBus /// A Class representing a ServiceBusTopic along with the instance operations that can be performed on it. public partial class ServiceBusTopic : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string namespaceName, string topicName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TopicsRestOperations _topicsRestClient; private readonly ServiceBusTopicData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicy.cs index 93f1ff69866d..4fc3d5cb33f0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/BackupShortTermRetentionPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a BackupShortTermRetentionPolicy along with the instance operations that can be performed on it. public partial class BackupShortTermRetentionPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly BackupShortTermRetentionPoliciesRestOperations _backupShortTermRetentionPoliciesRestClient; private readonly BackupShortTermRetentionPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicy.cs index 6365ca7bae29..dcb01c4a076e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataMaskingPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a DataMaskingPolicy along with the instance operations that can be performed on it. public partial class DataMaskingPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataMaskingPolicies/Default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DataMaskingPoliciesRestOperations _dataMaskingPoliciesRestClient; private readonly DataMaskingRulesRestOperations _dataMaskingRulesRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivities.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivities.cs index b5bcf2f3764d..2b251976ff22 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivities.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DataWarehouseUserActivities.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a DataWarehouseUserActivities along with the instance operations that can be performed on it. public partial class DataWarehouseUserActivities : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string dataWarehouseUserActivityName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/dataWarehouseUserActivities/{dataWarehouseUserActivityName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DataWarehouseUserActivitiesRestOperations _dataWarehouseUserActivitiesRestClient; private readonly DataWarehouseUserActivitiesData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAutomaticTuning.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAutomaticTuning.cs index 75fb0f92ac41..be7b2384c448 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAutomaticTuning.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseAutomaticTuning.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a DatabaseAutomaticTuning along with the instance operations that can be performed on it. public partial class DatabaseAutomaticTuning : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/automaticTuning/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseAutomaticTuningRestOperations _databaseAutomaticTuningRestClient; private readonly DatabaseAutomaticTuningData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseBlobAuditingPolicy.cs index 028fb504d957..242b0d832bed 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseBlobAuditingPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a DatabaseBlobAuditingPolicy along with the instance operations that can be performed on it. public partial class DatabaseBlobAuditingPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string blobAuditingPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/auditingSettings/{blobAuditingPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseBlobAuditingPoliciesRestOperations _databaseBlobAuditingPoliciesRestClient; private readonly DatabaseBlobAuditingPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseSecurityAlertPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseSecurityAlertPolicy.cs index 89f42abe1386..d0020b57275f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseSecurityAlertPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DatabaseSecurityAlertPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a DatabaseSecurityAlertPolicy along with the instance operations that can be performed on it. public partial class DatabaseSecurityAlertPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string securityAlertPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseSecurityAlertPoliciesRestOperations _databaseSecurityAlertPoliciesRestClient; private readonly DatabaseSecurityAlertPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServer.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServer.cs index 95652492c8cb..97e7ebc85da9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServer.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/DeletedServer.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a DeletedServer along with the instance operations that can be performed on it. public partial class DeletedServer : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string locationName, string deletedServerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/deletedServers/{deletedServerName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeletedServersRestOperations _deletedServersRestClient; private readonly DeletedServerData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPool.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPool.cs index a39ac91b657a..7be0aa180c75 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPool.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ElasticPool.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ElasticPool along with the instance operations that can be performed on it. public partial class ElasticPool : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string elasticPoolName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/elasticPools/{elasticPoolName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ElasticPoolsRestOperations _elasticPoolsRestClient; private readonly DatabasesRestOperations _databasesRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtector.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtector.cs index 65317c47b3d2..1ef9b8097b6e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtector.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/EncryptionProtector.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a EncryptionProtector along with the instance operations that can be performed on it. public partial class EncryptionProtector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string encryptionProtectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/encryptionProtector/{encryptionProtectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EncryptionProtectorsRestOperations _encryptionProtectorsRestClient; private readonly EncryptionProtectorData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs index afbc10b463ce..f6b2c211f947 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedDatabaseBlobAuditingPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ExtendedDatabaseBlobAuditingPolicy along with the instance operations that can be performed on it. public partial class ExtendedDatabaseBlobAuditingPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string blobAuditingPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/extendedAuditingSettings/{blobAuditingPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExtendedDatabaseBlobAuditingPoliciesRestOperations _extendedDatabaseBlobAuditingPoliciesRestClient; private readonly ExtendedDatabaseBlobAuditingPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs index 50ea420502bb..6e6b786fa9d7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ExtendedServerBlobAuditingPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ExtendedServerBlobAuditingPolicy along with the instance operations that can be performed on it. public partial class ExtendedServerBlobAuditingPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string blobAuditingPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/extendedAuditingSettings/{blobAuditingPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ExtendedServerBlobAuditingPoliciesRestOperations _extendedServerBlobAuditingPoliciesRestClient; private readonly ExtendedServerBlobAuditingPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroup.cs index b7ff36c892f1..75d716477554 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FailoverGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a FailoverGroup along with the instance operations that can be performed on it. public partial class FailoverGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string failoverGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/failoverGroups/{failoverGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FailoverGroupsRestOperations _failoverGroupsRestClient; private readonly FailoverGroupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FirewallRule.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FirewallRule.cs index 01baad440905..c0d2264df73b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FirewallRule.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/FirewallRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a FirewallRule along with the instance operations that can be performed on it. public partial class FirewallRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string firewallRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/firewallRules/{firewallRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FirewallRulesRestOperations _firewallRulesRestClient; private readonly FirewallRuleData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicy.cs index 34e7c1329058..0ed4bcb27f39 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/GeoBackupPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a GeoBackupPolicy along with the instance operations that can be performed on it. public partial class GeoBackupPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string geoBackupPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/geoBackupPolicies/{geoBackupPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GeoBackupPoliciesRestOperations _geoBackupPoliciesRestClient; private readonly GeoBackupPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroup.cs index 56b84b0068de..e7c9dd16ec1f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstanceFailoverGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a InstanceFailoverGroup along with the instance operations that can be performed on it. public partial class InstanceFailoverGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string locationName, string failoverGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/instanceFailoverGroups/{failoverGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly InstanceFailoverGroupsRestOperations _instanceFailoverGroupsRestClient; private readonly InstanceFailoverGroupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePool.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePool.cs index 905d099d6312..bdd06c4bf262 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePool.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/InstancePool.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a InstancePool along with the instance operations that can be performed on it. public partial class InstancePool : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string instancePoolName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/instancePools/{instancePoolName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly InstancePoolsRestOperations _instancePoolsRestClient; private readonly ManagedInstancesRestOperations _managedInstancesRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobAgent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobAgent.cs index 03bed74c817e..6d8dee5588db 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobAgent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobAgent.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a JobAgent along with the instance operations that can be performed on it. public partial class JobAgent : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobAgentsRestOperations _jobAgentsRestClient; private readonly JobExecutionsRestOperations _jobExecutionsRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobCredential.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobCredential.cs index 16959d21dd82..27eb7ff84d0d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobCredential.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobCredential.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a JobCredential along with the instance operations that can be performed on it. public partial class JobCredential : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string credentialName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/credentials/{credentialName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobCredentialsRestOperations _jobCredentialsRestClient; private readonly JobCredentialData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobTargetGroup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobTargetGroup.cs index 45d098eed70b..4071fd9cea85 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobTargetGroup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobTargetGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a JobTargetGroup along with the instance operations that can be performed on it. public partial class JobTargetGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string targetGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/targetGroups/{targetGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobTargetGroupsRestOperations _jobTargetGroupsRestClient; private readonly JobTargetGroupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobVersion.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobVersion.cs index 93839b022012..84a82b7e7bc4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobVersion.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/JobVersion.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a JobVersion along with the instance operations that can be performed on it. public partial class JobVersion : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string jobVersion) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobVersionsRestOperations _jobVersionsRestClient; private readonly JobVersionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploads.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploads.cs index f7912d0cbbbf..8ee99c8f2349 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploads.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LedgerDigestUploads.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a LedgerDigestUploads along with the instance operations that can be performed on it. public partial class LedgerDigestUploads : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string ledgerDigestUploads) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/ledgerDigestUploads/{ledgerDigestUploads}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LedgerDigestUploadsRestOperations _ledgerDigestUploadsRestClient; private readonly LedgerDigestUploadsData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs index 119a974471dc..8a9627cb6283 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LogicalDatabaseTransparentDataEncryption.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a LogicalDatabaseTransparentDataEncryption along with the instance operations that can be performed on it. public partial class LogicalDatabaseTransparentDataEncryption : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string tdeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/transparentDataEncryption/{tdeName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TransparentDataEncryptionsRestOperations _transparentDataEncryptionsRestClient; private readonly LogicalDatabaseTransparentDataEncryptionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicy.cs index bf1553ecd05c..8c7d45de5027 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/LongTermRetentionPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a LongTermRetentionPolicy along with the instance operations that can be performed on it. public partial class LongTermRetentionPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LongTermRetentionPoliciesRestOperations _longTermRetentionPoliciesRestClient; private readonly LongTermRetentionPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptions.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptions.cs index fa1a5e8da4af..06d20d6c1ed8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptions.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindowOptions.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a MaintenanceWindowOptions along with the instance operations that can be performed on it. public partial class MaintenanceWindowOptions : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindowOptions/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MaintenanceWindowOptionsRestOperations _maintenanceWindowOptionsRestClient; private readonly MaintenanceWindowOptionsData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindows.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindows.cs index 00961a1612f2..23b704b85b17 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindows.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/MaintenanceWindows.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a MaintenanceWindows along with the instance operations that can be performed on it. public partial class MaintenanceWindows : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/maintenanceWindows/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly MaintenanceWindowsRestOperations _maintenanceWindowsRestClient; private readonly MaintenanceWindowsData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabase.cs index 19d23f6a9bb3..fa0e0388eb7c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabase.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedDatabase along with the instance operations that can be performed on it. public partial class ManagedDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabasesRestOperations _managedDatabasesRestClient; private readonly ManagedDatabaseColumnsRestOperations _managedDatabaseColumnsRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailsResult.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailsResult.cs index 81749b538591..470c7473fa4f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailsResult.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseRestoreDetailsResult.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedDatabaseRestoreDetailsResult along with the instance operations that can be performed on it. public partial class ManagedDatabaseRestoreDetailsResult : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string restoreDetailsName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/restoreDetails/{restoreDetailsName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseRestoreDetailsRestOperations _managedDatabaseRestoreDetailsRestClient; private readonly ManagedDatabaseRestoreDetailsResultData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs index 23b0055015d4..4123ccf97ef1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedDatabaseSecurityAlertPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedDatabaseSecurityAlertPolicy along with the instance operations that can be performed on it. public partial class ManagedDatabaseSecurityAlertPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string securityAlertPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/securityAlertPolicies/{securityAlertPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseSecurityAlertPoliciesRestOperations _managedDatabaseSecurityAlertPoliciesRestClient; private readonly ManagedDatabaseSecurityAlertPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstance.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstance.cs index 74bb19dd2326..406aa8b0b3c7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstance.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstance.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstance along with the instance operations that can be performed on it. public partial class ManagedInstance : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstancesRestOperations _managedInstancesRestClient; private readonly ManagedDatabasesRestOperations _managedDatabasesRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministrator.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministrator.cs index eac647dcd0d8..d93469a903e4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministrator.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAdministrator.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceAdministrator along with the instance operations that can be performed on it. public partial class ManagedInstanceAdministrator : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string administratorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/administrators/{administratorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceAdministratorsRestOperations _managedInstanceAdministratorsRestClient; private readonly ManagedInstanceAdministratorData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs index 0c45ef28fa6d..3757c035593c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceAzureADOnlyAuthentication.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceAzureADOnlyAuthentication along with the instance operations that can be performed on it. public partial class ManagedInstanceAzureADOnlyAuthentication : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string authenticationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/azureADOnlyAuthentications/{authenticationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceAzureADOnlyAuthenticationsRestOperations _managedInstanceAzureADOnlyAuthenticationsRestClient; private readonly ManagedInstanceAzureADOnlyAuthenticationData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseBackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseBackupShortTermRetentionPolicy.cs index 8481c8988868..55805a36d1e9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseBackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseBackupShortTermRetentionPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseBackupShortTermRetentionPolicy along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseBackupShortTermRetentionPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupShortTermRetentionPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedBackupShortTermRetentionPoliciesRestOperations _managedBackupShortTermRetentionPoliciesRestClient; private readonly ManagedBackupShortTermRetentionPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchema.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchema.cs index 2acc208231e3..381732c8d787 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchema.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchema.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseSchema along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseSchema : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseSchemasRestOperations _managedDatabaseSchemasRestClient; private readonly DatabaseSchemaData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTable.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTable.cs index cfd415798df0..003d61d8eaa6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTable.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTable.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseSchemaTable along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseSchemaTable : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseTablesRestOperations _managedDatabaseTablesRestClient; private readonly DatabaseTableData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumn.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumn.cs index 3b6de92ab4a2..2c8c74495a8f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumn.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumn.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseSchemaTableColumn along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseSchemaTableColumn : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseColumnsRestOperations _managedDatabaseColumnsRestClient; private readonly ManagedDatabaseSensitivityLabelsRestOperations _managedDatabaseSensitivityLabelsRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumnSensitivityLabel.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumnSensitivityLabel.cs index 15eda70d451b..6a8a8000291c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumnSensitivityLabel.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseSchemaTableColumnSensitivityLabel.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseSchemaTableColumnSensitivityLabel along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseSchemaTableColumnSensitivityLabel : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string schemaName, string tableName, string columnName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseSensitivityLabelsRestOperations _managedDatabaseSensitivityLabelsRestClient; private readonly SensitivityLabelData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessment.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessment.cs index b2815fd63595..bd25d9e9f872 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseVulnerabilityAssessment along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseVulnerabilityAssessment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string vulnerabilityAssessmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseVulnerabilityAssessmentsRestOperations _managedDatabaseVulnerabilityAssessmentsRestClient; private readonly DatabaseVulnerabilityAssessmentData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline.cs index 378cab070349..1401a94e465f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseVulnerabilityAssessmentRuleBaseline : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string vulnerabilityAssessmentName, string ruleId, string baselineName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseVulnerabilityAssessmentRuleBaselinesRestOperations _managedDatabaseVulnerabilityAssessmentRuleBaselinesRestClient; private readonly DatabaseVulnerabilityAssessmentRuleBaselineData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentScan.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentScan.cs index 67f420a2724a..aaab32690d98 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentScan.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceDatabaseVulnerabilityAssessmentScan.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceDatabaseVulnerabilityAssessmentScan along with the instance operations that can be performed on it. public partial class ManagedInstanceDatabaseVulnerabilityAssessmentScan : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string vulnerabilityAssessmentName, string scanId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseVulnerabilityAssessmentScansRestOperations _managedDatabaseVulnerabilityAssessmentScansRestClient; private readonly VulnerabilityAssessmentScanRecordData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs index 5c04b7e895c0..0eaf6d25fc52 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceEncryptionProtector.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceEncryptionProtector along with the instance operations that can be performed on it. public partial class ManagedInstanceEncryptionProtector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string encryptionProtectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/encryptionProtector/{encryptionProtectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceEncryptionProtectorsRestOperations _managedInstanceEncryptionProtectorsRestClient; private readonly ManagedInstanceEncryptionProtectorData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKey.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKey.cs index d60752afdc9f..d511408b8d5a 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKey.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceKey.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceKey along with the instance operations that can be performed on it. public partial class ManagedInstanceKey : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string keyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/keys/{keyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceKeysRestOperations _managedInstanceKeysRestClient; private readonly ManagedInstanceKeyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs index eba2fdf64ddc..4458d4a67952 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceLongTermRetentionPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceLongTermRetentionPolicy along with the instance operations that can be performed on it. public partial class ManagedInstanceLongTermRetentionPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/backupLongTermRetentionPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceLongTermRetentionPoliciesRestOperations _managedInstanceLongTermRetentionPoliciesRestClient; private readonly ManagedInstanceLongTermRetentionPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperation.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperation.cs index 91b57e705062..afbb989baa2e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperation.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceOperation.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceOperation along with the instance operations that can be performed on it. public partial class ManagedInstanceOperation : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string operationId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/operations/{operationId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceRestOperations _managedInstanceOperationsRestClient; private readonly ManagedInstanceOperationData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs index 3945d1aa03cb..cff8d330d592 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstancePrivateEndpointConnection along with the instance operations that can be performed on it. public partial class ManagedInstancePrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstancePrivateEndpointConnectionsRestOperations _managedInstancePrivateEndpointConnectionsRestClient; private readonly ManagedInstancePrivateEndpointConnectionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLink.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLink.cs index 64091c7c1370..dfb61cec0c80 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLink.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstancePrivateLink.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstancePrivateLink along with the instance operations that can be performed on it. public partial class ManagedInstancePrivateLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string groupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/privateLinkResources/{groupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstancePrivateLinkResourcesRestOperations _managedInstancePrivateLinkResourcesRestClient; private readonly ManagedInstancePrivateLinkData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs index 1b7b1a10dcd9..7763dacb01e8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedInstanceVulnerabilityAssessment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedInstanceVulnerabilityAssessment along with the instance operations that can be performed on it. public partial class ManagedInstanceVulnerabilityAssessment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string vulnerabilityAssessmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedInstanceVulnerabilityAssessmentsRestOperations _managedInstanceVulnerabilityAssessmentsRestClient; private readonly ManagedInstanceVulnerabilityAssessmentData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs index c54041b8368a..d708a114c7a3 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedRestorableDroppedDbBackupShortTermRetentionPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedRestorableDroppedDbBackupShortTermRetentionPolicy along with the instance operations that can be performed on it. public partial class ManagedRestorableDroppedDbBackupShortTermRetentionPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId, string policyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}/backupShortTermRetentionPolicies/{policyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestOperations _managedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesRestClient; private readonly ManagedBackupShortTermRetentionPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs index 0ab5f5280486..bb6dce9e8b3b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedServerSecurityAlertPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedServerSecurityAlertPolicy along with the instance operations that can be performed on it. public partial class ManagedServerSecurityAlertPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string securityAlertPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/securityAlertPolicies/{securityAlertPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedServerSecurityAlertPoliciesRestOperations _managedServerSecurityAlertPoliciesRestClient; private readonly ManagedServerSecurityAlertPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryption.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryption.cs index 7c735d21f166..a5120a9740ef 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryption.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ManagedTransparentDataEncryption.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ManagedTransparentDataEncryption along with the instance operations that can be performed on it. public partial class ManagedTransparentDataEncryption : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string databaseName, string tdeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/transparentDataEncryption/{tdeName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagedDatabaseTransparentDataEncryptionRestOperations _managedDatabaseTransparentDataEncryptionRestClient; private readonly ManagedTransparentDataEncryptionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRule.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRule.cs index f3d108105c3f..f82f2f87bb15 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRule.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/OutboundFirewallRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a OutboundFirewallRule along with the instance operations that can be performed on it. public partial class OutboundFirewallRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string outboundRuleFqdn) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/outboundFirewallRules/{outboundRuleFqdn}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly OutboundFirewallRulesRestOperations _outboundFirewallRulesRestClient; private readonly OutboundFirewallRuleData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateEndpointConnection.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateEndpointConnection.cs index a5633edcd8d9..5da20ac36c2e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateLinkResource.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateLinkResource.cs index b6435adbcbed..0334f194ae82 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateLinkResource.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/PrivateLinkResource.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a PrivateLinkResource along with the instance operations that can be performed on it. public partial class PrivateLinkResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string groupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/privateLinkResources/{groupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; private readonly PrivateLinkResourceData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedAction.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedAction.cs index e66595cfdeac..e9e0ea2f49b4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedAction.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecommendedAction.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a RecommendedAction along with the instance operations that can be performed on it. public partial class RecommendedAction : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName, string recommendedActionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}/recommendedActions/{recommendedActionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseRecommendedActionsRestOperations _databaseRecommendedActionsRestClient; private readonly RecommendedActionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabase.cs index 2395a594b2a9..e2a3435e77f1 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableDatabase.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a RecoverableDatabase along with the instance operations that can be performed on it. public partial class RecoverableDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/recoverableDatabases/{databaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RecoverableDatabasesRestOperations _recoverableDatabasesRestClient; private readonly RecoverableDatabaseData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabase.cs index 1d83dbc77bce..2d72e61d48ac 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RecoverableManagedDatabase.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a RecoverableManagedDatabase along with the instance operations that can be performed on it. public partial class RecoverableManagedDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string recoverableDatabaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/recoverableDatabases/{recoverableDatabaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RecoverableManagedDatabasesRestOperations _recoverableManagedDatabasesRestClient; private readonly RecoverableManagedDatabaseData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ReplicationLink.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ReplicationLink.cs index dc25a936ec43..4e81af5799d8 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ReplicationLink.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ReplicationLink.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ReplicationLink along with the instance operations that can be performed on it. public partial class ReplicationLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string linkId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/replicationLinks/{linkId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ReplicationLinksRestOperations _replicationLinksRestClient; private readonly ReplicationLinkData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionBackup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionBackup.cs index 361d112d2807..728017c896d9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionBackup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionBackup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ResourceGroupLongTermRetentionBackup along with the instance operations that can be performed on it. public partial class ResourceGroupLongTermRetentionBackup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LongTermRetentionBackupsRestOperations _longTermRetentionBackupsRestClient; private readonly LongTermRetentionBackupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionManagedInstanceBackup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionManagedInstanceBackup.cs index 34afe431d8ed..c9c85dc976d9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionManagedInstanceBackup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ResourceGroupLongTermRetentionManagedInstanceBackup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ResourceGroupLongTermRetentionManagedInstanceBackup along with the instance operations that can be performed on it. public partial class ResourceGroupLongTermRetentionManagedInstanceBackup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string locationName, string managedInstanceName, string databaseName, string backupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LongTermRetentionManagedInstanceBackupsRestOperations _longTermRetentionManagedInstanceBackupsRestClient; private readonly ManagedInstanceLongTermRetentionBackupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabase.cs index 827de7eedcd8..3d5ac1902641 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedDatabase.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a RestorableDroppedDatabase along with the instance operations that can be performed on it. public partial class RestorableDroppedDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string restorableDroppedDatabaseId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RestorableDroppedDatabasesRestOperations _restorableDroppedDatabasesRestClient; private readonly RestorableDroppedDatabaseData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabase.cs index 911768f8dc31..2f233ac560d6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorableDroppedManagedDatabase.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a RestorableDroppedManagedDatabase along with the instance operations that can be performed on it. public partial class RestorableDroppedManagedDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName, string restorableDroppedDatabaseId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/restorableDroppedDatabases/{restorableDroppedDatabaseId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RestorableDroppedManagedDatabasesRestOperations _restorableDroppedManagedDatabasesRestClient; private readonly RestorableDroppedManagedDatabaseData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorePoint.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorePoint.cs index 2ad037380d6c..3afc7846e81e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorePoint.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/RestorePoint.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a RestorePoint along with the instance operations that can be performed on it. public partial class RestorePoint : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string restorePointName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/restorePoints/{restorePointName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RestorePointsRestOperations _restorePointsRestClient; private readonly RestorePointData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvisor.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvisor.cs index 1f3d0a143135..873c3d3b01ff 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvisor.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAdvisor.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerAdvisor along with the instance operations that can be performed on it. public partial class ServerAdvisor : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string advisorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/advisors/{advisorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerAdvisorsRestOperations _serverAdvisorsRestClient; private readonly AdvisorData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAutomaticTuning.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAutomaticTuning.cs index d2a81f2d320a..67b7151c946c 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAutomaticTuning.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAutomaticTuning.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerAutomaticTuning along with the instance operations that can be performed on it. public partial class ServerAutomaticTuning : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/automaticTuning/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerAutomaticTuningRestOperations _serverAutomaticTuningRestClient; private readonly ServerAutomaticTuningData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADAdministrator.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADAdministrator.cs index e66b796f26aa..283ea5c336ef 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADAdministrator.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADAdministrator.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerAzureADAdministrator along with the instance operations that can be performed on it. public partial class ServerAzureADAdministrator : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string administratorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/administrators/{administratorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerAzureADAdministratorsRestOperations _serverAzureADAdministratorsRestClient; private readonly ServerAzureADAdministratorData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADOnlyAuthentication.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADOnlyAuthentication.cs index 5b0baaf6a6d7..f3e92c36f867 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADOnlyAuthentication.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerAzureADOnlyAuthentication.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerAzureADOnlyAuthentication along with the instance operations that can be performed on it. public partial class ServerAzureADOnlyAuthentication : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string authenticationName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/azureADOnlyAuthentications/{authenticationName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerAzureADOnlyAuthenticationsRestOperations _serverAzureADOnlyAuthenticationsRestClient; private readonly ServerAzureADOnlyAuthenticationData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerBlobAuditingPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerBlobAuditingPolicy.cs index 324dd7dc8b7e..fffb14b574d6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerBlobAuditingPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerBlobAuditingPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerBlobAuditingPolicy along with the instance operations that can be performed on it. public partial class ServerBlobAuditingPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string blobAuditingPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/auditingSettings/{blobAuditingPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerBlobAuditingPoliciesRestOperations _serverBlobAuditingPoliciesRestClient; private readonly ServerBlobAuditingPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerCommunicationLink.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerCommunicationLink.cs index 195977ac9d4c..cfeea62e32f6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerCommunicationLink.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerCommunicationLink.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerCommunicationLink along with the instance operations that can be performed on it. public partial class ServerCommunicationLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string communicationLinkName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/communicationLinks/{communicationLinkName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerCommunicationLinksRestOperations _serverCommunicationLinksRestClient; private readonly ServerCommunicationLinkData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerConnectionPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerConnectionPolicy.cs index 1d8392ef2004..f8cd4f3bb5af 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerConnectionPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerConnectionPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerConnectionPolicy along with the instance operations that can be performed on it. public partial class ServerConnectionPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string connectionPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/connectionPolicies/{connectionPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerConnectionPoliciesRestOperations _serverConnectionPoliciesRestClient; private readonly ServerConnectionPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseAdvisor.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseAdvisor.cs index 82b366eadb16..4f36a3764106 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseAdvisor.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseAdvisor.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseAdvisor along with the instance operations that can be performed on it. public partial class ServerDatabaseAdvisor : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string advisorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/advisors/{advisorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseAdvisorsRestOperations _databaseAdvisorsRestClient; private readonly AdvisorData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchema.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchema.cs index c34f744b36a8..10fe5ce8bcd9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchema.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchema.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseSchema along with the instance operations that can be performed on it. public partial class ServerDatabaseSchema : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseSchemasRestOperations _databaseSchemasRestClient; private readonly DatabaseSchemaData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTable.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTable.cs index e5b380835412..f56e6faa30b0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTable.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTable.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseSchemaTable along with the instance operations that can be performed on it. public partial class ServerDatabaseSchemaTable : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseTablesRestOperations _databaseTablesRestClient; private readonly DatabaseTableData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumn.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumn.cs index 52f83bdf7e1c..c63b57c9b8db 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumn.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumn.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseSchemaTableColumn along with the instance operations that can be performed on it. public partial class ServerDatabaseSchemaTableColumn : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseColumnsRestOperations _databaseColumnsRestClient; private readonly SensitivityLabelsRestOperations _sensitivityLabelsRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumnSensitivityLabel.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumnSensitivityLabel.cs index 2a39dd71e87c..19a6ac2ba73d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumnSensitivityLabel.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseSchemaTableColumnSensitivityLabel.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseSchemaTableColumnSensitivityLabel along with the instance operations that can be performed on it. public partial class ServerDatabaseSchemaTableColumnSensitivityLabel : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string schemaName, string tableName, string columnName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/schemas/{schemaName}/tables/{tableName}/columns/{columnName}/sensitivityLabels/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SensitivityLabelsRestOperations _sensitivityLabelsRestClient; private readonly SensitivityLabelData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessment.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessment.cs index 8b4569058589..e7779a5340eb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseVulnerabilityAssessment along with the instance operations that can be performed on it. public partial class ServerDatabaseVulnerabilityAssessment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string vulnerabilityAssessmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseVulnerabilityAssessmentsRestOperations _databaseVulnerabilityAssessmentsRestClient; private readonly DatabaseVulnerabilityAssessmentData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentRuleBaseline.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentRuleBaseline.cs index 429a80ec84a8..84e6bb48546f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentRuleBaseline.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentRuleBaseline.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseVulnerabilityAssessmentRuleBaseline along with the instance operations that can be performed on it. public partial class ServerDatabaseVulnerabilityAssessmentRuleBaseline : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string vulnerabilityAssessmentName, string ruleId, string baselineName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/rules/{ruleId}/baselines/{baselineName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseVulnerabilityAssessmentRuleBaselinesRestOperations _databaseVulnerabilityAssessmentRuleBaselinesRestClient; private readonly DatabaseVulnerabilityAssessmentRuleBaselineData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentScan.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentScan.cs index 415b54eb4e0a..444ac5344995 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentScan.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDatabaseVulnerabilityAssessmentScan.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDatabaseVulnerabilityAssessmentScan along with the instance operations that can be performed on it. public partial class ServerDatabaseVulnerabilityAssessmentScan : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string vulnerabilityAssessmentName, string scanId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}/scans/{scanId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabaseVulnerabilityAssessmentScansRestOperations _databaseVulnerabilityAssessmentScansRestClient; private readonly VulnerabilityAssessmentScanRecordData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDevOpsAuditingSettings.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDevOpsAuditingSettings.cs index 15b3a85964ba..5eaea8f12efd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDevOpsAuditingSettings.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDevOpsAuditingSettings.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDevOpsAuditingSettings along with the instance operations that can be performed on it. public partial class ServerDevOpsAuditingSettings : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string devOpsAuditingSettingsName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/devOpsAuditingSettings/{devOpsAuditingSettingsName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerDevOpsAuditSettingsRestOperations _serverDevOpsAuditSettingsRestClient; private readonly ServerDevOpsAuditingSettingsData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDnsAlias.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDnsAlias.cs index 48f8eee1d2a0..5869bda99ee9 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDnsAlias.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerDnsAlias.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerDnsAlias along with the instance operations that can be performed on it. public partial class ServerDnsAlias : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string dnsAliasName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/dnsAliases/{dnsAliasName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerDnsAliasesRestOperations _serverDnsAliasesRestClient; private readonly ServerDnsAliasData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecution.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecution.cs index c06209388861..9f4a4cfcaba4 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecution.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecution.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerJobAgentJobExecution along with the instance operations that can be performed on it. public partial class ServerJobAgentJobExecution : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string jobExecutionId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobExecutionsRestOperations _jobExecutionsRestClient; private readonly JobExecutionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStep.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStep.cs index 5537aeadca43..10b52f9101f7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStep.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStep.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerJobAgentJobExecutionStep along with the instance operations that can be performed on it. public partial class ServerJobAgentJobExecutionStep : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string jobExecutionId, string stepName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobStepExecutionsRestOperations _jobStepExecutionsRestClient; private readonly JobExecutionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStepTarget.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStepTarget.cs index 2cc393a100be..0ce89e2052bd 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStepTarget.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobExecutionStepTarget.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerJobAgentJobExecutionStepTarget along with the instance operations that can be performed on it. public partial class ServerJobAgentJobExecutionStepTarget : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string jobExecutionId, string stepName, string targetId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/executions/{jobExecutionId}/steps/{stepName}/targets/{targetId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobTargetExecutionsRestOperations _jobTargetExecutionsRestClient; private readonly JobExecutionData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobStep.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobStep.cs index dba883d5976e..e56d6f86a914 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobStep.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobStep.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerJobAgentJobStep along with the instance operations that can be performed on it. public partial class ServerJobAgentJobStep : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string stepName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/steps/{stepName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobStepsRestOperations _jobStepsRestClient; private readonly JobStepData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobVersionStep.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobVersionStep.cs index b5f75a53cd2d..404a7fe197ac 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobVersionStep.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerJobAgentJobVersionStep.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerJobAgentJobVersionStep along with the instance operations that can be performed on it. public partial class ServerJobAgentJobVersionStep : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName, string jobVersion, string stepName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}/versions/{jobVersion}/steps/{stepName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobStepsRestOperations _jobStepsRestClient; private readonly JobStepData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerKey.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerKey.cs index 62527fcc8eee..80fbd7662d38 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerKey.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerKey.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerKey along with the instance operations that can be performed on it. public partial class ServerKey : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string keyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/keys/{keyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerKeysRestOperations _serverKeysRestClient; private readonly ServerKeyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerSecurityAlertPolicy.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerSecurityAlertPolicy.cs index cc47718efa0d..6d3aba2cd397 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerSecurityAlertPolicy.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerSecurityAlertPolicy.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerSecurityAlertPolicy along with the instance operations that can be performed on it. public partial class ServerSecurityAlertPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string securityAlertPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/securityAlertPolicies/{securityAlertPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerSecurityAlertPoliciesRestOperations _serverSecurityAlertPoliciesRestClient; private readonly ServerSecurityAlertPolicyData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustGroup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustGroup.cs index e2609c2955c6..b4a69715ed49 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustGroup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerTrustGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerTrustGroup along with the instance operations that can be performed on it. public partial class ServerTrustGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string locationName, string serverTrustGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/serverTrustGroups/{serverTrustGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerTrustGroupsRestOperations _serverTrustGroupsRestClient; private readonly ServerTrustGroupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerVulnerabilityAssessment.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerVulnerabilityAssessment.cs index 3b3762634ab1..40d538fa661b 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerVulnerabilityAssessment.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServerVulnerabilityAssessment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServerVulnerabilityAssessment along with the instance operations that can be performed on it. public partial class ServerVulnerabilityAssessment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string vulnerabilityAssessmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/vulnerabilityAssessments/{vulnerabilityAssessmentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServerVulnerabilityAssessmentsRestOperations _serverVulnerabilityAssessmentsRestClient; private readonly ServerVulnerabilityAssessmentData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjective.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjective.cs index 9552b5d1f983..3b4748d34051 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjective.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/ServiceObjective.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a ServiceObjective along with the instance operations that can be performed on it. public partial class ServiceObjective : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string serviceObjectiveName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/serviceObjectives/{serviceObjectiveName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServiceObjectivesRestOperations _serviceObjectivesRestClient; private readonly ServiceObjectiveData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfiguration.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfiguration.cs index c3bf8e764be1..679c00e84fea 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfiguration.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlAgentConfiguration.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SqlAgentConfiguration along with the instance operations that can be performed on it. public partial class SqlAgentConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string managedInstanceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/sqlAgent/current"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SqlAgentRestOperations _sqlAgentRestClient; private readonly SqlAgentConfigurationData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabase.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabase.cs index 2df41dc1a231..92765848f7c0 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabase.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlDatabase.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SqlDatabase along with the instance operations that can be performed on it. public partial class SqlDatabase : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DatabasesRestOperations _databasesRestClient; private readonly DatabaseColumnsRestOperations _databaseColumnsRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlJob.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlJob.cs index 8186b72fb0c4..25d41e833e73 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlJob.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlJob.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SqlJob along with the instance operations that can be performed on it. public partial class SqlJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string jobAgentName, string jobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/jobAgents/{jobAgentName}/jobs/{jobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly JobsRestOperations _jobsRestClient; private readonly JobExecutionsRestOperations _jobExecutionsRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServer.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServer.cs index 5dab4ce6718d..37b41ab2c4e5 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServer.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlServer.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SqlServer along with the instance operations that can be performed on it. public partial class SqlServer : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ServersRestOperations _serversRestClient; private readonly DatabasesRestOperations _databasesRestClient; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZone.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZone.cs index 2a6f01810725..0e2e3caa47e6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZone.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SqlTimeZone.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SqlTimeZone along with the instance operations that can be performed on it. public partial class SqlTimeZone : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string locationName, string timeZoneId) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/timeZones/{timeZoneId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TimeZonesRestOperations _timeZonesRestClient; private readonly SqlTimeZoneData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionBackup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionBackup.cs index 728329bc1179..e89967a578e7 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionBackup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionBackup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SubscriptionLongTermRetentionBackup along with the instance operations that can be performed on it. public partial class SubscriptionLongTermRetentionBackup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string locationName, string longTermRetentionServerName, string longTermRetentionDatabaseName, string backupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LongTermRetentionBackupsRestOperations _longTermRetentionBackupsRestClient; private readonly LongTermRetentionBackupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionManagedInstanceBackup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionManagedInstanceBackup.cs index a0710d0f48df..19fbc404ad32 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionManagedInstanceBackup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionLongTermRetentionManagedInstanceBackup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SubscriptionLongTermRetentionManagedInstanceBackup along with the instance operations that can be performed on it. public partial class SubscriptionLongTermRetentionManagedInstanceBackup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string locationName, string managedInstanceName, string databaseName, string backupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionManagedInstances/{managedInstanceName}/longTermRetentionDatabases/{databaseName}/longTermRetentionManagedInstanceBackups/{backupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly LongTermRetentionManagedInstanceBackupsRestOperations _longTermRetentionManagedInstanceBackupsRestClient; private readonly ManagedInstanceLongTermRetentionBackupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsage.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsage.cs index 5f7d92773c99..fa65aa719672 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsage.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SubscriptionUsage.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SubscriptionUsage along with the instance operations that can be performed on it. public partial class SubscriptionUsage : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string locationName, string usageName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/usages/{usageName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SubscriptionUsagesRestOperations _subscriptionUsagesRestClient; private readonly SubscriptionUsageData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgent.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgent.cs index 3a95c08c2ece..995dcb56f3d6 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgent.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncAgent.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SyncAgent along with the instance operations that can be performed on it. public partial class SyncAgent : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string syncAgentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/syncAgents/{syncAgentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SyncAgentsRestOperations _syncAgentsRestClient; private readonly SyncAgentData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroup.cs index 6f45f65e1d04..1d330c8a7a1e 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SyncGroup along with the instance operations that can be performed on it. public partial class SyncGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SyncGroupsRestOperations _syncGroupsRestClient; private readonly SyncGroupData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMember.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMember.cs index 639ca7a32677..a2f4dbe72a12 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMember.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/SyncMember.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a SyncMember along with the instance operations that can be performed on it. public partial class SyncMember : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string syncGroupName, string syncMemberName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/syncGroups/{syncGroupName}/syncMembers/{syncMemberName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SyncMembersRestOperations _syncMembersRestClient; private readonly SyncMemberData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualCluster.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualCluster.cs index 3171b430a239..ef899e510bdb 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualCluster.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualCluster.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a VirtualCluster along with the instance operations that can be performed on it. public partial class VirtualCluster : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string virtualClusterName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/virtualClusters/{virtualClusterName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualClustersRestOperations _virtualClustersRestClient; private readonly VirtualClusterData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualNetworkRule.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualNetworkRule.cs index b5da569c5be2..98345e8f253d 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualNetworkRule.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/VirtualNetworkRule.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a VirtualNetworkRule along with the instance operations that can be performed on it. public partial class VirtualNetworkRule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string virtualNetworkRuleName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/virtualNetworkRules/{virtualNetworkRuleName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly VirtualNetworkRulesRestOperations _virtualNetworkRulesRestClient; private readonly VirtualNetworkRuleData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifier.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifier.cs index dbb1542df028..d7af12f2b69f 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifier.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadClassifier.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a WorkloadClassifier along with the instance operations that can be performed on it. public partial class WorkloadClassifier : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName, string workloadClassifierName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}/workloadClassifiers/{workloadClassifierName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WorkloadClassifiersRestOperations _workloadClassifiersRestClient; private readonly WorkloadClassifierData _data; diff --git a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroup.cs b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroup.cs index d7c43b909649..15c0bd979479 100644 --- a/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroup.cs +++ b/sdk/sqlmanagement/Azure.ResourceManager.Sql/src/Generated/WorkloadGroup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Sql /// A Class representing a WorkloadGroup along with the instance operations that can be performed on it. public partial class WorkloadGroup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string serverName, string databaseName, string workloadGroupName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}/databases/{databaseName}/workloadGroups/{workloadGroupName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WorkloadGroupsRestOperations _workloadGroupsRestClient; private readonly WorkloadGroupData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainer.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainer.cs index 88e632e9eb2d..daa4768dabc1 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainer.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobContainer.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a BlobContainer along with the instance operations that can be performed on it. public partial class BlobContainer : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string containerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly BlobContainersRestOperations _blobContainersRestClient; private readonly BlobContainerData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicy.cs index d25f0d62841c..1119a3ce8464 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobInventoryPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a BlobInventoryPolicy along with the instance operations that can be performed on it. public partial class BlobInventoryPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string blobInventoryPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly BlobInventoryPoliciesRestOperations _blobInventoryPoliciesRestClient; private readonly BlobInventoryPolicyData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobService.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobService.cs index 03bef5f9805c..94fe6b6560af 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobService.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/BlobService.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a BlobService along with the instance operations that can be performed on it. public partial class BlobService : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly BlobServicesRestOperations _blobServicesRestClient; private readonly BlobServiceData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccount.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccount.cs index bbb582be154b..51fd95ad2f5e 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccount.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/DeletedAccount.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a DeletedAccount along with the instance operations that can be performed on it. public partial class DeletedAccount : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string location, string deletedAccountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Storage/locations/{location}/deletedAccounts/{deletedAccountName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DeletedAccountsRestOperations _deletedAccountsRestClient; private readonly DeletedAccountData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScope.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScope.cs index c836bc706bc9..b5eff5b6f734 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScope.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/EncryptionScope.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a EncryptionScope along with the instance operations that can be performed on it. public partial class EncryptionScope : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string encryptionScopeName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/encryptionScopes/{encryptionScopeName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly EncryptionScopesRestOperations _encryptionScopesRestClient; private readonly EncryptionScopeData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileService.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileService.cs index 9a7afd06f6d8..d64a12a99199 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileService.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileService.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a FileService along with the instance operations that can be performed on it. public partial class FileService : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FileServicesRestOperations _fileServicesRestClient; private readonly FileServiceData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShare.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShare.cs index e90947a9e69a..0e3ab99787cf 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShare.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/FileShare.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a FileShare along with the instance operations that can be performed on it. public partial class FileShare : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string shareName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/fileServices/default/shares/{shareName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly FileSharesRestOperations _fileSharesRestClient; private readonly FileShareData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicy.cs index 6401982ccc7d..0ce6ff1db866 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ImmutabilityPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a ImmutabilityPolicy along with the instance operations that can be performed on it. public partial class ImmutabilityPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string containerName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly BlobContainersRestOperations _blobContainersRestClient; private readonly ImmutabilityPolicyData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ManagementPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ManagementPolicy.cs index 8c17386b3731..e1356f8c35bc 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ManagementPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ManagementPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a ManagementPolicy along with the instance operations that can be performed on it. public partial class ManagementPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string managementPolicyName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/managementPolicies/{managementPolicyName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ManagementPoliciesRestOperations _managementPoliciesRestClient; private readonly ManagementPolicyData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicy.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicy.cs index c68ef53d697b..4d0b0ceae64a 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicy.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/ObjectReplicationPolicy.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a ObjectReplicationPolicy along with the instance operations that can be performed on it. public partial class ObjectReplicationPolicy : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string objectReplicationPolicyId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/objectReplicationPolicies/{objectReplicationPolicyId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ObjectReplicationPoliciesRestOperations _objectReplicationPoliciesRestClient; private readonly ObjectReplicationPolicyData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/PrivateEndpointConnection.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/PrivateEndpointConnection.cs index e6b8aeb7323c..4b3aec3a021d 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly PrivateEndpointConnectionsRestOperations _privateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueService.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueService.cs index 56d00dd3fff2..c01089a3aab5 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueService.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/QueueService.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a QueueService along with the instance operations that can be performed on it. public partial class QueueService : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly QueueServicesRestOperations _queueServicesRestClient; private readonly QueueServiceData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccount.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccount.cs index 3dde70263280..b3f070dbdffc 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccount.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageAccount.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a StorageAccount along with the instance operations that can be performed on it. public partial class StorageAccount : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StorageAccountsRestOperations _storageAccountsRestClient; private readonly PrivateLinkResourcesRestOperations _privateLinkResourcesRestClient; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueue.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueue.cs index 6f57b8e59a4f..13aa39f6d6fd 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueue.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/StorageQueue.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a StorageQueue along with the instance operations that can be performed on it. public partial class StorageQueue : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string queueName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/queueServices/default/queues/{queueName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly QueueRestOperations _queueRestClient; private readonly StorageQueueData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Table.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Table.cs index bdc9256933de..43e1b7842e23 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Table.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/Table.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a Table along with the instance operations that can be performed on it. public partial class Table : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName, string tableName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default/tables/{tableName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TableRestOperations _tableRestClient; private readonly TableData _data; diff --git a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableService.cs b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableService.cs index 7aa35a20c549..10cd577467e7 100644 --- a/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableService.cs +++ b/sdk/storage/Azure.ResourceManager.Storage/src/Generated/TableService.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.Storage /// A Class representing a TableService along with the instance operations that can be performed on it. public partial class TableService : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string accountName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/tableServices/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TableServicesRestOperations _tableServicesRestClient; private readonly TableServiceData _data; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/PrivateEndpointConnection.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/PrivateEndpointConnection.cs index d03cd0eb7f5d..5ea597dbf8ca 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/PrivateEndpointConnection.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/PrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.WebPubSub /// A Class representing a PrivateEndpointConnection along with the instance operations that can be performed on it. public partial class PrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebPubSubPrivateEndpointConnectionsRestOperations _webPubSubPrivateEndpointConnectionsRestClient; private readonly PrivateEndpointConnectionData _data; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/SharedPrivateLink.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/SharedPrivateLink.cs index 5e0a5daa70e6..5a384ae5ba6d 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/SharedPrivateLink.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/SharedPrivateLink.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.WebPubSub /// A Class representing a SharedPrivateLink along with the instance operations that can be performed on it. public partial class SharedPrivateLink : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string sharedPrivateLinkName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly SharedPrivateLinksRestOperations _sharedPrivateLinksRestClient; private readonly SharedPrivateLinkData _data; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSub.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSub.cs index dc24465f94cb..883909c6bb1f 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSub.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSub.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.WebPubSub /// A Class representing a WebPubSub along with the instance operations that can be performed on it. public partial class WebPubSub : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebPubSubRestOperations _webPubSubRestClient; private readonly WebPubSubPrivateLinkResourcesRestOperations _webPubSubPrivateLinkResourcesRestClient; diff --git a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubHub.cs b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubHub.cs index c2754f936dfa..d8d1e8c7570a 100644 --- a/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubHub.cs +++ b/sdk/webpubsub/Azure.ResourceManager.WebPubSub/src/Generated/WebPubSubHub.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.WebPubSub /// A Class representing a WebPubSubHub along with the instance operations that can be performed on it. public partial class WebPubSubHub : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string resourceName, string hubName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/webPubSub/{resourceName}/hubs/{hubName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebPubSubHubsRestOperations _webPubSubHubsRestClient; private readonly WebPubSubHubData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrder.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrder.cs index b06efb5f164e..4e2775520fe5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrder.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateOrder.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a AppServiceCertificateOrder along with the instance operations that can be performed on it. public partial class AppServiceCertificateOrder : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceCertificateOrdersRestOperations _appServiceCertificateOrdersRestClient; private readonly AppServiceCertificateOrderData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs index 2515931fa659..f6e0131cda96 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceCertificateResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a AppServiceCertificateResource along with the instance operations that can be performed on it. public partial class AppServiceCertificateResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceCertificateOrdersRestOperations _appServiceCertificateOrdersRestClient; private readonly AppServiceCertificateResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomain.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomain.cs index 60c2f56550ca..56a43109a188 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomain.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceDomain.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a AppServiceDomain along with the instance operations that can be performed on it. public partial class AppServiceDomain : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DomainsRestOperations _domainsRestClient; private readonly AppServiceDomainData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironment.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironment.cs index 9978a553a1d5..5a2e4c21eaab 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironment.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceEnvironment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a AppServiceEnvironment along with the instance operations that can be performed on it. public partial class AppServiceEnvironment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _appServiceEnvironmentsRestClient; private readonly RecommendationsRestOperations _recommendationsRestClient; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlan.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlan.cs index 93ac298c2f68..c17405ee808c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlan.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServicePlan.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a AppServicePlan along with the instance operations that can be performed on it. public partial class AppServicePlan : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServicePlansRestOperations _appServicePlansRestClient; private readonly AppServicePlanData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfiguration.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfiguration.cs index 9f117290e7c8..9b47836e4364 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfiguration.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AseV3NetworkingConfiguration.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a AseV3NetworkingConfiguration along with the instance operations that can be performed on it. public partial class AseV3NetworkingConfiguration : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/configurations/networking"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _appServiceEnvironmentsRestClient; private readonly AseV3NetworkingConfigurationData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/BasicPublishingCredentialsPolicyFtp.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/BasicPublishingCredentialsPolicyFtp.cs index 83f7d4a03b38..208913d6e544 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/BasicPublishingCredentialsPolicyFtp.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/BasicPublishingCredentialsPolicyFtp.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a BasicPublishingCredentialsPolicyFtp along with the instance operations that can be performed on it. public partial class BasicPublishingCredentialsPolicyFtp : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/ftp"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly CsmPublishingCredentialsPoliciesEntityData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Certificate.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Certificate.cs index bd07a4bda667..a218154f8102 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Certificate.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Certificate.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a Certificate along with the instance operations that can be performed on it. public partial class Certificate : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CertificatesRestOperations _certificatesRestClient; private readonly CertificateData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetector.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetector.cs index 0e2f12907201..678e69c89be7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetector.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/CertificateOrderDetector.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a CertificateOrderDetector along with the instance operations that can be performed on it. public partial class CertificateOrderDetector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string certificateOrderName, string detectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/detectors/{detectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly CertificateOrdersDiagnosticsRestOperations _certificateOrdersDiagnosticsRestClient; private readonly AppServiceDetectorData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSite.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSite.cs index 51aebe0c359f..a8e5bbfa20d8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSite.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DeletedSite.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a DeletedSite along with the instance operations that can be performed on it. public partial class DeletedSite : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string deletedSiteId) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.Web/deletedSites/{deletedSiteId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly GlobalRestOperations _globalRestClient; private readonly DeletedSiteData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifier.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifier.cs index 13e136aaccb2..c6cdcb8e3321 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifier.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/DomainOwnershipIdentifier.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a DomainOwnershipIdentifier along with the instance operations that can be performed on it. public partial class DomainOwnershipIdentifier : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string domainName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DomainRegistration/domains/{domainName}/domainOwnershipIdentifiers/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DomainsRestOperations _domainsRestClient; private readonly DomainOwnershipIdentifierData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetector.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetector.cs index ba29047063c2..a93e7e7f6994 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetector.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentDetector.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a HostingEnvironmentDetector along with the instance operations that can be performed on it. public partial class HostingEnvironmentDetector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string detectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/detectors/{detectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly AppServiceDetectorData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs index ad95412b47ac..00a94aeddb80 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePool.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a HostingEnvironmentMultiRolePool along with the instance operations that can be performed on it. public partial class HostingEnvironmentMultiRolePool : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/multiRolePools/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _appServiceEnvironmentsRestClient; private readonly WorkerPoolResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs index a83aa480e751..8e8a7ad8b3ac 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentPrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a HostingEnvironmentPrivateEndpointConnection along with the instance operations that can be performed on it. public partial class HostingEnvironmentPrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _appServiceEnvironmentsRestClient; private readonly RemotePrivateEndpointConnectionARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendation.cs index 121e35c4c5e0..acefdf3ac318 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentRecommendation.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a HostingEnvironmentRecommendation along with the instance operations that can be performed on it. public partial class HostingEnvironmentRecommendation : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string hostingEnvironmentName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RecommendationsRestOperations _recommendationsRestClient; private readonly RecommendationRuleData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPool.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPool.cs index 4226303588b4..2efa70c3a977 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPool.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPool.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a HostingEnvironmentWorkerPool along with the instance operations that can be performed on it. public partial class HostingEnvironmentWorkerPool : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string workerPoolName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{name}/workerPools/{workerPoolName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _appServiceEnvironmentsRestClient; private readonly WorkerPoolResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimits.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimits.cs index af5ef809860b..ec437e02ab7c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimits.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HybridConnectionLimits.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a HybridConnectionLimits along with the instance operations that can be performed on it. public partial class HybridConnectionLimits : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionPlanLimits/limit"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServicePlansRestOperations _appServicePlansRestClient; private readonly HybridConnectionLimitsData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironment.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironment.cs index ddaf7cb677d2..9e2b9f238c21 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironment.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/KubeEnvironment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a KubeEnvironment along with the instance operations that can be performed on it. public partial class KubeEnvironment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/kubeEnvironments/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly KubeEnvironmentsRestOperations _kubeEnvironmentsRestClient; private readonly KubeEnvironmentData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatus.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatus.cs index c43ec3bb9e4c..53f45aed6585 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatus.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/MigrateMySqlStatus.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a MigrateMySqlStatus along with the instance operations that can be performed on it. public partial class MigrateMySqlStatus : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/migratemysql/status"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly MigrateMySqlStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatures.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatures.cs index a321c0688d22..a853a02fd200 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatures.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/NetworkFeatures.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a NetworkFeatures along with the instance operations that can be performed on it. public partial class NetworkFeatures : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string view) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkFeatures/{view}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly NetworkFeaturesData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmHybridConnectionNamespaceRelay.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmHybridConnectionNamespaceRelay.cs index 983ce7d137b1..0db27c05f902 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmHybridConnectionNamespaceRelay.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmHybridConnectionNamespaceRelay.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a ServerfarmHybridConnectionNamespaceRelay along with the instance operations that can be performed on it. public partial class ServerfarmHybridConnectionNamespaceRelay : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServicePlansRestOperations _appServicePlansRestClient; private readonly HybridConnectionData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnection.cs index b0e340a88622..83c373a58a43 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a ServerfarmVirtualNetworkConnection along with the instance operations that can be performed on it. public partial class ServerfarmVirtualNetworkConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string vnetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServicePlansRestOperations _appServicePlansRestClient; private readonly VnetInfoResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnectionGateway.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnectionGateway.cs index 33ef8c99590b..28a2da2ae991 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnectionGateway.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ServerfarmVirtualNetworkConnectionGateway.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a ServerfarmVirtualNetworkConnectionGateway along with the instance operations that can be performed on it. public partial class ServerfarmVirtualNetworkConnectionGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/serverfarms/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly AppServicePlansRestOperations _appServicePlansRestClient; private readonly VnetGatewayData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackup.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackup.cs index addfb9113e63..4f4e507b825b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackup.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBackup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteBackup along with the instance operations that can be performed on it. public partial class SiteBackup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string backupId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/backups/{backupId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly BackupItemData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBasicPublishingCredentialsPolicyScm.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBasicPublishingCredentialsPolicyScm.cs index ad6fe0d41965..e9b44b7a83ea 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBasicPublishingCredentialsPolicyScm.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteBasicPublishingCredentialsPolicyScm.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteBasicPublishingCredentialsPolicyScm along with the instance operations that can be performed on it. public partial class SiteBasicPublishingCredentialsPolicyScm : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/basicPublishingCredentialsPolicies/scm"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly CsmPublishingCredentialsPoliciesEntityData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsetting.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsetting.cs index efbaca5d5109..f56dd359c1dc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsetting.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigAppsetting.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteConfigAppsetting along with the instance operations that can be performed on it. public partial class SiteConfigAppsetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string appSettingKey) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/appsettings/{appSettingKey}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ApiKeyVaultReferenceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigConnectionString.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigConnectionString.cs index 19ea1a9a6cc7..4d6b54b8d5d2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigConnectionString.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigConnectionString.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteConfigConnectionString along with the instance operations that can be performed on it. public partial class SiteConfigConnectionString : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string connectionStringKey) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/configreferences/connectionstrings/{connectionStringKey}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ApiKeyVaultReferenceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigLogs.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigLogs.cs index 875567723026..cc679d635d27 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigLogs.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigLogs.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteConfigLogs along with the instance operations that can be performed on it. public partial class SiteConfigLogs : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteLogsConfigData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshot.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshot.cs index fd024d227c9d..2803c7488310 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshot.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigSnapshot.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteConfigSnapshot along with the instance operations that can be performed on it. public partial class SiteConfigSnapshot : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string snapshotId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web/snapshots/{snapshotId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteConfigAutoGeneratedData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigWeb.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigWeb.cs index 279f2f3281b4..84f91764dc54 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigWeb.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigWeb.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteConfigWeb along with the instance operations that can be performed on it. public partial class SiteConfigWeb : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/web"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteConfigAutoGeneratedData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContinuousWebJob.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContinuousWebJob.cs index 286483a68e1c..aa93e6f41d5b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContinuousWebJob.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteContinuousWebJob.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteContinuousWebJob along with the instance operations that can be performed on it. public partial class SiteContinuousWebJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/continuouswebjobs/{webJobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ContinuousWebJobData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeployment.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeployment.cs index 87967b7c7c4f..c4e43937ed67 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeployment.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDeployment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteDeployment along with the instance operations that can be performed on it. public partial class SiteDeployment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string id) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/deployments/{id}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly DeploymentData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetector.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetector.cs index 8e450fd11d14..8909b7777657 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetector.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDetector.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteDetector along with the instance operations that can be performed on it. public partial class SiteDetector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string detectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/detectors/{detectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly AppServiceDetectorData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnostic.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnostic.cs index 6c6ee29c600c..8f316293fa71 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnostic.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnostic.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteDiagnostic along with the instance operations that can be performed on it. public partial class SiteDiagnostic : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly DiagnosticCategoryData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysis.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysis.cs index 26656cd932b7..8675f04226a3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysis.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticAnalysis.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteDiagnosticAnalysis along with the instance operations that can be performed on it. public partial class SiteDiagnosticAnalysis : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string analysisName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/analyses/{analysisName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly AnalysisDefinitionData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetector.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetector.cs index 218a160eff51..014b58356678 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetector.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDiagnosticDetector.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteDiagnosticDetector along with the instance operations that can be performed on it. public partial class SiteDiagnosticDetector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string diagnosticCategory, string detectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/diagnostics/{diagnosticCategory}/detectors/{detectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly DetectorDefinitionAutoGeneratedData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs index 5355c936d463..45079527cedb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteDomainOwnershipIdentifier.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteDomainOwnershipIdentifier along with the instance operations that can be performed on it. public partial class SiteDomainOwnershipIdentifier : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string domainOwnershipIdentifierName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly IdentifierData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtension.cs index 9c4c74006be7..20232e9a8810 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteExtension along with the instance operations that can be performed on it. public partial class SiteExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/extensions/MSDeploy"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly MSDeployStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunction.cs index 826a8bd21e90..ae78b3c41901 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteFunction.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteFunction along with the instance operations that can be performed on it. public partial class SiteFunction : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string functionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/functions/{functionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly FunctionEnvelopeData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBinding.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBinding.cs index 43d8609709d5..335e1bf939d5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBinding.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHostNameBinding.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteHostNameBinding along with the instance operations that can be performed on it. public partial class SiteHostNameBinding : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string hostName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hostNameBindings/{hostName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly HostNameBindingData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnection.cs index 2d1d2304c38b..5410de56893d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteHybridConnection along with the instance operations that can be performed on it. public partial class SiteHybridConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string entityName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridconnection/{entityName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly RelayServiceConnectionEntityData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs index 5b92b7f29c90..2959ace3e7e6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteHybridConnectionNamespaceRelay.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteHybridConnectionNamespaceRelay along with the instance operations that can be performed on it. public partial class SiteHybridConnectionNamespaceRelay : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string namespaceName, string relayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly HybridConnectionData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstance.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstance.cs index 72539c9d5433..d2d0ac0c8a92 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstance.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstance.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteInstance along with the instance operations that can be performed on it. public partial class SiteInstance : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string instanceId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly WebSiteInstanceStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtension.cs index 4ea66b5d73e7..9406bc2d2958 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteInstanceExtension along with the instance operations that can be performed on it. public partial class SiteInstanceExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string instanceId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/extensions/MSDeploy"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly MSDeployStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcess.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcess.cs index 4e53dc436df1..4cb6824213eb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcess.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcess.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteInstanceProcess along with the instance operations that can be performed on it. public partial class SiteInstanceProcess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModule.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModule.cs index d6432a606b64..d507a26425a5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModule.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteInstanceProcessModule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteInstanceProcessModule along with the instance operations that can be performed on it. public partial class SiteInstanceProcessModule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string instanceId, string processId, string baseAddress) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessModuleInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfig.cs index 380f9992e478..b1a8bb1d360d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteNetworkConfig.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteNetworkConfig along with the instance operations that can be performed on it. public partial class SiteNetworkConfig : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/networkConfig/virtualNetwork"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SwiftVirtualNetworkData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePremierAddon.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePremierAddon.cs index 5d07800473b7..e3b40bc8cf99 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePremierAddon.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePremierAddon.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SitePremierAddon along with the instance operations that can be performed on it. public partial class SitePremierAddon : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string premierAddOnName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/premieraddons/{premierAddOnName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly PremierAddOnData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateAccess.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateAccess.cs index 5510be9b3610..9c4509b09bcb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateAccess.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateAccess.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SitePrivateAccess along with the instance operations that can be performed on it. public partial class SitePrivateAccess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateAccess/virtualNetworks"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly PrivateAccessData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnection.cs index e290f5e409ec..ca16efb578f8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SitePrivateEndpointConnection along with the instance operations that can be performed on it. public partial class SitePrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly RemotePrivateEndpointConnectionARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcess.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcess.cs index 698e9ddb27a4..0008ef4b4c1a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcess.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcess.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteProcess along with the instance operations that can be performed on it. public partial class SiteProcess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string processId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModule.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModule.cs index 56be80552359..4489a7c2752b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModule.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteProcessModule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteProcessModule along with the instance operations that can be performed on it. public partial class SiteProcessModule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string processId, string baseAddress) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/processes/{processId}/modules/{baseAddress}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessModuleInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificate.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificate.cs index aafe500b4e04..9f65286f00e8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificate.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SitePublicCertificate.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SitePublicCertificate along with the instance operations that can be performed on it. public partial class SitePublicCertificate : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string publicCertificateName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/publicCertificates/{publicCertificateName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly PublicCertificateData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendation.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendation.cs index 98167c226971..78d2e446dfcb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendation.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteRecommendation.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteRecommendation along with the instance operations that can be performed on it. public partial class SiteRecommendation : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly RecommendationsRestOperations _recommendationsRestClient; private readonly RecommendationRuleData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteResourceHealthMetadata.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteResourceHealthMetadata.cs index 38743f570fca..85e61ceca211 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteResourceHealthMetadata.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteResourceHealthMetadata.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteResourceHealthMetadata along with the instance operations that can be performed on it. public partial class SiteResourceHealthMetadata : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/resourceHealthMetadata/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ResourceHealthMetadataRestOperations _resourceHealthMetadataRestClient; private readonly ResourceHealthMetadataData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSiteextension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSiteextension.cs index 0084e043c31a..cdbb3035a925 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSiteextension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSiteextension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSiteextension along with the instance operations that can be performed on it. public partial class SiteSiteextension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string siteExtensionId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteExtensionInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlot.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlot.cs index 02b27c85ca1b..967653eba924 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlot.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlot.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlot along with the instance operations that can be performed on it. public partial class SiteSlot : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly WebSiteData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackup.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackup.cs index fc44d329f69a..f689802dcefe 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackup.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBackup.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotBackup along with the instance operations that can be performed on it. public partial class SiteSlotBackup : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string backupId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/backups/{backupId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly BackupItemData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyFtp.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyFtp.cs index cda86f240f86..04cb95518948 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyFtp.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyFtp.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotBasicPublishingCredentialsPolicyFtp along with the instance operations that can be performed on it. public partial class SiteSlotBasicPublishingCredentialsPolicyFtp : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/ftp"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly CsmPublishingCredentialsPoliciesEntityData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyScm.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyScm.cs index 4c2c34d1a34d..8e790368d6a2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyScm.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotBasicPublishingCredentialsPolicyScm.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotBasicPublishingCredentialsPolicyScm along with the instance operations that can be performed on it. public partial class SiteSlotBasicPublishingCredentialsPolicyScm : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/basicPublishingCredentialsPolicies/scm"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly CsmPublishingCredentialsPoliciesEntityData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigAppSetting.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigAppSetting.cs index 2f75b10e8ac4..c755bf60dc65 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigAppSetting.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigAppSetting.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotConfigAppSetting along with the instance operations that can be performed on it. public partial class SiteSlotConfigAppSetting : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string appSettingKey) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/configreferences/appsettings/{appSettingKey}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ApiKeyVaultReferenceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigConnectionString.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigConnectionString.cs index 0d151368c1a7..84bf4a47de0f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigConnectionString.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigConnectionString.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotConfigConnectionString along with the instance operations that can be performed on it. public partial class SiteSlotConfigConnectionString : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string connectionStringKey) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/configreferences/connectionstrings/{connectionStringKey}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ApiKeyVaultReferenceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigLogs.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigLogs.cs index 10d305e42d57..146b82e25098 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigLogs.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigLogs.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotConfigLogs along with the instance operations that can be performed on it. public partial class SiteSlotConfigLogs : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/logs"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteLogsConfigData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshot.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshot.cs index fe6101ac52b6..70d60b711de9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshot.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigSnapshot.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotConfigSnapshot along with the instance operations that can be performed on it. public partial class SiteSlotConfigSnapshot : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string snapshotId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web/snapshots/{snapshotId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteConfigAutoGeneratedData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigWeb.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigWeb.cs index e9644e84f520..f0013da05c3e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigWeb.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotConfigWeb.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotConfigWeb along with the instance operations that can be performed on it. public partial class SiteSlotConfigWeb : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/config/web"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteConfigAutoGeneratedData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotContinuousWebJob.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotContinuousWebJob.cs index 3ff252f16f03..06885c39c193 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotContinuousWebJob.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotContinuousWebJob.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotContinuousWebJob along with the instance operations that can be performed on it. public partial class SiteSlotContinuousWebJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/continuouswebjobs/{webJobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ContinuousWebJobData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeployment.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeployment.cs index d3c7442831e3..7b54e87b8340 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeployment.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDeployment.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotDeployment along with the instance operations that can be performed on it. public partial class SiteSlotDeployment : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string id) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/deployments/{id}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly DeploymentData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetector.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetector.cs index 4250f5533f26..a11a982452ef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetector.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDetector.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotDetector along with the instance operations that can be performed on it. public partial class SiteSlotDetector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string slot, string detectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/detectors/{detectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly AppServiceDetectorData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnostic.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnostic.cs index 21e43d814d3e..7d4b94346f11 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnostic.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnostic.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotDiagnostic along with the instance operations that can be performed on it. public partial class SiteSlotDiagnostic : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly DiagnosticCategoryData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysis.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysis.cs index 790530291c29..75fc8e468e01 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysis.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticAnalysis.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotDiagnosticAnalysis along with the instance operations that can be performed on it. public partial class SiteSlotDiagnosticAnalysis : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string analysisName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/analyses/{analysisName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly AnalysisDefinitionData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetector.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetector.cs index 1bff16c01b5b..3636aa82715c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetector.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDiagnosticDetector.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotDiagnosticDetector along with the instance operations that can be performed on it. public partial class SiteSlotDiagnosticDetector : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string siteName, string slot, string diagnosticCategory, string detectorName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/slots/{slot}/diagnostics/{diagnosticCategory}/detectors/{detectorName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly DiagnosticsRestOperations _diagnosticsRestClient; private readonly DetectorDefinitionAutoGeneratedData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs index 92dd16db8f2e..363689926cda 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotDomainOwnershipIdentifier.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotDomainOwnershipIdentifier along with the instance operations that can be performed on it. public partial class SiteSlotDomainOwnershipIdentifier : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string domainOwnershipIdentifierName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/domainOwnershipIdentifiers/{domainOwnershipIdentifierName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly IdentifierData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtension.cs index 93276260ec6d..bc4ead136668 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotExtension along with the instance operations that can be performed on it. public partial class SiteSlotExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/extensions/MSDeploy"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly MSDeployStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunction.cs index 564fd93fed93..fcb44ece4654 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotFunction.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotFunction along with the instance operations that can be performed on it. public partial class SiteSlotFunction : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string functionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/functions/{functionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly FunctionEnvelopeData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBinding.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBinding.cs index de05c14a669e..d23be2ebce4c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBinding.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHostNameBinding.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotHostNameBinding along with the instance operations that can be performed on it. public partial class SiteSlotHostNameBinding : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string hostName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hostNameBindings/{hostName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly HostNameBindingData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs index dea023dc190b..6a5b11944ca0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridConnectionNamespaceRelay.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotHybridConnectionNamespaceRelay along with the instance operations that can be performed on it. public partial class SiteSlotHybridConnectionNamespaceRelay : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string namespaceName, string relayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridConnectionNamespaces/{namespaceName}/relays/{relayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly HybridConnectionData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridconnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridconnection.cs index ddddeb691d12..02352ac2dcf2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridconnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotHybridconnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotHybridconnection along with the instance operations that can be performed on it. public partial class SiteSlotHybridconnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string entityName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/hybridconnection/{entityName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly RelayServiceConnectionEntityData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstance.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstance.cs index 8dd0c7605a11..7ca4f55de822 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstance.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstance.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotInstance along with the instance operations that can be performed on it. public partial class SiteSlotInstance : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly WebSiteInstanceStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtension.cs index e8766bcccdf4..4329bfd64050 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceExtension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotInstanceExtension along with the instance operations that can be performed on it. public partial class SiteSlotInstanceExtension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/extensions/MSDeploy"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly MSDeployStatusData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcess.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcess.cs index 225fbc74c100..4a6f67f2c474 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcess.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcess.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotInstanceProcess along with the instance operations that can be performed on it. public partial class SiteSlotInstanceProcess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModule.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModule.cs index ae2589a7f78d..00c8b5d9d31d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModule.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotInstanceProcessModule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotInstanceProcessModule along with the instance operations that can be performed on it. public partial class SiteSlotInstanceProcessModule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string instanceId, string processId, string baseAddress) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/instances/{instanceId}/processes/{processId}/modules/{baseAddress}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessModuleInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfig.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfig.cs index ebca34cf937f..d2a51da3dbb7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfig.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotNetworkConfig.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotNetworkConfig along with the instance operations that can be performed on it. public partial class SiteSlotNetworkConfig : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/networkConfig/virtualNetwork"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SwiftVirtualNetworkData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPremierAddOn.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPremierAddOn.cs index aa17f69fb3ce..6ebe2b37f5da 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPremierAddOn.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPremierAddOn.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotPremierAddOn along with the instance operations that can be performed on it. public partial class SiteSlotPremierAddOn : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string premierAddOnName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/premieraddons/{premierAddOnName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly PremierAddOnData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateAccess.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateAccess.cs index 82a604a741e5..4e9e5034dfef 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateAccess.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateAccess.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotPrivateAccess along with the instance operations that can be performed on it. public partial class SiteSlotPrivateAccess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateAccess/virtualNetworks"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly PrivateAccessData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs index 0a0c9d223e16..954ba85596cb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotPrivateEndpointConnection along with the instance operations that can be performed on it. public partial class SiteSlotPrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly RemotePrivateEndpointConnectionARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcess.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcess.cs index dca375fe5022..afe4a72a044d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcess.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcess.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotProcess along with the instance operations that can be performed on it. public partial class SiteSlotProcess : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string processId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModule.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModule.cs index b02101dd0efe..de16f5d09581 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModule.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotProcessModule.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotProcessModule along with the instance operations that can be performed on it. public partial class SiteSlotProcessModule : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string processId, string baseAddress) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/processes/{processId}/modules/{baseAddress}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly ProcessModuleInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPublicCertificate.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPublicCertificate.cs index 9d86635b886c..f16a31d0304e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPublicCertificate.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotPublicCertificate.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotPublicCertificate along with the instance operations that can be performed on it. public partial class SiteSlotPublicCertificate : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string publicCertificateName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/publicCertificates/{publicCertificateName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly PublicCertificateData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotResourceHealthMetadata.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotResourceHealthMetadata.cs index 65c30baec7a7..0201a133cc75 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotResourceHealthMetadata.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotResourceHealthMetadata.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotResourceHealthMetadata along with the instance operations that can be performed on it. public partial class SiteSlotResourceHealthMetadata : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/resourceHealthMetadata/default"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly ResourceHealthMetadataRestOperations _resourceHealthMetadataRestClient; private readonly ResourceHealthMetadataData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteextension.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteextension.cs index fb03268b799e..e4b55e958ff9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteextension.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSiteextension.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotSiteextension along with the instance operations that can be performed on it. public partial class SiteSlotSiteextension : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string siteExtensionId) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/siteextensions/{siteExtensionId}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteExtensionInfoData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSourcecontrol.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSourcecontrol.cs index b1b9bc40d77f..32b86014ecbc 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSourcecontrol.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotSourcecontrol.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotSourcecontrol along with the instance operations that can be performed on it. public partial class SiteSlotSourcecontrol : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/sourcecontrols/web"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteSourceControlData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJob.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJob.cs index ea4732bb9ef6..dbe723c951d6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJob.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJob.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotTriggeredWebJob along with the instance operations that can be performed on it. public partial class SiteSlotTriggeredWebJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly TriggeredWebJobData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJobHistory.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJobHistory.cs index a787fac8aa5e..29aa9cb1a2cb 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJobHistory.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotTriggeredWebJobHistory.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotTriggeredWebJobHistory along with the instance operations that can be performed on it. public partial class SiteSlotTriggeredWebJobHistory : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string webJobName, string id) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/triggeredwebjobs/{webJobName}/history/{id}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly TriggeredJobHistoryData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs index 75b786be2169..acb493f336f2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotVirtualNetworkConnection along with the instance operations that can be performed on it. public partial class SiteSlotVirtualNetworkConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly VnetInfoResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs index 25e1f9a8f5ef..cacea9603e71 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotVirtualNetworkConnectionGateway.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotVirtualNetworkConnectionGateway along with the instance operations that can be performed on it. public partial class SiteSlotVirtualNetworkConnectionGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string vnetName, string gatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly VnetGatewayData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWebJob.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWebJob.cs index adfe4b5a3f75..29f70e7794e7 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWebJob.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSlotWebJob.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSlotWebJob along with the instance operations that can be performed on it. public partial class SiteSlotWebJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/webjobs/{webJobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly WebJobData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControl.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControl.cs index efeef8b6fd01..b613607af3a8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControl.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteSourceControl.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteSourceControl along with the instance operations that can be performed on it. public partial class SiteSourceControl : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/sourcecontrols/web"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SiteSourceControlData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredWebJobHistory.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredWebJobHistory.cs index de80a068fe39..cf0537a7eab6 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredWebJobHistory.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredWebJobHistory.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteTriggeredWebJobHistory along with the instance operations that can be performed on it. public partial class SiteTriggeredWebJobHistory : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName, string id) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}/history/{id}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly TriggeredJobHistoryData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredwebJob.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredwebJob.cs index f8557fa28808..f7e4193b94a1 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredwebJob.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteTriggeredwebJob.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteTriggeredwebJob along with the instance operations that can be performed on it. public partial class SiteTriggeredwebJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string slot, string webJobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}/triggeredwebjobs/{webJobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly TriggeredWebJobData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnection.cs index 71525414ebc7..47ab8dacd1c2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteVirtualNetworkConnection along with the instance operations that can be performed on it. public partial class SiteVirtualNetworkConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string vnetName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly VnetInfoResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs index 74b8ad25bc6d..3512578bc639 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteVirtualNetworkConnectionGateway.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteVirtualNetworkConnectionGateway along with the instance operations that can be performed on it. public partial class SiteVirtualNetworkConnectionGateway : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string vnetName, string gatewayName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/virtualNetworkConnections/{vnetName}/gateways/{gatewayName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly VnetGatewayData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWebJob.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWebJob.cs index ad603e7f25b6..699ae487d8c8 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWebJob.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteWebJob.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SiteWebJob along with the instance operations that can be performed on it. public partial class SiteWebJob : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string webJobName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/webjobs/{webJobName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly WebJobData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs index 829c45ae5f58..484b96df645f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SlotConfigNamesResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SlotConfigNamesResource along with the instance operations that can be performed on it. public partial class SlotConfigNamesResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/slotConfigNames"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly SlotConfigNamesResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SourceControl.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SourceControl.cs index 66c9c8803a8e..801f615d0244 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SourceControl.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SourceControl.cs @@ -21,6 +21,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a SourceControl along with the instance operations that can be performed on it. public partial class SourceControl : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string sourceControlType) + { + var resourceId = $"/providers/Microsoft.Web/sourcecontrols/{sourceControlType}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebSiteManagementRestOperations _restClient; private readonly SourceControlData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteARMResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteARMResource.cs index dc5b5d1f7d69..67d7c373194a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteARMResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteARMResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a StaticSiteARMResource along with the instance operations that can be performed on it. public partial class StaticSiteARMResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StaticSitesRestOperations _staticSitesRestClient; private readonly StaticSiteARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildARMResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildARMResource.cs index 9c1031658582..a9dac3494db9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildARMResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildARMResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a StaticSiteBuildARMResource along with the instance operations that can be performed on it. public partial class StaticSiteBuildARMResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string environmentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StaticSitesRestOperations _staticSitesRestClient; private readonly StaticSiteBuildARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs index 8b027fa4c130..bcad5ae95e05 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteBuildUserProvidedFunctionApp.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a StaticSiteBuildUserProvidedFunctionApp along with the instance operations that can be performed on it. public partial class StaticSiteBuildUserProvidedFunctionApp : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string environmentName, string functionAppName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/builds/{environmentName}/userProvidedFunctionApps/{functionAppName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StaticSitesRestOperations _staticSitesRestClient; private readonly StaticSiteUserProvidedFunctionAppARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewARMResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewARMResource.cs index 7c87cbe7f817..460fe0a54ac2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewARMResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteCustomDomainOverviewARMResource.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a StaticSiteCustomDomainOverviewARMResource along with the instance operations that can be performed on it. public partial class StaticSiteCustomDomainOverviewARMResource : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string domainName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/customDomains/{domainName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StaticSitesRestOperations _staticSitesRestClient; private readonly StaticSiteCustomDomainOverviewARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs index 5e8fd1f47132..5b52c2f65cc5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSitePrivateEndpointConnection.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a StaticSitePrivateEndpointConnection along with the instance operations that can be performed on it. public partial class StaticSitePrivateEndpointConnection : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string privateEndpointConnectionName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/privateEndpointConnections/{privateEndpointConnectionName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StaticSitesRestOperations _staticSitesRestClient; private readonly RemotePrivateEndpointConnectionARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs index 959b40260ade..a94bb4aa81f4 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/StaticSiteUserProvidedFunctionApp.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a StaticSiteUserProvidedFunctionApp along with the instance operations that can be performed on it. public partial class StaticSiteUserProvidedFunctionApp : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name, string functionAppName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/staticSites/{name}/userProvidedFunctionApps/{functionAppName}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly StaticSitesRestOperations _staticSitesRestClient; private readonly StaticSiteUserProvidedFunctionAppARMResourceData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomain.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomain.cs index 8ae2ced45a7c..6b5fb81cf02b 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomain.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/TopLevelDomain.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a TopLevelDomain along with the instance operations that can be performed on it. public partial class TopLevelDomain : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/providers/Microsoft.DomainRegistration/topLevelDomains/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly TopLevelDomainsRestOperations _topLevelDomainsRestClient; private readonly TopLevelDomainData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/User.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/User.cs index 2af641aa7243..15c1d79a6d4d 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/User.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/User.cs @@ -22,6 +22,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a User along with the instance operations that can be performed on it. public partial class User : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier() + { + var resourceId = $"/providers/Microsoft.Web/publishingUsers/web"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebSiteManagementRestOperations _restClient; private readonly UserData _data; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSite.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSite.cs index eacb72cd9cd8..2b11751b9ed9 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSite.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WebSite.cs @@ -23,6 +23,12 @@ namespace Azure.ResourceManager.AppService /// A Class representing a WebSite along with the instance operations that can be performed on it. public partial class WebSite : ArmResource { + /// Generate the resource identifier of a instance. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string name) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}"; + return new ResourceIdentifier(resourceId); + } private readonly ClientDiagnostics _clientDiagnostics; private readonly WebAppsRestOperations _webAppsRestClient; private readonly RecommendationsRestOperations _recommendationsRestClient;