From 75a41c246ff0f920280a6cf56e6232945cb38b90 Mon Sep 17 00:00:00 2001 From: Rodge Fu Date: Tue, 12 Sep 2023 19:34:23 +0800 Subject: [PATCH 1/8] update config --- .../Azure.ResourceManager.Hci/src/autorest.md | 2 +- .../src/autorest.md | 5 ++++- .../Azure.ResourceManager.Compute/src/autorest.md | 1 + .../src/autorest.md | 4 ++++ .../Azure.ResourceManager.CosmosDB/src/autorest.md | 3 +-- .../src/autorest.md | 4 ++++ .../src/autorest.md | 2 ++ .../src/autorest.md | 2 +- .../src/autorest.md | 2 +- .../src/autorest.md | 2 +- .../Azure.ResourceManager.IotHub/src/autorest.md | 6 +++--- .../Azure.ResourceManager.Monitor/src/autorest.md | 2 +- .../src/autorest.md | 2 +- .../src/autorest.md | 9 ++++----- .../src/autorest.md | 1 + .../src/autorest.md | 2 +- .../Azure.ResourceManager.Synapse/src/autorest.md | 13 +++++++++---- .../src/autorest.md | 7 +++---- 18 files changed, 43 insertions(+), 26 deletions(-) diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/autorest.md b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/autorest.md index 3494894a2a9a..4e3965c93826 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/autorest.md +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/autorest.md @@ -100,7 +100,7 @@ rename-mapping: Step: HciUpdateStep OfferCollection: HciOfferCollection OfferData: HciOfferData - + ClusterPatch.identity.type: ManagedServiceIdentityType directive: - from: swagger-document diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md index d734eab710e7..193b1c66f19b 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/autorest.md @@ -18,6 +18,9 @@ skip-csproj: true modelerfour: flatten-payloads: false +# mgmt-debug: +# show-serialized-names: true + list-exception: - /subscriptions/{subscriptionId}/providers/Microsoft.CognitiveServices/locations/{location}/resourceGroups/{resourceGroupName}/deletedAccounts/{accountName} @@ -92,7 +95,7 @@ prepend-rp-prefix: - AccountProperties - AccountSku - AccountSkuListResult - - IPRule + - IpRule - NetworkRuleAction - NetworkRuleSet - SkuCapability diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md index f8f12796ae75..e8a1403bc0e2 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md +++ b/sdk/compute/Azure.ResourceManager.Compute/src/autorest.md @@ -163,6 +163,7 @@ rename-mapping: DiskRestorePoint.properties.sourceResourceLocation: -|azure-location Encryption: DiskEncryption Encryption.diskEncryptionSetId: -|arm-id + Encryption.type: EncryptionType CreationData: DiskCreationData CreationData.storageAccountId: -|arm-id CreationData.sourceResourceId: -|arm-id diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/autorest.md b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/autorest.md index ee505f5d5954..6b92195d2b50 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/autorest.md +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/autorest.md @@ -19,6 +19,9 @@ skip-csproj: true modelerfour: flatten-payloads: false +# mgmt-debug: +# show-serialized-names: true + format-by-name-rules: 'tenantId': 'uuid' 'ETag': 'etag' @@ -212,6 +215,7 @@ rename-mapping: RegistryListResult: ContainerRegistryListResult RegistryUsageListResult: ContainerRegistryUsageListResult StepType: ContainerRegistryTaskStepType + TaskStepProperties.type: ContainerRegistryTaskStepType ImageUpdateTrigger.id: -|uuid SourceTriggerDescriptor.id: -|uuid EventContent.id: -|uuid diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/autorest.md b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/autorest.md index a44b1fc2a13e..9703f1ce489b 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/autorest.md +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/autorest.md @@ -305,7 +305,7 @@ rename-mapping: CheckNameAvailabilityResponse: CheckCosmosDBNameAvailabilityResponse CheckNameAvailabilityReason: CosmosDBNameUnavailableReason NodeGroupProperties.diskSizeGB: DiskSizeInGB - + IpAddressOrRange: CosmosDBIPAddressOrRange prepend-rp-prefix: - UniqueKey @@ -320,7 +320,6 @@ prepend-rp-prefix: - MetricAvailability - LocationProperties - LocationListResult -- IPAddressOrRange - DataType - IndexingPolicy - ExcludedPath diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md index 8741c679c3fc..10598e8ab84b 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/autorest.md @@ -23,6 +23,9 @@ skip-csproj: true modelerfour: flatten-payloads: false +# mgmt-debug: +# show-serialized-names: true + list-exception: - /providers/Microsoft.CostManagement/views/{viewName} - /{scope}/providers/Microsoft.CostManagement/costDetailsOperationResults/{operationId} @@ -123,6 +126,7 @@ rename-mapping: CheckNameAvailabilityReason: CostManagementUnavailabilityReason BenefitUtilizationSummariesRequest: BenefitUtilizationSummariesContent GrainParameter: GrainContent + AlertPropertiesDefinition.type: AlertType directive: # [Error][Linked: https://github.com/Azure/autorest.csharp/issues/3288] Found more than 1 candidate for XX diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md index c1b6733dae5d..43e391a961b1 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/autorest.md @@ -144,6 +144,7 @@ rename-mapping: GlobalParameterListResponse: DataFactoryGlobalParameterListResult GlobalParameterResource: DataFactoryGlobalParameter GlobalParameterSpecification: DataFactoryGlobalParameterProperties + GlobalParameterSpecification.type: GlobalParameterType HDInsightActivityDebugInfoOption: HDInsightActivityDebugInfoOptionSetting HDInsightOnDemandLinkedService.typeProperties.timeToLive: TimeToLiveExpression HttpSource: DataFactoryHttpFileSource @@ -209,6 +210,7 @@ rename-mapping: QueryDataFlowDebugSessionsResponse: DataFlowDebugSessionInfoListResult ScriptActivityParameterType.Timespan: TimeSpan ScriptActivityTypePropertiesLogSettings: ScriptActivityTypeLogSettings + ScriptActivityScriptBlock.type: ScriptType SecretBase: DataFactorySecret SecureInputOutputPolicy.secureInput: IsSecureInputEnabled SecureInputOutputPolicy.secureOutput: IsSecureOutputEnabled diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md index 824b8d178b36..c73a9c7a37f2 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/autorest.md @@ -71,7 +71,7 @@ prepend-rp-prefix: - StorageAccountInformation - StorageAccountInformationListResult - FirewallState - - FirewallAllowAzureIPsState + - FirewallAllowAzureIpsState - CapabilityInformation - HiveMetastore - SasTokenInformation diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md index c7e1cc0dd784..0e191f158752 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/autorest.md @@ -74,7 +74,7 @@ prepend-rp-prefix: - VirtualNetworkRuleListResult - CapabilityInformation - FirewallState - - FirewallAllowAzureIPsState + - FirewallAllowAzureIpsState - EncryptionProvisioningState - EncryptionState - FirewallRuleListResult diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/autorest.md b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/autorest.md index e5ae822fe02a..92425eebd8b6 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/autorest.md +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/autorest.md @@ -41,7 +41,7 @@ prepend-rp-prefix: - AppTemplate - AppTemplatesResult - NetworkAction - - NetworkRuleSetIPRule + - NetworkRuleSetIpRule - NetworkRuleSets - ProvisioningState - PublicNetworkAccess diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/autorest.md b/sdk/iothub/Azure.ResourceManager.IotHub/src/autorest.md index acde749d64c4..60a4859f7ad9 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/autorest.md +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/autorest.md @@ -87,8 +87,8 @@ prepend-rp-prefix: - PublicNetworkAccess - UserSubscriptionQuota - UserSubscriptionQuotaListResult - - IPFilterRule - - IPFilterActionType + - IpFilterRule + - IpFilterActionType - RoutingSource - JobStatus - JobType @@ -99,7 +99,7 @@ prepend-rp-prefix: - RegistryStatistics - MatchedRoute - NetworkRuleSetProperties - - NetworkRuleSetIPRule + - NetworkRuleSetIpRule - NetworkRuleIPAction - RoutingProperties - StorageEndpointProperties diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md b/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md index a49770db3bd5..4f7f8f651417 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md @@ -69,7 +69,7 @@ prepend-rp-prefix: - Action - Recurrence - Response -- OdataType +- Odatatype - Metric - Incident - Enabled diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md index 697fa6fd3287..b13138191457 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/autorest.md @@ -122,7 +122,7 @@ prepend-rp-prefix: - L3Network - NetworkInterface - Nic - - OSDisk + - OsDisk - Rack - RackDefinition - RackSku diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md index 3082eac3e16b..32119017bf5a 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/autorest.md @@ -45,7 +45,6 @@ prepend-rp-prefix: - MetricsContent - MetricsStatusContent - MetricsStatusResult -- MonitoredResourceListResult - MonitoringStatus - OrganizationInfo - OrgCreationSource @@ -62,9 +61,9 @@ prepend-rp-prefix: - TagRule - UsageType - UserInfo -- VmExtensionPayload -- VmHostsListResponse -- VmInfo +- VMExtensionPayload +- VMHostsListResponse +- VMInfo acronym-mapping: CPU: Cpu @@ -118,7 +117,7 @@ rename-mapping: MetricsStatusResponse: NewRelicMetricsStatusResult MonitoredResource: NewRelicResourceMonitorResult MonitoredResource.id: -|arm-id - MonitoredResourceListResponse: MonitoredResourceListResult + MonitoredResourceListResponse: NewRelicObservabilityMonitoredResourceListResult MonitoringStatus.Disabled: IsDisabled MonitoringStatus.Enabled: IsEnabled NewrelicAgentData.LocalIPAddress: -|ip-address diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/autorest.md b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/autorest.md index 396510a86b04..96e852ed37d1 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/autorest.md +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/autorest.md @@ -66,6 +66,7 @@ rename-mapping: ResourceTypeRegistrationProperties.enableAsyncOperation: IsAsyncOperationEnabled ResourceTypeRegistrationProperties.enableThirdPartyS2S: IsThirdPartyS2SEnabled TemplateDeploymentOptions.preflightSupported: IsPreflightSupported + SkuLocationInfo.type: ExtendedLocationType prepend-rp-prefix: - ExtendedLocationOptions diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md index 3610e490537d..cfe499e4f1ad 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/autorest.md @@ -30,7 +30,7 @@ rename-mapping: MonitoringSettings: VaultMonitoringSettings MonitoringSummary: VaultMonitoringSummary NameInfo: VaultUsageNameInfo - ProvisioningState: PrivateEndpointConnectionProvisioningState + ProvisioningState: RecoveryServicesPrivateEndpointConnectionProvisioningState PublicNetworkAccess: VaultPublicNetworkAccess ReplicationUsageList: ReplicationUsageListResult TriggerType: VaultUpgradeTriggerType diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md b/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md index 06279e86bcf7..b3e8ec0e7821 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md @@ -26,6 +26,9 @@ modelerfour: flatten-payloads: false lenient-model-deduplication: true # Mitigate the duplication schema 'ErrorResponse' issue +# mgmt-debug: +# show-serialized-names: true + rename-mapping: AzureADOnlyAuthentication: SynapseAadOnlyAuthentication AzureADOnlyAuthenticationListResult: SynapseAadOnlyAuthenticationListResult @@ -179,6 +182,8 @@ rename-mapping: KustoPoolUpdate.properties.workspaceUID: WorkspaceUid|uuid PrivateLinkResources: SynapseKustoPoolPrivateLinkList KustoPoolPrivateLinkResources: SynapseKustoPoolPrivateLinkData + IntegrationRuntimeStatus.type: RuntimeType + EntityReference.type: IntegrationRuntimeEntityReferenceType prepend-rp-prefix: - AttachedDatabaseConfiguration @@ -203,7 +208,7 @@ prepend-rp-prefix: - ExtendedSqlPoolBlobAuditingPolicyListResult - GeoBackupPolicy - GeoBackupPolicyListResult - - IPFirewallRuleInfo + - IpFirewallRuleInfo - Key - KustoPool - MaintenanceWindows @@ -289,7 +294,7 @@ prepend-rp-prefix: - IntegrationRuntimeEntityReferenceType - IntegrationRuntimeInternalChannelEncryptionMode - IntegrationRuntimeLicenseType - - IntegrationRuntimeNodeIPAddress + - IntegrationRuntimeNodeIpAddress - IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint - IntegrationRuntimeOutboundNetworkDependenciesEndpoint - IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails @@ -302,8 +307,8 @@ prepend-rp-prefix: - IntegrationRuntimeUpdateResult - IotHubDataConnection - IotHubDataFormat - - IPFirewallRuleInfoListResult - - IPFirewallRuleProperties + - IpFirewallRuleInfoListResult + - IpFirewallRuleProperties - LanguageExtension - LanguageExtensionName - LanguageExtensionsList diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md index 421aaa55830a..6ca4e69aaae5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md +++ b/sdk/websites/Azure.ResourceManager.AppService/src/autorest.md @@ -379,7 +379,7 @@ rename-mapping: StaticSiteUserProvidedFunctionApp: StaticSiteUserProvidedFunctionAppProperties # just rename this to avoid collision, this class will be automatically removed StaticSiteCustomDomainRequestPropertiesARMResource: StaticSiteCustomDomainContent User: PublishingUser - WorkerPoolResource: WorkerPool + WorkerPoolResource: AppServiceWorkerPool CsmPublishingProfileOptions: CsmPublishingProfile StaticSiteTemplateOptions: StaticSiteTemplate PrivateLinkResource: AppServicePrivateLinkResourceData @@ -598,10 +598,9 @@ prepend-rp-prefix: - UsageState - CorsSettings - SourceControl - - WorkerPool - ForwardProxy - - IPSecurityRestriction - - IPFilterTag + - IpSecurityRestriction + - IpFilterTag - VirtualNetworkProfile models-to-treat-empty-string-as-null: From 9dc2f2278da79a22e5cad0887bccd86857f97ac6 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 07:29:23 +0000 Subject: [PATCH 2/8] Update Generator Version 3.0.0-alpha.20230913.1 --- eng/Packages.Data.props | 2 +- eng/emitter-package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 377663597db0..49e5e94c0afd 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -174,7 +174,7 @@ All should have PrivateAssets="All" set so they don't become package dependencies --> - + diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 76eb3ac20398..527bb3baf7f3 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,6 +1,6 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-csharp": "0.2.0-beta.20230912.3" + "@azure-tools/typespec-csharp": "0.2.0-alpha.20230913.1" } } From 23b24569689afb1271ca5ac3c4b1593c4e679045 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 07:39:33 +0000 Subject: [PATCH 3/8] Update SDK codes --- ...IotCentralNetworkRuleSets.Serialization.cs | 6 ++-- .../Models/IotCentralNetworkRuleSets.cs | 6 ++-- ... => NetworkRuleSetIPRule.Serialization.cs} | 6 ++-- ...leSetIPRule.cs => NetworkRuleSetIPRule.cs} | 10 +++---- .../Sample_IotHubDescriptionCollection.cs | 8 +++--- .../src/Generated/ArmIotHubModelFactory.cs | 4 +-- .../IPFilterActionType.Serialization.cs | 28 +++++++++++++++++++ ...terActionType.cs => IPFilterActionType.cs} | 2 +- ...ation.cs => IPFilterRule.Serialization.cs} | 10 +++---- ...{IotHubIPFilterRule.cs => IPFilterRule.cs} | 8 +++--- .../{IotHubIPVersion.cs => IPVersion.cs} | 28 +++++++++---------- .../IotHubIPFilterActionType.Serialization.cs | 28 ------------------- ...bNetworkRuleSetProperties.Serialization.cs | 6 ++-- .../Models/IotHubNetworkRuleSetProperties.cs | 6 ++-- .../Models/IotHubProperties.Serialization.cs | 10 +++---- .../src/Generated/Models/IotHubProperties.cs | 8 +++--- ... => NetworkRuleSetIPRule.Serialization.cs} | 6 ++-- ...leSetIPRule.cs => NetworkRuleSetIPRule.cs} | 10 +++---- 18 files changed, 95 insertions(+), 95 deletions(-) rename sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/{IotCentralNetworkRuleSetIPRule.Serialization.cs => NetworkRuleSetIPRule.Serialization.cs} (83%) rename sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/{IotCentralNetworkRuleSetIPRule.cs => NetworkRuleSetIPRule.cs} (67%) create mode 100644 sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.Serialization.cs rename sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/{IotHubIPFilterActionType.cs => IPFilterActionType.cs} (90%) rename sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/{IotHubIPFilterRule.Serialization.cs => IPFilterRule.Serialization.cs} (80%) rename sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/{IotHubIPFilterRule.cs => IPFilterRule.cs} (82%) rename sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/{IotHubIPVersion.cs => IPVersion.cs} (50%) delete mode 100644 sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs rename sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/{IotHubNetworkRuleSetIPRule.Serialization.cs => NetworkRuleSetIPRule.Serialization.cs} (86%) rename sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/{IotHubNetworkRuleSetIPRule.cs => NetworkRuleSetIPRule.cs} (79%) diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.Serialization.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.Serialization.cs index 52056c3d2a46..70b6d94410e7 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.Serialization.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.Serialization.cs @@ -53,7 +53,7 @@ internal static IotCentralNetworkRuleSets DeserializeIotCentralNetworkRuleSets(J Optional applyToDevices = default; Optional applyToIoTCentral = default; Optional defaultAction = default; - Optional> ipRules = default; + Optional> ipRules = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("applyToDevices"u8)) @@ -89,10 +89,10 @@ internal static IotCentralNetworkRuleSets DeserializeIotCentralNetworkRuleSets(J { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(IotCentralNetworkRuleSetIPRule.DeserializeIotCentralNetworkRuleSetIPRule(item)); + array.Add(NetworkRuleSetIPRule.DeserializeNetworkRuleSetIPRule(item)); } ipRules = array; continue; diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs index 2bbabd88a23f..ecb03409183d 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSets.cs @@ -16,7 +16,7 @@ public partial class IotCentralNetworkRuleSets /// Initializes a new instance of IotCentralNetworkRuleSets. public IotCentralNetworkRuleSets() { - IPRules = new ChangeTrackingList(); + IPRules = new ChangeTrackingList(); } /// Initializes a new instance of IotCentralNetworkRuleSets. @@ -24,7 +24,7 @@ public IotCentralNetworkRuleSets() /// Whether these rules apply for connectivity via IoT Central web portal and APIs. /// The default network action to apply. /// List of IP rules. - internal IotCentralNetworkRuleSets(bool? applyToDevices, bool? applyToIotCentral, IotCentralNetworkAction? defaultAction, IList ipRules) + internal IotCentralNetworkRuleSets(bool? applyToDevices, bool? applyToIotCentral, IotCentralNetworkAction? defaultAction, IList ipRules) { ApplyToDevices = applyToDevices; ApplyToIotCentral = applyToIotCentral; @@ -39,6 +39,6 @@ internal IotCentralNetworkRuleSets(bool? applyToDevices, bool? applyToIotCentral /// The default network action to apply. public IotCentralNetworkAction? DefaultAction { get; set; } /// List of IP rules. - public IList IPRules { get; } + public IList IPRules { get; } } } diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSetIPRule.Serialization.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/NetworkRuleSetIPRule.Serialization.cs similarity index 83% rename from sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSetIPRule.Serialization.cs rename to sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/NetworkRuleSetIPRule.Serialization.cs index d7254041dabe..6ee91c8f3c6c 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSetIPRule.Serialization.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/NetworkRuleSetIPRule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.IotCentral.Models { - public partial class IotCentralNetworkRuleSetIPRule : IUtf8JsonSerializable + public partial class NetworkRuleSetIPRule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IotCentralNetworkRuleSetIPRule DeserializeIotCentralNetworkRuleSetIPRule(JsonElement element) + internal static NetworkRuleSetIPRule DeserializeNetworkRuleSetIPRule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -49,7 +49,7 @@ internal static IotCentralNetworkRuleSetIPRule DeserializeIotCentralNetworkRuleS continue; } } - return new IotCentralNetworkRuleSetIPRule(filterName.Value, ipMask.Value); + return new NetworkRuleSetIPRule(filterName.Value, ipMask.Value); } } } diff --git a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSetIPRule.cs b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/NetworkRuleSetIPRule.cs similarity index 67% rename from sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSetIPRule.cs rename to sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/NetworkRuleSetIPRule.cs index 791982401cb3..0ae15e4cb3af 100644 --- a/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/IotCentralNetworkRuleSetIPRule.cs +++ b/sdk/iotcentral/Azure.ResourceManager.IotCentral/src/Generated/Models/NetworkRuleSetIPRule.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.IotCentral.Models { /// An object for an IP range that will be allowed access. - public partial class IotCentralNetworkRuleSetIPRule + public partial class NetworkRuleSetIPRule { - /// Initializes a new instance of IotCentralNetworkRuleSetIPRule. - public IotCentralNetworkRuleSetIPRule() + /// Initializes a new instance of NetworkRuleSetIPRule. + public NetworkRuleSetIPRule() { } - /// Initializes a new instance of IotCentralNetworkRuleSetIPRule. + /// Initializes a new instance of NetworkRuleSetIPRule. /// The readable name of the IP rule. /// The CIDR block defining the IP range. - internal IotCentralNetworkRuleSetIPRule(string filterName, string ipMask) + internal NetworkRuleSetIPRule(string filterName, string ipMask) { FilterName = filterName; IPMask = ipMask; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs b/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs index 4f33254662e8..614d7d8f0efb 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/samples/Generated/Samples/Sample_IotHubDescriptionCollection.cs @@ -120,12 +120,12 @@ public async Task CreateOrUpdate_IotHubResourceCreateOrUpdate() IPFilterRules = { }, - NetworkRuleSets = new IotHubNetworkRuleSetProperties(true, new IotHubNetworkRuleSetIPRule[] + NetworkRuleSets = new IotHubNetworkRuleSetProperties(true, new NetworkRuleSetIPRule[] { -new IotHubNetworkRuleSetIPRule("rule1","131.117.159.53") +new NetworkRuleSetIPRule("rule1","131.117.159.53") { Action = IotHubNetworkRuleIPAction.Allow, -},new IotHubNetworkRuleSetIPRule("rule2","157.55.59.128/25") +},new NetworkRuleSetIPRule("rule2","157.55.59.128/25") { Action = IotHubNetworkRuleIPAction.Allow, } @@ -205,7 +205,7 @@ public async Task CreateOrUpdate_IotHubResourceCreateOrUpdate() { IsRootCertificateV2Enabled = true, }, - IPVersion = IotHubIPVersion.IPv4IPv6, + IPVersion = IPVersion.IPv4IPv6, }, Tags = { diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/ArmIotHubModelFactory.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/ArmIotHubModelFactory.cs index 4a7c09f0a260..21c5230c0bf8 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/ArmIotHubModelFactory.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/ArmIotHubModelFactory.cs @@ -67,11 +67,11 @@ public static IotHubDescriptionData IotHubDescriptionData(ResourceIdentifier id /// This property store root certificate related information. /// This property specifies the IP Version the hub is currently utilizing. /// A new instance for mocking. - public static IotHubProperties IotHubProperties(IEnumerable authorizationPolicies = null, bool? disableLocalAuth = null, bool? disableDeviceSas = null, bool? disableModuleSas = null, bool? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdns = null, IotHubPublicNetworkAccess? publicNetworkAccess = null, IEnumerable ipFilterRules = null, IotHubNetworkRuleSetProperties networkRuleSets = null, string minTlsVersion = null, IEnumerable privateEndpointConnections = null, string provisioningState = null, string state = null, string hostName = null, IDictionary eventHubEndpoints = null, IotHubRoutingProperties routing = null, IDictionary storageEndpoints = null, IDictionary messagingEndpoints = null, bool? enableFileUploadNotifications = null, CloudToDeviceProperties cloudToDevice = null, string comments = null, IEnumerable deviceStreamsStreamingEndpoints = null, IotHubCapability? features = null, EncryptionPropertiesDescription encryption = null, IEnumerable locations = null, bool? enableDataResidency = null, RootCertificateProperties rootCertificate = null, IotHubIPVersion? ipVersion = null) + public static IotHubProperties IotHubProperties(IEnumerable authorizationPolicies = null, bool? disableLocalAuth = null, bool? disableDeviceSas = null, bool? disableModuleSas = null, bool? restrictOutboundNetworkAccess = null, IEnumerable allowedFqdns = null, IotHubPublicNetworkAccess? publicNetworkAccess = null, IEnumerable ipFilterRules = null, IotHubNetworkRuleSetProperties networkRuleSets = null, string minTlsVersion = null, IEnumerable privateEndpointConnections = null, string provisioningState = null, string state = null, string hostName = null, IDictionary eventHubEndpoints = null, IotHubRoutingProperties routing = null, IDictionary storageEndpoints = null, IDictionary messagingEndpoints = null, bool? enableFileUploadNotifications = null, CloudToDeviceProperties cloudToDevice = null, string comments = null, IEnumerable deviceStreamsStreamingEndpoints = null, IotHubCapability? features = null, EncryptionPropertiesDescription encryption = null, IEnumerable locations = null, bool? enableDataResidency = null, RootCertificateProperties rootCertificate = null, IPVersion? ipVersion = null) { authorizationPolicies ??= new List(); allowedFqdns ??= new List(); - ipFilterRules ??= new List(); + ipFilterRules ??= new List(); privateEndpointConnections ??= new List(); eventHubEndpoints ??= new Dictionary(); storageEndpoints ??= new Dictionary(); diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.Serialization.cs new file mode 100644 index 000000000000..334faba379cc --- /dev/null +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.IotHub.Models +{ + internal static partial class IPFilterActionTypeExtensions + { + public static string ToSerialString(this IPFilterActionType value) => value switch + { + IPFilterActionType.Accept => "Accept", + IPFilterActionType.Reject => "Reject", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IPFilterActionType value.") + }; + + public static IPFilterActionType ToIPFilterActionType(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accept")) return IPFilterActionType.Accept; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reject")) return IPFilterActionType.Reject; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IPFilterActionType value."); + } + } +} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.cs similarity index 90% rename from sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.cs rename to sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.cs index e88272a42ceb..1222a9d26c04 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterActionType.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.IotHub.Models { /// The desired action for requests captured by this rule. - public enum IotHubIPFilterActionType + public enum IPFilterActionType { /// Accept. Accept, diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterRule.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterRule.Serialization.cs similarity index 80% rename from sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterRule.Serialization.cs rename to sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterRule.Serialization.cs index 8174139cc323..ad6139ac07b7 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterRule.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterRule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.IotHub.Models { - public partial class IotHubIPFilterRule : IUtf8JsonSerializable + public partial class IPFilterRule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -24,14 +24,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IotHubIPFilterRule DeserializeIotHubIPFilterRule(JsonElement element) + internal static IPFilterRule DeserializeIPFilterRule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } string filterName = default; - IotHubIPFilterActionType action = default; + IPFilterActionType action = default; string ipMask = default; foreach (var property in element.EnumerateObject()) { @@ -42,7 +42,7 @@ internal static IotHubIPFilterRule DeserializeIotHubIPFilterRule(JsonElement ele } if (property.NameEquals("action"u8)) { - action = property.Value.GetString().ToIotHubIPFilterActionType(); + action = property.Value.GetString().ToIPFilterActionType(); continue; } if (property.NameEquals("ipMask"u8)) @@ -51,7 +51,7 @@ internal static IotHubIPFilterRule DeserializeIotHubIPFilterRule(JsonElement ele continue; } } - return new IotHubIPFilterRule(filterName, action, ipMask); + return new IPFilterRule(filterName, action, ipMask); } } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterRule.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterRule.cs similarity index 82% rename from sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterRule.cs rename to sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterRule.cs index 38fae7cb77fd..5ab731043f6a 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterRule.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPFilterRule.cs @@ -11,14 +11,14 @@ namespace Azure.ResourceManager.IotHub.Models { /// The IP filter rules for the IoT hub. - public partial class IotHubIPFilterRule + public partial class IPFilterRule { - /// Initializes a new instance of IotHubIPFilterRule. + /// Initializes a new instance of IPFilterRule. /// The name of the IP filter rule. /// The desired action for requests captured by this rule. /// A string that contains the IP address range in CIDR notation for the rule. /// or is null. - public IotHubIPFilterRule(string filterName, IotHubIPFilterActionType action, string ipMask) + public IPFilterRule(string filterName, IPFilterActionType action, string ipMask) { Argument.AssertNotNull(filterName, nameof(filterName)); Argument.AssertNotNull(ipMask, nameof(ipMask)); @@ -31,7 +31,7 @@ public IotHubIPFilterRule(string filterName, IotHubIPFilterActionType action, st /// The name of the IP filter rule. public string FilterName { get; set; } /// The desired action for requests captured by this rule. - public IotHubIPFilterActionType Action { get; set; } + public IPFilterActionType Action { get; set; } /// A string that contains the IP address range in CIDR notation for the rule. public string IPMask { get; set; } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPVersion.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPVersion.cs similarity index 50% rename from sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPVersion.cs rename to sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPVersion.cs index 37595fc63797..07d953342467 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPVersion.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IPVersion.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.IotHub.Models { /// This property specifies the IP Version the hub is currently utilizing. - public readonly partial struct IotHubIPVersion : IEquatable + public readonly partial struct IPVersion : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public IotHubIPVersion(string value) + public IPVersion(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -27,23 +27,23 @@ public IotHubIPVersion(string value) private const string IPv4IPv6Value = "ipv4ipv6"; /// ipv4. - public static IotHubIPVersion IPv4 { get; } = new IotHubIPVersion(IPv4Value); + public static IPVersion IPv4 { get; } = new IPVersion(IPv4Value); /// ipv6. - public static IotHubIPVersion IPv6 { get; } = new IotHubIPVersion(IPv6Value); + public static IPVersion IPv6 { get; } = new IPVersion(IPv6Value); /// ipv4ipv6. - public static IotHubIPVersion IPv4IPv6 { get; } = new IotHubIPVersion(IPv4IPv6Value); - /// Determines if two values are the same. - public static bool operator ==(IotHubIPVersion left, IotHubIPVersion right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(IotHubIPVersion left, IotHubIPVersion right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator IotHubIPVersion(string value) => new IotHubIPVersion(value); + public static IPVersion IPv4IPv6 { get; } = new IPVersion(IPv4IPv6Value); + /// Determines if two values are the same. + public static bool operator ==(IPVersion left, IPVersion right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IPVersion left, IPVersion right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IPVersion(string value) => new IPVersion(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is IotHubIPVersion other && Equals(other); + public override bool Equals(object obj) => obj is IPVersion other && Equals(other); /// - public bool Equals(IotHubIPVersion other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(IPVersion other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs deleted file mode 100644 index dfd800f7f253..000000000000 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubIPFilterActionType.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.IotHub.Models -{ - internal static partial class IotHubIPFilterActionTypeExtensions - { - public static string ToSerialString(this IotHubIPFilterActionType value) => value switch - { - IotHubIPFilterActionType.Accept => "Accept", - IotHubIPFilterActionType.Reject => "Reject", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubIPFilterActionType value.") - }; - - public static IotHubIPFilterActionType ToIotHubIPFilterActionType(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Accept")) return IotHubIPFilterActionType.Accept; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Reject")) return IotHubIPFilterActionType.Reject; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown IotHubIPFilterActionType value."); - } - } -} diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.Serialization.cs index 1a08781b0444..d9d20098f585 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.Serialization.cs @@ -41,7 +41,7 @@ internal static IotHubNetworkRuleSetProperties DeserializeIotHubNetworkRuleSetPr } Optional defaultAction = default; bool applyToBuiltInEventHubEndpoint = default; - IList ipRules = default; + IList ipRules = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("defaultAction"u8)) @@ -60,10 +60,10 @@ internal static IotHubNetworkRuleSetProperties DeserializeIotHubNetworkRuleSetPr } if (property.NameEquals("ipRules"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(IotHubNetworkRuleSetIPRule.DeserializeIotHubNetworkRuleSetIPRule(item)); + array.Add(NetworkRuleSetIPRule.DeserializeNetworkRuleSetIPRule(item)); } ipRules = array; continue; diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.cs index 7355f5c7326b..c230b7a15a02 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetProperties.cs @@ -19,7 +19,7 @@ public partial class IotHubNetworkRuleSetProperties /// If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub. /// List of IP Rules. /// is null. - public IotHubNetworkRuleSetProperties(bool applyToBuiltInEventHubEndpoint, IEnumerable ipRules) + public IotHubNetworkRuleSetProperties(bool applyToBuiltInEventHubEndpoint, IEnumerable ipRules) { Argument.AssertNotNull(ipRules, nameof(ipRules)); @@ -31,7 +31,7 @@ public IotHubNetworkRuleSetProperties(bool applyToBuiltInEventHubEndpoint, IEnum /// Default Action for Network Rule Set. /// If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub. /// List of IP Rules. - internal IotHubNetworkRuleSetProperties(IotHubNetworkRuleSetDefaultAction? defaultAction, bool applyToBuiltInEventHubEndpoint, IList ipRules) + internal IotHubNetworkRuleSetProperties(IotHubNetworkRuleSetDefaultAction? defaultAction, bool applyToBuiltInEventHubEndpoint, IList ipRules) { DefaultAction = defaultAction; ApplyToBuiltInEventHubEndpoint = applyToBuiltInEventHubEndpoint; @@ -43,6 +43,6 @@ internal IotHubNetworkRuleSetProperties(IotHubNetworkRuleSetDefaultAction? defau /// If True, then Network Rule Set is also applied to BuiltIn EventHub EndPoint of IotHub. public bool ApplyToBuiltInEventHubEndpoint { get; set; } /// List of IP Rules. - public IList IPRules { get; } + public IList IPRules { get; } } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.Serialization.cs index 79735a26467f..f29e2bd23100 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.Serialization.cs @@ -191,7 +191,7 @@ internal static IotHubProperties DeserializeIotHubProperties(JsonElement element Optional restrictOutboundNetworkAccess = default; Optional> allowedFqdnList = default; Optional publicNetworkAccess = default; - Optional> ipFilterRules = default; + Optional> ipFilterRules = default; Optional networkRuleSets = default; Optional minTlsVersion = default; Optional> privateEndpointConnections = default; @@ -211,7 +211,7 @@ internal static IotHubProperties DeserializeIotHubProperties(JsonElement element Optional> locations = default; Optional enableDataResidency = default; Optional rootCertificate = default; - Optional ipVersion = default; + Optional ipVersion = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("authorizationPolicies"u8)) @@ -293,10 +293,10 @@ internal static IotHubProperties DeserializeIotHubProperties(JsonElement element { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(IotHubIPFilterRule.DeserializeIotHubIPFilterRule(item)); + array.Add(IPFilterRule.DeserializeIPFilterRule(item)); } ipFilterRules = array; continue; @@ -483,7 +483,7 @@ internal static IotHubProperties DeserializeIotHubProperties(JsonElement element { continue; } - ipVersion = new IotHubIPVersion(property.Value.GetString()); + ipVersion = new IPVersion(property.Value.GetString()); continue; } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.cs index 3eb2402057fe..50f41997d29d 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubProperties.cs @@ -19,7 +19,7 @@ public IotHubProperties() { AuthorizationPolicies = new ChangeTrackingList(); AllowedFqdns = new ChangeTrackingList(); - IPFilterRules = new ChangeTrackingList(); + IPFilterRules = new ChangeTrackingList(); PrivateEndpointConnections = new ChangeTrackingList(); EventHubEndpoints = new ChangeTrackingDictionary(); StorageEndpoints = new ChangeTrackingDictionary(); @@ -56,7 +56,7 @@ public IotHubProperties() /// This property when set to true, will enable data residency, thus, disabling disaster recovery. /// This property store root certificate related information. /// This property specifies the IP Version the hub is currently utilizing. - internal IotHubProperties(IList authorizationPolicies, bool? disableLocalAuth, bool? disableDeviceSas, bool? disableModuleSas, bool? restrictOutboundNetworkAccess, IList allowedFqdns, IotHubPublicNetworkAccess? publicNetworkAccess, IList ipFilterRules, IotHubNetworkRuleSetProperties networkRuleSets, string minTlsVersion, IList privateEndpointConnections, string provisioningState, string state, string hostName, IDictionary eventHubEndpoints, IotHubRoutingProperties routing, IDictionary storageEndpoints, IDictionary messagingEndpoints, bool? enableFileUploadNotifications, CloudToDeviceProperties cloudToDevice, string comments, IotHubPropertiesDeviceStreams deviceStreams, IotHubCapability? features, EncryptionPropertiesDescription encryption, IReadOnlyList locations, bool? enableDataResidency, RootCertificateProperties rootCertificate, IotHubIPVersion? ipVersion) + internal IotHubProperties(IList authorizationPolicies, bool? disableLocalAuth, bool? disableDeviceSas, bool? disableModuleSas, bool? restrictOutboundNetworkAccess, IList allowedFqdns, IotHubPublicNetworkAccess? publicNetworkAccess, IList ipFilterRules, IotHubNetworkRuleSetProperties networkRuleSets, string minTlsVersion, IList privateEndpointConnections, string provisioningState, string state, string hostName, IDictionary eventHubEndpoints, IotHubRoutingProperties routing, IDictionary storageEndpoints, IDictionary messagingEndpoints, bool? enableFileUploadNotifications, CloudToDeviceProperties cloudToDevice, string comments, IotHubPropertiesDeviceStreams deviceStreams, IotHubCapability? features, EncryptionPropertiesDescription encryption, IReadOnlyList locations, bool? enableDataResidency, RootCertificateProperties rootCertificate, IPVersion? ipVersion) { AuthorizationPolicies = authorizationPolicies; DisableLocalAuth = disableLocalAuth; @@ -103,7 +103,7 @@ internal IotHubProperties(IList authoriz /// Whether requests from Public Network are allowed. public IotHubPublicNetworkAccess? PublicNetworkAccess { get; set; } /// The IP filter rules. - public IList IPFilterRules { get; } + public IList IPFilterRules { get; } /// Network Rule Set Properties of IotHub. public IotHubNetworkRuleSetProperties NetworkRuleSets { get; set; } /// Specifies the minimum TLS version to support for this hub. Can be set to "1.2" to have clients that use a TLS version below 1.2 to be rejected. @@ -154,6 +154,6 @@ public IList DeviceStreamsStreamingEndpoints /// This property store root certificate related information. public RootCertificateProperties RootCertificate { get; set; } /// This property specifies the IP Version the hub is currently utilizing. - public IotHubIPVersion? IPVersion { get; set; } + public IPVersion? IPVersion { get; set; } } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetIPRule.Serialization.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/NetworkRuleSetIPRule.Serialization.cs similarity index 86% rename from sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetIPRule.Serialization.cs rename to sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/NetworkRuleSetIPRule.Serialization.cs index e39d7611b987..cac03009aefd 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetIPRule.Serialization.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/NetworkRuleSetIPRule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.IotHub.Models { - public partial class IotHubNetworkRuleSetIPRule : IUtf8JsonSerializable + public partial class NetworkRuleSetIPRule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,7 +27,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static IotHubNetworkRuleSetIPRule DeserializeIotHubNetworkRuleSetIPRule(JsonElement element) + internal static NetworkRuleSetIPRule DeserializeNetworkRuleSetIPRule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -58,7 +58,7 @@ internal static IotHubNetworkRuleSetIPRule DeserializeIotHubNetworkRuleSetIPRule continue; } } - return new IotHubNetworkRuleSetIPRule(filterName, Optional.ToNullable(action), ipMask); + return new NetworkRuleSetIPRule(filterName, Optional.ToNullable(action), ipMask); } } } diff --git a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetIPRule.cs b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/NetworkRuleSetIPRule.cs similarity index 79% rename from sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetIPRule.cs rename to sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/NetworkRuleSetIPRule.cs index 6ad5d5b484c5..a89bf3696477 100644 --- a/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/IotHubNetworkRuleSetIPRule.cs +++ b/sdk/iothub/Azure.ResourceManager.IotHub/src/Generated/Models/NetworkRuleSetIPRule.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.IotHub.Models { /// IP Rule to be applied as part of Network Rule Set. - public partial class IotHubNetworkRuleSetIPRule + public partial class NetworkRuleSetIPRule { - /// Initializes a new instance of IotHubNetworkRuleSetIPRule. + /// Initializes a new instance of NetworkRuleSetIPRule. /// Name of the IP filter rule. /// A string that contains the IP address range in CIDR notation for the rule. /// or is null. - public IotHubNetworkRuleSetIPRule(string filterName, string ipMask) + public NetworkRuleSetIPRule(string filterName, string ipMask) { Argument.AssertNotNull(filterName, nameof(filterName)); Argument.AssertNotNull(ipMask, nameof(ipMask)); @@ -26,11 +26,11 @@ public IotHubNetworkRuleSetIPRule(string filterName, string ipMask) IPMask = ipMask; } - /// Initializes a new instance of IotHubNetworkRuleSetIPRule. + /// Initializes a new instance of NetworkRuleSetIPRule. /// Name of the IP filter rule. /// IP Filter Action. /// A string that contains the IP address range in CIDR notation for the rule. - internal IotHubNetworkRuleSetIPRule(string filterName, IotHubNetworkRuleIPAction? action, string ipMask) + internal NetworkRuleSetIPRule(string filterName, IotHubNetworkRuleIPAction? action, string ipMask) { FilterName = filterName; Action = action; From d93b4bd336a612e570719cb5a95abbf397cb5548 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 07:40:50 +0000 Subject: [PATCH 4/8] Update SDK codes --- .../samples/Generated/Samples/Sample_HciClusterResource.cs | 2 +- .../src/Generated/Models/HciClusterPatch.Serialization.cs | 4 ++-- .../src/Generated/Models/HciClusterPatch.cs | 2 +- .../Models/CognitiveServicesNetworkRuleSet.Serialization.cs | 6 +++--- .../src/Generated/Models/CognitiveServicesNetworkRuleSet.cs | 6 +++--- ...vicesIPRule.Serialization.cs => IPRule.Serialization.cs} | 6 +++--- .../Models/{CognitiveServicesIPRule.cs => IPRule.cs} | 6 +++--- 7 files changed, 16 insertions(+), 16 deletions(-) rename sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/{CognitiveServicesIPRule.Serialization.cs => IPRule.Serialization.cs} (80%) rename sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/{CognitiveServicesIPRule.cs => IPRule.cs} (83%) diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/samples/Generated/Samples/Sample_HciClusterResource.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/samples/Generated/Samples/Sample_HciClusterResource.cs index 190b5abe6dd5..f00a133244f7 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/samples/Generated/Samples/Sample_HciClusterResource.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/samples/Generated/Samples/Sample_HciClusterResource.cs @@ -117,7 +117,7 @@ public async Task Update_UpdateCluster() WindowsServerSubscription = WindowsServerSubscription.Enabled, DiagnosticLevel = HciClusterDiagnosticLevel.Basic, }, - ManagedServiceIdentityType = HciManagedServiceIdentityType.SystemAssigned, + HciManagedServiceIdentityType = HciManagedServiceIdentityType.SystemAssigned, }; HciClusterResource result = await hciCluster.UpdateAsync(patch); diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.Serialization.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.Serialization.cs index 5c8df4477c71..06f53b02b7c4 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.Serialization.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.Serialization.cs @@ -51,10 +51,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); writer.WritePropertyName("identity"u8); writer.WriteStartObject(); - if (Optional.IsDefined(ManagedServiceIdentityType)) + if (Optional.IsDefined(HciManagedServiceIdentityType)) { writer.WritePropertyName("type"u8); - writer.WriteStringValue(ManagedServiceIdentityType.Value.ToString()); + writer.WriteStringValue(HciManagedServiceIdentityType.Value.ToString()); } if (Optional.IsCollectionDefined(UserAssignedIdentities)) { diff --git a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.cs b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.cs index 64e6684a2c38..65299694d3ba 100644 --- a/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.cs +++ b/sdk/azurestackhci/Azure.ResourceManager.Hci/src/Generated/Models/HciClusterPatch.cs @@ -37,7 +37,7 @@ public HciClusterPatch() /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. public Guid? TenantId { get; } /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - public HciManagedServiceIdentityType? ManagedServiceIdentityType { get; set; } + public HciManagedServiceIdentityType? HciManagedServiceIdentityType { get; set; } /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. public IDictionary UserAssignedIdentities { get; } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.Serialization.cs index 86a09963391d..aef6ac052f4b 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.Serialization.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.Serialization.cs @@ -51,7 +51,7 @@ internal static CognitiveServicesNetworkRuleSet DeserializeCognitiveServicesNetw return null; } Optional defaultAction = default; - Optional> ipRules = default; + Optional> ipRules = default; Optional> virtualNetworkRules = default; foreach (var property in element.EnumerateObject()) { @@ -70,10 +70,10 @@ internal static CognitiveServicesNetworkRuleSet DeserializeCognitiveServicesNetw { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(CognitiveServicesIPRule.DeserializeCognitiveServicesIPRule(item)); + array.Add(IPRule.DeserializeIPRule(item)); } ipRules = array; continue; diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs index b77882cbbaea..d629218aed9a 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesNetworkRuleSet.cs @@ -16,7 +16,7 @@ public partial class CognitiveServicesNetworkRuleSet /// Initializes a new instance of CognitiveServicesNetworkRuleSet. public CognitiveServicesNetworkRuleSet() { - IPRules = new ChangeTrackingList(); + IPRules = new ChangeTrackingList(); VirtualNetworkRules = new ChangeTrackingList(); } @@ -24,7 +24,7 @@ public CognitiveServicesNetworkRuleSet() /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. /// The list of IP address rules. /// The list of virtual network rules. - internal CognitiveServicesNetworkRuleSet(CognitiveServicesNetworkRuleAction? defaultAction, IList ipRules, IList virtualNetworkRules) + internal CognitiveServicesNetworkRuleSet(CognitiveServicesNetworkRuleAction? defaultAction, IList ipRules, IList virtualNetworkRules) { DefaultAction = defaultAction; IPRules = ipRules; @@ -34,7 +34,7 @@ internal CognitiveServicesNetworkRuleSet(CognitiveServicesNetworkRuleAction? def /// The default action when no rule from ipRules and from virtualNetworkRules match. This is only used after the bypass property has been evaluated. public CognitiveServicesNetworkRuleAction? DefaultAction { get; set; } /// The list of IP address rules. - public IList IPRules { get; } + public IList IPRules { get; } /// The list of virtual network rules. public IList VirtualNetworkRules { get; } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.Serialization.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/IPRule.Serialization.cs similarity index 80% rename from sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.Serialization.cs rename to sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/IPRule.Serialization.cs index 76d8a8fdf3db..48a6a4cf7199 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.Serialization.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/IPRule.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.CognitiveServices.Models { - public partial class CognitiveServicesIPRule : IUtf8JsonSerializable + public partial class IPRule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static CognitiveServicesIPRule DeserializeCognitiveServicesIPRule(JsonElement element) + internal static IPRule DeserializeIPRule(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -35,7 +35,7 @@ internal static CognitiveServicesIPRule DeserializeCognitiveServicesIPRule(JsonE continue; } } - return new CognitiveServicesIPRule(value); + return new IPRule(value); } } } diff --git a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/IPRule.cs similarity index 83% rename from sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs rename to sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/IPRule.cs index 0431dc1961ee..4b42d2ca8de8 100644 --- a/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/CognitiveServicesIPRule.cs +++ b/sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/src/Generated/Models/IPRule.cs @@ -11,12 +11,12 @@ namespace Azure.ResourceManager.CognitiveServices.Models { /// A rule governing the accessibility from a specific ip address or ip range. - public partial class CognitiveServicesIPRule + public partial class IPRule { - /// Initializes a new instance of CognitiveServicesIPRule. + /// Initializes a new instance of IPRule. /// An IPv4 address range in CIDR notation, such as '124.56.78.91' (simple IP address) or '124.56.78.0/24' (all addresses that start with 124.56.78). /// is null. - public CognitiveServicesIPRule(string value) + public IPRule(string value) { Argument.AssertNotNull(value, nameof(value)); From d87ff11e45462fdc2cc18677f551a4d8574fa08f Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 07:44:25 +0000 Subject: [PATCH 5/8] Update SDK codes --- ...=> Sample_IPFirewallRuleInfoCollection.cs} | 34 +++---- ...s => Sample_IPFirewallRuleInfoResource.cs} | 40 ++++----- ...ample_SynapseIntegrationRuntimeResource.cs | 2 +- .../Sample_SynapseWorkspaceResource.cs | 4 +- .../src/Generated/ArmSynapseModelFactory.cs | 22 ++--- .../Generated/Extensions/SynapseExtensions.cs | 14 +-- ...ion.cs => IPFirewallRuleInfoCollection.cs} | 90 +++++++++---------- ...eInfoData.cs => IPFirewallRuleInfoData.cs} | 12 +-- ...ource.cs => IPFirewallRuleInfoResource.cs} | 82 ++++++++--------- .../IPFirewallRuleInfoOperationSource.cs | 40 +++++++++ ...ynapseIPFirewallRuleInfoOperationSource.cs | 40 --------- ...> IPFirewallRuleInfoData.Serialization.cs} | 6 +- ...rewallRuleInfoListResult.Serialization.cs} | 12 +-- ...ult.cs => IPFirewallRuleInfoListResult.cs} | 14 +-- ...IPFirewallRuleProperties.Serialization.cs} | 2 +- ...perties.cs => IPFirewallRuleProperties.cs} | 6 +- ...tionRuntimeNodeIPAddress.Serialization.cs} | 6 +- ....cs => IntegrationRuntimeNodeIPAddress.cs} | 10 +-- .../ReplaceAllIPFirewallRulesContent.cs | 4 +- .../SynapseEntityReference.Serialization.cs | 4 +- .../Models/SynapseEntityReference.cs | 8 +- .../Models/SynapseIntegrationRuntimeStatus.cs | 8 +- .../SynapseManagedIntegrationRuntimeStatus.cs | 8 +- ...napseSelfHostedIntegrationRuntimeStatus.cs | 8 +- .../Models/UnknownIntegrationRuntimeStatus.cs | 6 +- ...ationRuntimeNodeIpAddressRestOperations.cs | 12 +-- .../IpFirewallRulesRestOperations.cs | 46 +++++----- .../SynapseIntegrationRuntimeResource.cs | 4 +- .../src/Generated/SynapseWorkspaceResource.cs | 38 ++++---- .../Generated/ArmAppServiceModelFactory.cs | 20 ++--- ...HostingEnvironmentMultiRolePoolResource.cs | 14 +-- .../HostingEnvironmentWorkerPoolCollection.cs | 8 +- .../HostingEnvironmentWorkerPoolResource.cs | 10 +-- ...EnvironmentMultiRolePoolOperationSource.cs | 4 +- ...ingEnvironmentWorkerPoolOperationSource.cs | 4 +- .../Generated/Models/AppServiceIPFilterTag.cs | 54 ----------- ...rviceWorkerPoolListResult.Serialization.cs | 6 +- .../Models/AppServiceWorkerPoolListResult.cs | 6 +- .../src/Generated/Models/IPFilterTag.cs | 54 +++++++++++ ...=> IPSecurityRestriction.Serialization.cs} | 10 +-- ...estriction.cs => IPSecurityRestriction.cs} | 12 +-- .../Models/SiteConfigData.Serialization.cs | 12 +-- .../SiteConfigProperties.Serialization.cs | 12 +-- .../Generated/Models/SiteConfigProperties.cs | 10 +-- ...ion.cs => WorkerPoolData.Serialization.cs} | 6 +- .../AppServiceEnvironmentsRestOperations.cs | 72 +++++++-------- .../src/Generated/SiteConfigData.cs | 10 +-- ...iceWorkerPoolData.cs => WorkerPoolData.cs} | 12 +-- 48 files changed, 459 insertions(+), 459 deletions(-) rename sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/{Sample_SynapseIPFirewallRuleInfoCollection.cs => Sample_IPFirewallRuleInfoCollection.cs} (84%) rename sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/{Sample_SynapseIPFirewallRuleInfoResource.cs => Sample_IPFirewallRuleInfoResource.cs} (65%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/{SynapseIPFirewallRuleInfoCollection.cs => IPFirewallRuleInfoCollection.cs} (63%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/{SynapseIPFirewallRuleInfoData.cs => IPFirewallRuleInfoData.cs} (71%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/{SynapseIPFirewallRuleInfoResource.cs => IPFirewallRuleInfoResource.cs} (66%) create mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/IPFirewallRuleInfoOperationSource.cs delete mode 100644 sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseIPFirewallRuleInfoOperationSource.cs rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIPFirewallRuleInfoData.Serialization.cs => IPFirewallRuleInfoData.Serialization.cs} (92%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIPFirewallRuleInfoListResult.Serialization.cs => IPFirewallRuleInfoListResult.Serialization.cs} (66%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIPFirewallRuleInfoListResult.cs => IPFirewallRuleInfoListResult.cs} (56%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIPFirewallRuleProperties.Serialization.cs => IPFirewallRuleProperties.Serialization.cs} (90%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIPFirewallRuleProperties.cs => IPFirewallRuleProperties.cs} (79%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIntegrationRuntimeNodeIPAddress.Serialization.cs => IntegrationRuntimeNodeIPAddress.Serialization.cs} (76%) rename sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/{SynapseIntegrationRuntimeNodeIPAddress.cs => IntegrationRuntimeNodeIPAddress.cs} (60%) delete mode 100644 sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPFilterTag.cs create mode 100644 sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPFilterTag.cs rename sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/{AppServiceIPSecurityRestriction.Serialization.cs => IPSecurityRestriction.Serialization.cs} (91%) rename sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/{AppServiceIPSecurityRestriction.cs => IPSecurityRestriction.cs} (90%) rename sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/{AppServiceWorkerPoolData.Serialization.cs => WorkerPoolData.Serialization.cs} (93%) rename sdk/websites/Azure.ResourceManager.AppService/src/Generated/{AppServiceWorkerPoolData.cs => WorkerPoolData.cs} (78%) diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIPFirewallRuleInfoCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_IPFirewallRuleInfoCollection.cs similarity index 84% rename from sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIPFirewallRuleInfoCollection.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_IPFirewallRuleInfoCollection.cs index a276c8df7037..79d66f5cb7e8 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIPFirewallRuleInfoCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_IPFirewallRuleInfoCollection.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.Synapse.Samples { - public partial class Sample_SynapseIPFirewallRuleInfoCollection + public partial class Sample_IPFirewallRuleInfoCollection { // List IP firewall rules in a workspace [NUnit.Framework.Test] @@ -39,15 +39,15 @@ public async Task GetAll_ListIPFirewallRulesInAWorkspace() ResourceIdentifier synapseWorkspaceResourceId = SynapseWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); SynapseWorkspaceResource synapseWorkspace = client.GetSynapseWorkspaceResource(synapseWorkspaceResourceId); - // get the collection of this SynapseIPFirewallRuleInfoResource - SynapseIPFirewallRuleInfoCollection collection = synapseWorkspace.GetSynapseIPFirewallRuleInfos(); + // get the collection of this IPFirewallRuleInfoResource + IPFirewallRuleInfoCollection collection = synapseWorkspace.GetIPFirewallRuleInfos(); // invoke the operation and iterate over the result - await foreach (SynapseIPFirewallRuleInfoResource item in collection.GetAllAsync()) + await foreach (IPFirewallRuleInfoResource item in collection.GetAllAsync()) { // the variable item is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - SynapseIPFirewallRuleInfoData resourceData = item.Data; + IPFirewallRuleInfoData resourceData = item.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -76,22 +76,22 @@ public async Task CreateOrUpdate_CreateAnIPFirewallRule() ResourceIdentifier synapseWorkspaceResourceId = SynapseWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); SynapseWorkspaceResource synapseWorkspace = client.GetSynapseWorkspaceResource(synapseWorkspaceResourceId); - // get the collection of this SynapseIPFirewallRuleInfoResource - SynapseIPFirewallRuleInfoCollection collection = synapseWorkspace.GetSynapseIPFirewallRuleInfos(); + // get the collection of this IPFirewallRuleInfoResource + IPFirewallRuleInfoCollection collection = synapseWorkspace.GetIPFirewallRuleInfos(); // invoke the operation string ruleName = "ExampleIpFirewallRule"; - SynapseIPFirewallRuleInfoData info = new SynapseIPFirewallRuleInfoData() + IPFirewallRuleInfoData info = new IPFirewallRuleInfoData() { EndIPAddress = IPAddress.Parse("10.0.0.254"), StartIPAddress = IPAddress.Parse("10.0.0.0"), }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, info); - SynapseIPFirewallRuleInfoResource result = lro.Value; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, info); + IPFirewallRuleInfoResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - SynapseIPFirewallRuleInfoData resourceData = result.Data; + IPFirewallRuleInfoData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -117,16 +117,16 @@ public async Task Get_GetIPFirewallRule() ResourceIdentifier synapseWorkspaceResourceId = SynapseWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); SynapseWorkspaceResource synapseWorkspace = client.GetSynapseWorkspaceResource(synapseWorkspaceResourceId); - // get the collection of this SynapseIPFirewallRuleInfoResource - SynapseIPFirewallRuleInfoCollection collection = synapseWorkspace.GetSynapseIPFirewallRuleInfos(); + // get the collection of this IPFirewallRuleInfoResource + IPFirewallRuleInfoCollection collection = synapseWorkspace.GetIPFirewallRuleInfos(); // invoke the operation string ruleName = "ExampleIpFirewallRule"; - SynapseIPFirewallRuleInfoResource result = await collection.GetAsync(ruleName); + IPFirewallRuleInfoResource result = await collection.GetAsync(ruleName); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - SynapseIPFirewallRuleInfoData resourceData = result.Data; + IPFirewallRuleInfoData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -152,8 +152,8 @@ public async Task Exists_GetIPFirewallRule() ResourceIdentifier synapseWorkspaceResourceId = SynapseWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName); SynapseWorkspaceResource synapseWorkspace = client.GetSynapseWorkspaceResource(synapseWorkspaceResourceId); - // get the collection of this SynapseIPFirewallRuleInfoResource - SynapseIPFirewallRuleInfoCollection collection = synapseWorkspace.GetSynapseIPFirewallRuleInfos(); + // get the collection of this IPFirewallRuleInfoResource + IPFirewallRuleInfoCollection collection = synapseWorkspace.GetIPFirewallRuleInfos(); // invoke the operation string ruleName = "ExampleIpFirewallRule"; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIPFirewallRuleInfoResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_IPFirewallRuleInfoResource.cs similarity index 65% rename from sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIPFirewallRuleInfoResource.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_IPFirewallRuleInfoResource.cs index d121e8426901..7ba6343b3f83 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIPFirewallRuleInfoResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_IPFirewallRuleInfoResource.cs @@ -16,7 +16,7 @@ namespace Azure.ResourceManager.Synapse.Samples { - public partial class Sample_SynapseIPFirewallRuleInfoResource + public partial class Sample_IPFirewallRuleInfoResource { // Create an IP firewall rule [NUnit.Framework.Test] @@ -31,27 +31,27 @@ public async Task Update_CreateAnIPFirewallRule() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SynapseIPFirewallRuleInfoResource created on azure - // for more information of creating SynapseIPFirewallRuleInfoResource, please refer to the document of SynapseIPFirewallRuleInfoResource + // this example assumes you already have this IPFirewallRuleInfoResource created on azure + // for more information of creating IPFirewallRuleInfoResource, please refer to the document of IPFirewallRuleInfoResource string subscriptionId = "01234567-89ab-4def-0123-456789abcdef"; string resourceGroupName = "ExampleResourceGroup"; string workspaceName = "ExampleWorkspace"; string ruleName = "ExampleIpFirewallRule"; - ResourceIdentifier synapseIPFirewallRuleInfoResourceId = SynapseIPFirewallRuleInfoResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); - SynapseIPFirewallRuleInfoResource synapseIPFirewallRuleInfo = client.GetSynapseIPFirewallRuleInfoResource(synapseIPFirewallRuleInfoResourceId); + ResourceIdentifier ipFirewallRuleInfoResourceId = IPFirewallRuleInfoResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + IPFirewallRuleInfoResource ipFirewallRuleInfo = client.GetIPFirewallRuleInfoResource(ipFirewallRuleInfoResourceId); // invoke the operation - SynapseIPFirewallRuleInfoData info = new SynapseIPFirewallRuleInfoData() + IPFirewallRuleInfoData info = new IPFirewallRuleInfoData() { EndIPAddress = IPAddress.Parse("10.0.0.254"), StartIPAddress = IPAddress.Parse("10.0.0.0"), }; - ArmOperation lro = await synapseIPFirewallRuleInfo.UpdateAsync(WaitUntil.Completed, info); - SynapseIPFirewallRuleInfoResource result = lro.Value; + ArmOperation lro = await ipFirewallRuleInfo.UpdateAsync(WaitUntil.Completed, info); + IPFirewallRuleInfoResource result = lro.Value; // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - SynapseIPFirewallRuleInfoData resourceData = result.Data; + IPFirewallRuleInfoData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } @@ -69,17 +69,17 @@ public async Task Delete_DeleteAnIPFirewallRuleFromAWorkspace() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SynapseIPFirewallRuleInfoResource created on azure - // for more information of creating SynapseIPFirewallRuleInfoResource, please refer to the document of SynapseIPFirewallRuleInfoResource + // this example assumes you already have this IPFirewallRuleInfoResource created on azure + // for more information of creating IPFirewallRuleInfoResource, please refer to the document of IPFirewallRuleInfoResource string subscriptionId = "01234567-89ab-4def-0123-456789abcdef"; string resourceGroupName = "ExampleResourceGroup"; string workspaceName = "ExampleWorkspace"; string ruleName = "ExampleIpFirewallRule"; - ResourceIdentifier synapseIPFirewallRuleInfoResourceId = SynapseIPFirewallRuleInfoResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); - SynapseIPFirewallRuleInfoResource synapseIPFirewallRuleInfo = client.GetSynapseIPFirewallRuleInfoResource(synapseIPFirewallRuleInfoResourceId); + ResourceIdentifier ipFirewallRuleInfoResourceId = IPFirewallRuleInfoResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + IPFirewallRuleInfoResource ipFirewallRuleInfo = client.GetIPFirewallRuleInfoResource(ipFirewallRuleInfoResourceId); // invoke the operation - ArmOperation lro = await synapseIPFirewallRuleInfo.DeleteAsync(WaitUntil.Completed); + ArmOperation lro = await ipFirewallRuleInfo.DeleteAsync(WaitUntil.Completed); BinaryData result = lro.Value; Console.WriteLine($"Succeeded: {result}"); @@ -98,21 +98,21 @@ public async Task Get_GetIPFirewallRule() // authenticate your client ArmClient client = new ArmClient(cred); - // this example assumes you already have this SynapseIPFirewallRuleInfoResource created on azure - // for more information of creating SynapseIPFirewallRuleInfoResource, please refer to the document of SynapseIPFirewallRuleInfoResource + // this example assumes you already have this IPFirewallRuleInfoResource created on azure + // for more information of creating IPFirewallRuleInfoResource, please refer to the document of IPFirewallRuleInfoResource string subscriptionId = "01234567-89ab-4def-0123-456789abcdef"; string resourceGroupName = "ExampleResourceGroup"; string workspaceName = "ExampleWorkspace"; string ruleName = "ExampleIpFirewallRule"; - ResourceIdentifier synapseIPFirewallRuleInfoResourceId = SynapseIPFirewallRuleInfoResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); - SynapseIPFirewallRuleInfoResource synapseIPFirewallRuleInfo = client.GetSynapseIPFirewallRuleInfoResource(synapseIPFirewallRuleInfoResourceId); + ResourceIdentifier ipFirewallRuleInfoResourceId = IPFirewallRuleInfoResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, workspaceName, ruleName); + IPFirewallRuleInfoResource ipFirewallRuleInfo = client.GetIPFirewallRuleInfoResource(ipFirewallRuleInfoResourceId); // invoke the operation - SynapseIPFirewallRuleInfoResource result = await synapseIPFirewallRuleInfo.GetAsync(); + IPFirewallRuleInfoResource result = await ipFirewallRuleInfo.GetAsync(); // the variable result is a resource, you could call other operations on this instance as well // but just for demo, we get its data from this resource instance - SynapseIPFirewallRuleInfoData resourceData = result.Data; + IPFirewallRuleInfoData resourceData = result.Data; // for demo we just print out the id Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIntegrationRuntimeResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIntegrationRuntimeResource.cs index d3d71a95a099..89ffa4960c9c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIntegrationRuntimeResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseIntegrationRuntimeResource.cs @@ -311,7 +311,7 @@ public async Task GetIntegrationRuntimeNodeIPAddress_GetIntegrationRuntimeNodeIP // invoke the operation string nodeName = "Node_1"; - SynapseIntegrationRuntimeNodeIPAddress result = await synapseIntegrationRuntime.GetIntegrationRuntimeNodeIPAddressAsync(nodeName); + IntegrationRuntimeNodeIPAddress result = await synapseIntegrationRuntime.GetIntegrationRuntimeNodeIPAddressAsync(nodeName); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseWorkspaceResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseWorkspaceResource.cs index 95671f429b0c..843bdc580a1a 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseWorkspaceResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/samples/Generated/Samples/Sample_SynapseWorkspaceResource.cs @@ -47,12 +47,12 @@ public async Task ReplaceAllIpFirewallRule_ReplaceAllIPFirewallRulesInAWorkspace { IPFirewallRules = { -["AnotherExampleFirewallRule"] = new SynapseIPFirewallRuleProperties() +["AnotherExampleFirewallRule"] = new IPFirewallRuleProperties() { EndIPAddress = IPAddress.Parse("10.0.1.254"), StartIPAddress = IPAddress.Parse("10.0.1.0"), }, -["ExampleFirewallRule"] = new SynapseIPFirewallRuleProperties() +["ExampleFirewallRule"] = new IPFirewallRuleProperties() { EndIPAddress = IPAddress.Parse("10.0.0.254"), StartIPAddress = IPAddress.Parse("10.0.0.0"), diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs index fee4c1685124..6118e90f4079 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/ArmSynapseModelFactory.cs @@ -33,7 +33,7 @@ public static SynapseAadOnlyAuthenticationData SynapseAadOnlyAuthenticationData( return new SynapseAadOnlyAuthenticationData(id, name, resourceType, systemData, isAadOnlyAuthenticationEnabled, state, createdOn); } - /// Initializes a new instance of SynapseIPFirewallRuleInfoData. + /// Initializes a new instance of IPFirewallRuleInfoData. /// The id. /// The name. /// The resourceType. @@ -41,10 +41,10 @@ public static SynapseAadOnlyAuthenticationData SynapseAadOnlyAuthenticationData( /// The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. /// Resource provisioning state. /// The start IP address of the firewall rule. Must be IPv4 format. - /// A new instance for mocking. - public static SynapseIPFirewallRuleInfoData SynapseIPFirewallRuleInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IPAddress endIPAddress = null, SynapseProvisioningState? provisioningState = null, IPAddress startIPAddress = null) + /// A new instance for mocking. + public static IPFirewallRuleInfoData IPFirewallRuleInfoData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IPAddress endIPAddress = null, SynapseProvisioningState? provisioningState = null, IPAddress startIPAddress = null) { - return new SynapseIPFirewallRuleInfoData(id, name, resourceType, systemData, endIPAddress, provisioningState, startIPAddress); + return new IPFirewallRuleInfoData(id, name, resourceType, systemData, endIPAddress, provisioningState, startIPAddress); } /// Initializes a new instance of ReplaceAllFirewallRulesOperationResult. @@ -1368,12 +1368,12 @@ public static SynapseIntegrationRuntimeData SynapseIntegrationRuntimeData(Resour return new SynapseIntegrationRuntimeData(id, name, resourceType, systemData, properties, etag); } - /// Initializes a new instance of SynapseIntegrationRuntimeNodeIPAddress. + /// Initializes a new instance of IntegrationRuntimeNodeIPAddress. /// The IP address of self-hosted integration runtime node. - /// A new instance for mocking. - public static SynapseIntegrationRuntimeNodeIPAddress SynapseIntegrationRuntimeNodeIPAddress(IPAddress ipAddress = null) + /// A new instance for mocking. + public static IntegrationRuntimeNodeIPAddress IntegrationRuntimeNodeIPAddress(IPAddress ipAddress = null) { - return new SynapseIntegrationRuntimeNodeIPAddress(ipAddress); + return new IntegrationRuntimeNodeIPAddress(ipAddress); } /// Initializes a new instance of SynapseSsisObjectMetadata. @@ -1446,16 +1446,16 @@ public static SynapseIntegrationRuntimeStatusResult SynapseIntegrationRuntimeSta } /// Initializes a new instance of SynapseIntegrationRuntimeStatus. - /// Type of integration runtime. + /// Type of integration runtime. /// The workspace name which the integration runtime belong to. /// The state of integration runtime. /// Additional Properties. /// A new instance for mocking. - public static SynapseIntegrationRuntimeStatus SynapseIntegrationRuntimeStatus(string runtimeType = "Unknown", string dataFactoryName = null, SynapseIntegrationRuntimeState? state = null, IReadOnlyDictionary additionalProperties = null) + public static SynapseIntegrationRuntimeStatus SynapseIntegrationRuntimeStatus(string integrationRuntimeType = "Unknown", string dataFactoryName = null, SynapseIntegrationRuntimeState? state = null, IReadOnlyDictionary additionalProperties = null) { additionalProperties ??= new Dictionary(); - return new SynapseIntegrationRuntimeStatus(runtimeType, dataFactoryName, state, additionalProperties); + return new SynapseIntegrationRuntimeStatus(integrationRuntimeType, dataFactoryName, state, additionalProperties); } /// Initializes a new instance of SynapseIntegrationRuntimeAuthKeys. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Extensions/SynapseExtensions.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Extensions/SynapseExtensions.cs index f5cbc1dd43c6..63a2096246cc 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Extensions/SynapseExtensions.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Extensions/SynapseExtensions.cs @@ -69,20 +69,20 @@ public static SynapseAadOnlyAuthenticationResource GetSynapseAadOnlyAuthenticati } #endregion - #region SynapseIPFirewallRuleInfoResource + #region IPFirewallRuleInfoResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SynapseIPFirewallRuleInfoResource GetSynapseIPFirewallRuleInfoResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static IPFirewallRuleInfoResource GetIPFirewallRuleInfoResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SynapseIPFirewallRuleInfoResource.ValidateResourceId(id); - return new SynapseIPFirewallRuleInfoResource(client, id); + IPFirewallRuleInfoResource.ValidateResourceId(id); + return new IPFirewallRuleInfoResource(client, id); } ); } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoCollection.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoCollection.cs similarity index 63% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoCollection.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoCollection.cs index 7557e423450b..b9d50e24fb19 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoCollection.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Synapse { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetSynapseIPFirewallRuleInfos method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetIPFirewallRuleInfos method from an instance of . /// - public partial class SynapseIPFirewallRuleInfoCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class IPFirewallRuleInfoCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics; - private readonly IpFirewallRulesRestOperations _synapseIPFirewallRuleInfoIPFirewallRulesRestClient; + private readonly ClientDiagnostics _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics; + private readonly IpFirewallRulesRestOperations _ipFirewallRuleInfoIPFirewallRulesRestClient; - /// Initializes a new instance of the class for mocking. - protected SynapseIPFirewallRuleInfoCollection() + /// Initializes a new instance of the class for mocking. + protected IPFirewallRuleInfoCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal SynapseIPFirewallRuleInfoCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal IPFirewallRuleInfoCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", SynapseIPFirewallRuleInfoResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(SynapseIPFirewallRuleInfoResource.ResourceType, out string synapseIPFirewallRuleInfoIPFirewallRulesApiVersion); - _synapseIPFirewallRuleInfoIPFirewallRulesRestClient = new IpFirewallRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, synapseIPFirewallRuleInfoIPFirewallRulesApiVersion); + _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", IPFirewallRuleInfoResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(IPFirewallRuleInfoResource.ResourceType, out string ipFirewallRuleInfoIPFirewallRulesApiVersion); + _ipFirewallRuleInfoIPFirewallRulesRestClient = new IpFirewallRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ipFirewallRuleInfoIPFirewallRulesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,17 +72,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, SynapseIPFirewallRuleInfoData info, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string ruleName, IPFirewallRuleInfoData info, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); Argument.AssertNotNull(info, nameof(info)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoCollection.CreateOrUpdate"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(new SynapseIPFirewallRuleInfoOperationSource(Client), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info).Request, response, OperationFinalStateVia.Location); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info, cancellationToken).ConfigureAwait(false); + var operation = new SynapseArmOperation(new IPFirewallRuleInfoOperationSource(Client), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -113,17 +113,17 @@ public virtual async Task> Creat /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, SynapseIPFirewallRuleInfoData info, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string ruleName, IPFirewallRuleInfoData info, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); Argument.AssertNotNull(info, nameof(info)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoCollection.CreateOrUpdate"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoCollection.CreateOrUpdate"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info, cancellationToken); - var operation = new SynapseArmOperation(new SynapseIPFirewallRuleInfoOperationSource(Client), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info).Request, response, OperationFinalStateVia.Location); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info, cancellationToken); + var operation = new SynapseArmOperation(new IPFirewallRuleInfoOperationSource(Client), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, info).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -152,18 +152,18 @@ public virtual ArmOperation CreateOrUpdate(Wa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoCollection.Get"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoCollection.Get"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SynapseIPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new IPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,18 +189,18 @@ public virtual async Task> GetAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) + public virtual Response Get(string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoCollection.Get"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoCollection.Get"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SynapseIPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new IPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -223,12 +223,12 @@ public virtual Response Get(string ruleName, /// /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SynapseIPFirewallRuleInfoResource(Client, SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(e)), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, "SynapseIPFirewallRuleInfoCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new IPFirewallRuleInfoResource(Client, IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(e)), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, "IPFirewallRuleInfoCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -245,12 +245,12 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - HttpMessage FirstPageRequest(int? pageSizeHint) => _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SynapseIPFirewallRuleInfoResource(Client, SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(e)), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, "SynapseIPFirewallRuleInfoCollection.GetAll", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateListByWorkspaceNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new IPFirewallRuleInfoResource(Client, IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(e)), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, "IPFirewallRuleInfoCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -274,11 +274,11 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoCollection.Exists"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoCollection.Exists"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -309,11 +309,11 @@ public virtual Response Exists(string ruleName, CancellationToken cancella { Argument.AssertNotNullOrEmpty(ruleName, nameof(ruleName)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoCollection.Exists"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoCollection.Exists"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, ruleName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -323,7 +323,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -333,7 +333,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoData.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoData.cs similarity index 71% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoData.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoData.cs index 0f6d49df834f..253578d0cb93 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoData.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoData.cs @@ -13,17 +13,17 @@ namespace Azure.ResourceManager.Synapse { /// - /// A class representing the SynapseIPFirewallRuleInfo data model. + /// A class representing the IPFirewallRuleInfo data model. /// IP firewall rule /// - public partial class SynapseIPFirewallRuleInfoData : ResourceData + public partial class IPFirewallRuleInfoData : ResourceData { - /// Initializes a new instance of SynapseIPFirewallRuleInfoData. - public SynapseIPFirewallRuleInfoData() + /// Initializes a new instance of IPFirewallRuleInfoData. + public IPFirewallRuleInfoData() { } - /// Initializes a new instance of SynapseIPFirewallRuleInfoData. + /// Initializes a new instance of IPFirewallRuleInfoData. /// The id. /// The name. /// The resourceType. @@ -31,7 +31,7 @@ public SynapseIPFirewallRuleInfoData() /// The end IP address of the firewall rule. Must be IPv4 format. Must be greater than or equal to startIpAddress. /// Resource provisioning state. /// The start IP address of the firewall rule. Must be IPv4 format. - internal SynapseIPFirewallRuleInfoData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IPAddress endIPAddress, SynapseProvisioningState? provisioningState, IPAddress startIPAddress) : base(id, name, resourceType, systemData) + internal IPFirewallRuleInfoData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IPAddress endIPAddress, SynapseProvisioningState? provisioningState, IPAddress startIPAddress) : base(id, name, resourceType, systemData) { EndIPAddress = endIPAddress; ProvisioningState = provisioningState; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoResource.cs similarity index 66% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoResource.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoResource.cs index d792bbeb5103..478d3a7744e7 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIPFirewallRuleInfoResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/IPFirewallRuleInfoResource.cs @@ -17,46 +17,46 @@ namespace Azure.ResourceManager.Synapse { /// - /// A Class representing a SynapseIPFirewallRuleInfo along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetSynapseIPFirewallRuleInfoResource method. - /// Otherwise you can get one from its parent resource using the GetSynapseIPFirewallRuleInfo method. + /// A Class representing an IPFirewallRuleInfo along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetIPFirewallRuleInfoResource method. + /// Otherwise you can get one from its parent resource using the GetIPFirewallRuleInfo method. /// - public partial class SynapseIPFirewallRuleInfoResource : ArmResource + public partial class IPFirewallRuleInfoResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/firewallRules/{ruleName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics; - private readonly IpFirewallRulesRestOperations _synapseIPFirewallRuleInfoIPFirewallRulesRestClient; - private readonly SynapseIPFirewallRuleInfoData _data; + private readonly ClientDiagnostics _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics; + private readonly IpFirewallRulesRestOperations _ipFirewallRuleInfoIPFirewallRulesRestClient; + private readonly IPFirewallRuleInfoData _data; - /// Initializes a new instance of the class for mocking. - protected SynapseIPFirewallRuleInfoResource() + /// Initializes a new instance of the class for mocking. + protected IPFirewallRuleInfoResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal SynapseIPFirewallRuleInfoResource(ArmClient client, SynapseIPFirewallRuleInfoData data) : this(client, data.Id) + internal IPFirewallRuleInfoResource(ArmClient client, IPFirewallRuleInfoData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal SynapseIPFirewallRuleInfoResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal IPFirewallRuleInfoResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string synapseIPFirewallRuleInfoIPFirewallRulesApiVersion); - _synapseIPFirewallRuleInfoIPFirewallRulesRestClient = new IpFirewallRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, synapseIPFirewallRuleInfoIPFirewallRulesApiVersion); + _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string ipFirewallRuleInfoIPFirewallRulesApiVersion); + _ipFirewallRuleInfoIPFirewallRulesRestClient = new IpFirewallRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ipFirewallRuleInfoIPFirewallRulesApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -70,7 +70,7 @@ internal SynapseIPFirewallRuleInfoResource(ArmClient client, ResourceIdentifier /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual SynapseIPFirewallRuleInfoData Data + public virtual IPFirewallRuleInfoData Data { get { @@ -100,16 +100,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoResource.Get"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoResource.Get"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SynapseIPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new IPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -132,16 +132,16 @@ public virtual async Task> GetAsync( /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoResource.Get"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoResource.Get"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SynapseIPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new IPFirewallRuleInfoResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -167,12 +167,12 @@ public virtual Response Get(CancellationToken /// The cancellation token to use. public virtual async Task> DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoResource.Delete"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoResource.Delete"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(new BinaryDataOperationSource(), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new SynapseArmOperation(new BinaryDataOperationSource(), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -201,12 +201,12 @@ public virtual async Task> DeleteAsync(WaitUntil waitUn /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoResource.Delete"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoResource.Delete"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new SynapseArmOperation(new BinaryDataOperationSource(), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new SynapseArmOperation(new BinaryDataOperationSource(), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -235,16 +235,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, Cancellation /// IP firewall rule properties. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, SynapseIPFirewallRuleInfoData info, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, IPFirewallRuleInfoData info, CancellationToken cancellationToken = default) { Argument.AssertNotNull(info, nameof(info)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoResource.Update"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoResource.Update"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(new SynapseIPFirewallRuleInfoOperationSource(Client), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info).Request, response, OperationFinalStateVia.Location); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info, cancellationToken).ConfigureAwait(false); + var operation = new SynapseArmOperation(new IPFirewallRuleInfoOperationSource(Client), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -273,16 +273,16 @@ public virtual async Task> Updat /// IP firewall rule properties. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, SynapseIPFirewallRuleInfoData info, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, IPFirewallRuleInfoData info, CancellationToken cancellationToken = default) { Argument.AssertNotNull(info, nameof(info)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseIPFirewallRuleInfoResource.Update"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("IPFirewallRuleInfoResource.Update"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info, cancellationToken); - var operation = new SynapseArmOperation(new SynapseIPFirewallRuleInfoOperationSource(Client), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info).Request, response, OperationFinalStateVia.Location); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info, cancellationToken); + var operation = new SynapseArmOperation(new IPFirewallRuleInfoOperationSource(Client), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateCreateOrUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, info).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/IPFirewallRuleInfoOperationSource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/IPFirewallRuleInfoOperationSource.cs new file mode 100644 index 000000000000..19b5cc93a372 --- /dev/null +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/IPFirewallRuleInfoOperationSource.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.ResourceManager; + +namespace Azure.ResourceManager.Synapse +{ + internal class IPFirewallRuleInfoOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal IPFirewallRuleInfoOperationSource(ArmClient client) + { + _client = client; + } + + IPFirewallRuleInfoResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(document.RootElement); + return new IPFirewallRuleInfoResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(document.RootElement); + return new IPFirewallRuleInfoResource(_client, data); + } + } +} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseIPFirewallRuleInfoOperationSource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseIPFirewallRuleInfoOperationSource.cs deleted file mode 100644 index 68033881db72..000000000000 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/LongRunningOperation/SynapseIPFirewallRuleInfoOperationSource.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure; -using Azure.Core; -using Azure.ResourceManager; - -namespace Azure.ResourceManager.Synapse -{ - internal class SynapseIPFirewallRuleInfoOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal SynapseIPFirewallRuleInfoOperationSource(ArmClient client) - { - _client = client; - } - - SynapseIPFirewallRuleInfoResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(document.RootElement); - return new SynapseIPFirewallRuleInfoResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(document.RootElement); - return new SynapseIPFirewallRuleInfoResource(_client, data); - } - } -} diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoData.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoData.Serialization.cs similarity index 92% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoData.Serialization.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoData.Serialization.cs index 2f474cc88647..3ceaf265d564 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoData.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Synapse { - public partial class SynapseIPFirewallRuleInfoData : IUtf8JsonSerializable + public partial class IPFirewallRuleInfoData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SynapseIPFirewallRuleInfoData DeserializeSynapseIPFirewallRuleInfoData(JsonElement element) + internal static IPFirewallRuleInfoData DeserializeIPFirewallRuleInfoData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -113,7 +113,7 @@ internal static SynapseIPFirewallRuleInfoData DeserializeSynapseIPFirewallRuleIn continue; } } - return new SynapseIPFirewallRuleInfoData(id, name, type, systemData.Value, endIPAddress.Value, Optional.ToNullable(provisioningState), startIPAddress.Value); + return new IPFirewallRuleInfoData(id, name, type, systemData.Value, endIPAddress.Value, Optional.ToNullable(provisioningState), startIPAddress.Value); } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoListResult.Serialization.cs similarity index 66% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.Serialization.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoListResult.Serialization.cs index 4e42a1c3d2aa..f62b1fab2b82 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoListResult.Serialization.cs @@ -12,16 +12,16 @@ namespace Azure.ResourceManager.Synapse.Models { - internal partial class SynapseIPFirewallRuleInfoListResult + internal partial class IPFirewallRuleInfoListResult { - internal static SynapseIPFirewallRuleInfoListResult DeserializeSynapseIPFirewallRuleInfoListResult(JsonElement element) + internal static IPFirewallRuleInfoListResult DeserializeIPFirewallRuleInfoListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } Optional nextLink = default; - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("nextLink"u8)) @@ -35,16 +35,16 @@ internal static SynapseIPFirewallRuleInfoListResult DeserializeSynapseIPFirewall { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(item)); + array.Add(IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(item)); } value = array; continue; } } - return new SynapseIPFirewallRuleInfoListResult(nextLink.Value, Optional.ToList(value)); + return new IPFirewallRuleInfoListResult(nextLink.Value, Optional.ToList(value)); } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoListResult.cs similarity index 56% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoListResult.cs index b450e3efb5a7..c97d58c457fa 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleInfoListResult.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleInfoListResult.cs @@ -12,18 +12,18 @@ namespace Azure.ResourceManager.Synapse.Models { /// List of IP firewall rules. - internal partial class SynapseIPFirewallRuleInfoListResult + internal partial class IPFirewallRuleInfoListResult { - /// Initializes a new instance of SynapseIPFirewallRuleInfoListResult. - internal SynapseIPFirewallRuleInfoListResult() + /// Initializes a new instance of IPFirewallRuleInfoListResult. + internal IPFirewallRuleInfoListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of SynapseIPFirewallRuleInfoListResult. + /// Initializes a new instance of IPFirewallRuleInfoListResult. /// Link to next page of results. /// List of IP firewall rules. - internal SynapseIPFirewallRuleInfoListResult(string nextLink, IReadOnlyList value) + internal IPFirewallRuleInfoListResult(string nextLink, IReadOnlyList value) { NextLink = nextLink; Value = value; @@ -32,6 +32,6 @@ internal SynapseIPFirewallRuleInfoListResult(string nextLink, IReadOnlyList Link to next page of results. public string NextLink { get; } /// List of IP firewall rules. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleProperties.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleProperties.Serialization.cs similarity index 90% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleProperties.Serialization.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleProperties.Serialization.cs index bb68d6bb93f3..11ec1dddfcc9 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleProperties.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Synapse.Models { - public partial class SynapseIPFirewallRuleProperties : IUtf8JsonSerializable + public partial class IPFirewallRuleProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleProperties.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleProperties.cs similarity index 79% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleProperties.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleProperties.cs index d7e03b23e98a..c1de2041a947 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIPFirewallRuleProperties.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IPFirewallRuleProperties.cs @@ -10,10 +10,10 @@ namespace Azure.ResourceManager.Synapse.Models { /// IP firewall rule properties. - public partial class SynapseIPFirewallRuleProperties + public partial class IPFirewallRuleProperties { - /// Initializes a new instance of SynapseIPFirewallRuleProperties. - public SynapseIPFirewallRuleProperties() + /// Initializes a new instance of IPFirewallRuleProperties. + public IPFirewallRuleProperties() { } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeNodeIPAddress.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IntegrationRuntimeNodeIPAddress.Serialization.cs similarity index 76% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeNodeIPAddress.Serialization.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IntegrationRuntimeNodeIPAddress.Serialization.cs index 7cb44d16c0f0..cd33cc56682c 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeNodeIPAddress.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IntegrationRuntimeNodeIPAddress.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Synapse.Models { - public partial class SynapseIntegrationRuntimeNodeIPAddress + public partial class IntegrationRuntimeNodeIPAddress { - internal static SynapseIntegrationRuntimeNodeIPAddress DeserializeSynapseIntegrationRuntimeNodeIPAddress(JsonElement element) + internal static IntegrationRuntimeNodeIPAddress DeserializeIntegrationRuntimeNodeIPAddress(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -32,7 +32,7 @@ internal static SynapseIntegrationRuntimeNodeIPAddress DeserializeSynapseIntegra continue; } } - return new SynapseIntegrationRuntimeNodeIPAddress(ipAddress.Value); + return new IntegrationRuntimeNodeIPAddress(ipAddress.Value); } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeNodeIPAddress.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IntegrationRuntimeNodeIPAddress.cs similarity index 60% rename from sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeNodeIPAddress.cs rename to sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IntegrationRuntimeNodeIPAddress.cs index cc5871afc4d8..b600a66443cc 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeNodeIPAddress.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/IntegrationRuntimeNodeIPAddress.cs @@ -10,16 +10,16 @@ namespace Azure.ResourceManager.Synapse.Models { /// The IP address of self-hosted integration runtime node. - public partial class SynapseIntegrationRuntimeNodeIPAddress + public partial class IntegrationRuntimeNodeIPAddress { - /// Initializes a new instance of SynapseIntegrationRuntimeNodeIPAddress. - internal SynapseIntegrationRuntimeNodeIPAddress() + /// Initializes a new instance of IntegrationRuntimeNodeIPAddress. + internal IntegrationRuntimeNodeIPAddress() { } - /// Initializes a new instance of SynapseIntegrationRuntimeNodeIPAddress. + /// Initializes a new instance of IntegrationRuntimeNodeIPAddress. /// The IP address of self-hosted integration runtime node. - internal SynapseIntegrationRuntimeNodeIPAddress(IPAddress ipAddress) + internal IntegrationRuntimeNodeIPAddress(IPAddress ipAddress) { IPAddress = ipAddress; } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/ReplaceAllIPFirewallRulesContent.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/ReplaceAllIPFirewallRulesContent.cs index f92ede849079..df71bdac87d9 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/ReplaceAllIPFirewallRulesContent.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/ReplaceAllIPFirewallRulesContent.cs @@ -16,10 +16,10 @@ public partial class ReplaceAllIPFirewallRulesContent /// Initializes a new instance of ReplaceAllIPFirewallRulesContent. public ReplaceAllIPFirewallRulesContent() { - IPFirewallRules = new ChangeTrackingDictionary(); + IPFirewallRules = new ChangeTrackingDictionary(); } /// IP firewall rule properties. - public IDictionary IPFirewallRules { get; } + public IDictionary IPFirewallRules { get; } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.Serialization.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.Serialization.cs index d4a42b3a5e58..48a4d2084d3e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.Serialization.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.Serialization.cs @@ -15,10 +15,10 @@ public partial class SynapseEntityReference : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(IntegrationRuntimeEntityReferenceType)) + if (Optional.IsDefined(ReferenceType)) { writer.WritePropertyName("type"u8); - writer.WriteStringValue(IntegrationRuntimeEntityReferenceType.Value.ToString()); + writer.WriteStringValue(ReferenceType.Value.ToString()); } if (Optional.IsDefined(ReferenceName)) { diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.cs index 38fc0c8f130e..5bba658aed46 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseEntityReference.cs @@ -16,16 +16,16 @@ public SynapseEntityReference() } /// Initializes a new instance of SynapseEntityReference. - /// The type of this referenced entity. + /// The type of this referenced entity. /// The name of this referenced entity. - internal SynapseEntityReference(SynapseIntegrationRuntimeEntityReferenceType? integrationRuntimeEntityReferenceType, string referenceName) + internal SynapseEntityReference(SynapseIntegrationRuntimeEntityReferenceType? referenceType, string referenceName) { - IntegrationRuntimeEntityReferenceType = integrationRuntimeEntityReferenceType; + ReferenceType = referenceType; ReferenceName = referenceName; } /// The type of this referenced entity. - public SynapseIntegrationRuntimeEntityReferenceType? IntegrationRuntimeEntityReferenceType { get; set; } + public SynapseIntegrationRuntimeEntityReferenceType? ReferenceType { get; set; } /// The name of this referenced entity. public string ReferenceName { get; set; } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeStatus.cs index e1f2e0d846c1..ccb752888287 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseIntegrationRuntimeStatus.cs @@ -25,20 +25,20 @@ internal SynapseIntegrationRuntimeStatus() } /// Initializes a new instance of SynapseIntegrationRuntimeStatus. - /// Type of integration runtime. + /// Type of integration runtime. /// The workspace name which the integration runtime belong to. /// The state of integration runtime. /// Additional Properties. - internal SynapseIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties) + internal SynapseIntegrationRuntimeStatus(IntegrationRuntimeType integrationRuntimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties) { - RuntimeType = runtimeType; + IntegrationRuntimeType = integrationRuntimeType; DataFactoryName = dataFactoryName; State = state; AdditionalProperties = additionalProperties; } /// Type of integration runtime. - internal IntegrationRuntimeType RuntimeType { get; set; } + internal IntegrationRuntimeType IntegrationRuntimeType { get; set; } /// The workspace name which the integration runtime belong to. public string DataFactoryName { get; } /// The state of integration runtime. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs index 3d2221801c55..d74cee556ffb 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseManagedIntegrationRuntimeStatus.cs @@ -19,11 +19,11 @@ internal SynapseManagedIntegrationRuntimeStatus() { Nodes = new ChangeTrackingList(); OtherErrors = new ChangeTrackingList(); - RuntimeType = IntegrationRuntimeType.Managed; + IntegrationRuntimeType = IntegrationRuntimeType.Managed; } /// Initializes a new instance of SynapseManagedIntegrationRuntimeStatus. - /// Type of integration runtime. + /// Type of integration runtime. /// The workspace name which the integration runtime belong to. /// The state of integration runtime. /// Additional Properties. @@ -31,13 +31,13 @@ internal SynapseManagedIntegrationRuntimeStatus() /// The list of nodes for managed integration runtime. /// The errors that occurred on this integration runtime. /// The last operation result that occurred on this integration runtime. - internal SynapseManagedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, IReadOnlyList nodes, IReadOnlyList otherErrors, SynapseManagedIntegrationRuntimeOperationResult lastOperation) : base(runtimeType, dataFactoryName, state, additionalProperties) + internal SynapseManagedIntegrationRuntimeStatus(IntegrationRuntimeType integrationRuntimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, IReadOnlyList nodes, IReadOnlyList otherErrors, SynapseManagedIntegrationRuntimeOperationResult lastOperation) : base(integrationRuntimeType, dataFactoryName, state, additionalProperties) { CreateOn = createOn; Nodes = nodes; OtherErrors = otherErrors; LastOperation = lastOperation; - RuntimeType = runtimeType; + IntegrationRuntimeType = integrationRuntimeType; } /// The time at which the integration runtime was created, in ISO8601 format. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs index 2d4b0bf8bd90..2942d81aa603 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/SynapseSelfHostedIntegrationRuntimeStatus.cs @@ -22,11 +22,11 @@ internal SynapseSelfHostedIntegrationRuntimeStatus() ServiceUrls = new ChangeTrackingList(); Links = new ChangeTrackingList(); NewerVersions = new ChangeTrackingList(); - RuntimeType = IntegrationRuntimeType.SelfHosted; + IntegrationRuntimeType = IntegrationRuntimeType.SelfHosted; } /// Initializes a new instance of SynapseSelfHostedIntegrationRuntimeStatus. - /// Type of integration runtime. + /// Type of integration runtime. /// The workspace name which the integration runtime belong to. /// The state of integration runtime. /// Additional Properties. @@ -49,7 +49,7 @@ internal SynapseSelfHostedIntegrationRuntimeStatus() /// The estimated time when the self-hosted integration runtime will be updated. /// The service region of the integration runtime. /// The newer versions on download center. - internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, string taskQueueId, string nodeCommunicationChannelEncryptionMode, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IReadOnlyList nodes, DateTimeOffset? scheduledUpdateOn, string updateDelayOffset, string localTimeZoneOffset, IReadOnlyDictionary capabilities, IReadOnlyList serviceUrls, SynapseIntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, IReadOnlyList links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta, string serviceRegion, IReadOnlyList newerVersions) : base(runtimeType, dataFactoryName, state, additionalProperties) + internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType integrationRuntimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties, DateTimeOffset? createOn, string taskQueueId, string nodeCommunicationChannelEncryptionMode, SynapseIntegrationRuntimeInternalChannelEncryptionMode? internalChannelEncryption, string version, IReadOnlyList nodes, DateTimeOffset? scheduledUpdateOn, string updateDelayOffset, string localTimeZoneOffset, IReadOnlyDictionary capabilities, IReadOnlyList serviceUrls, SynapseIntegrationRuntimeAutoUpdate? autoUpdate, string versionStatus, IReadOnlyList links, string pushedVersion, string latestVersion, DateTimeOffset? autoUpdateEta, string serviceRegion, IReadOnlyList newerVersions) : base(integrationRuntimeType, dataFactoryName, state, additionalProperties) { CreateOn = createOn; TaskQueueId = taskQueueId; @@ -70,7 +70,7 @@ internal SynapseSelfHostedIntegrationRuntimeStatus(IntegrationRuntimeType runtim AutoUpdateEta = autoUpdateEta; ServiceRegion = serviceRegion; NewerVersions = newerVersions; - RuntimeType = runtimeType; + IntegrationRuntimeType = integrationRuntimeType; } /// The time at which the integration runtime was created, in ISO8601 format. diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/UnknownIntegrationRuntimeStatus.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/UnknownIntegrationRuntimeStatus.cs index 3ebe29897d33..5d8e128395a4 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/UnknownIntegrationRuntimeStatus.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/Models/UnknownIntegrationRuntimeStatus.cs @@ -14,13 +14,13 @@ namespace Azure.ResourceManager.Synapse.Models internal partial class UnknownIntegrationRuntimeStatus : SynapseIntegrationRuntimeStatus { /// Initializes a new instance of UnknownIntegrationRuntimeStatus. - /// Type of integration runtime. + /// Type of integration runtime. /// The workspace name which the integration runtime belong to. /// The state of integration runtime. /// Additional Properties. - internal UnknownIntegrationRuntimeStatus(IntegrationRuntimeType runtimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties) : base(runtimeType, dataFactoryName, state, additionalProperties) + internal UnknownIntegrationRuntimeStatus(IntegrationRuntimeType integrationRuntimeType, string dataFactoryName, SynapseIntegrationRuntimeState? state, IReadOnlyDictionary additionalProperties) : base(integrationRuntimeType, dataFactoryName, state, additionalProperties) { - RuntimeType = runtimeType; + IntegrationRuntimeType = integrationRuntimeType; } } } diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs index 809159cf80a8..105a8e11287e 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IntegrationRuntimeNodeIpAddressRestOperations.cs @@ -71,7 +71,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -85,9 +85,9 @@ public async Task> GetAsync(str { case 200: { - SynapseIntegrationRuntimeNodeIPAddress value = default; + IntegrationRuntimeNodeIPAddress value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SynapseIntegrationRuntimeNodeIPAddress.DeserializeSynapseIntegrationRuntimeNodeIPAddress(document.RootElement); + value = IntegrationRuntimeNodeIPAddress.DeserializeIntegrationRuntimeNodeIPAddress(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -104,7 +104,7 @@ public async Task> GetAsync(str /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string integrationRuntimeName, string nodeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -118,9 +118,9 @@ public Response Get(string subscriptionI { case 200: { - SynapseIntegrationRuntimeNodeIPAddress value = default; + IntegrationRuntimeNodeIPAddress value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SynapseIntegrationRuntimeNodeIPAddress.DeserializeSynapseIntegrationRuntimeNodeIPAddress(document.RootElement); + value = IntegrationRuntimeNodeIPAddress.DeserializeIntegrationRuntimeNodeIPAddress(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IpFirewallRulesRestOperations.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IpFirewallRulesRestOperations.cs index 475f35525496..e3705d9221d8 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IpFirewallRulesRestOperations.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/RestOperations/IpFirewallRulesRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByWorkspaceRequest(string subscriptionId, string /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByWorkspaceAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> ListByWorkspaceAsync(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByWorkspace { case 200: { - SynapseIPFirewallRuleInfoListResult value = default; + IPFirewallRuleInfoListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SynapseIPFirewallRuleInfoListResult.DeserializeSynapseIPFirewallRuleInfoListResult(document.RootElement); + value = IPFirewallRuleInfoListResult.DeserializeIPFirewallRuleInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByWorkspace /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ListByWorkspace(string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByWorkspace(string subs { case 200: { - SynapseIPFirewallRuleInfoListResult value = default; + IPFirewallRuleInfoListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SynapseIPFirewallRuleInfoListResult.DeserializeSynapseIPFirewallRuleInfoListResult(document.RootElement); + value = IPFirewallRuleInfoListResult.DeserializeIPFirewallRuleInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -116,7 +116,7 @@ public Response ListByWorkspace(string subs } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, SynapseIPFirewallRuleInfoData info) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, IPFirewallRuleInfoData info) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -151,7 +151,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, SynapseIPFirewallRuleInfoData info, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, IPFirewallRuleInfoData info, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -181,7 +181,7 @@ public async Task CreateOrUpdateAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, SynapseIPFirewallRuleInfoData info, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, IPFirewallRuleInfoData info, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -310,7 +310,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -323,13 +323,13 @@ public async Task> GetAsync(string subsc { case 200: { - SynapseIPFirewallRuleInfoData value = default; + IPFirewallRuleInfoData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(document.RootElement); + value = IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SynapseIPFirewallRuleInfoData)null, message.Response); + return Response.FromValue((IPFirewallRuleInfoData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -343,7 +343,7 @@ public async Task> GetAsync(string subsc /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string workspaceName, string ruleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -356,13 +356,13 @@ public Response Get(string subscriptionId, string { case 200: { - SynapseIPFirewallRuleInfoData value = default; + IPFirewallRuleInfoData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SynapseIPFirewallRuleInfoData.DeserializeSynapseIPFirewallRuleInfoData(document.RootElement); + value = IPFirewallRuleInfoData.DeserializeIPFirewallRuleInfoData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SynapseIPFirewallRuleInfoData)null, message.Response); + return Response.FromValue((IPFirewallRuleInfoData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -469,7 +469,7 @@ internal HttpMessage CreateListByWorkspaceNextPageRequest(string nextLink, strin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByWorkspaceNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public async Task> ListByWorkspaceNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -482,9 +482,9 @@ public async Task> ListByWorkspace { case 200: { - SynapseIPFirewallRuleInfoListResult value = default; + IPFirewallRuleInfoListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SynapseIPFirewallRuleInfoListResult.DeserializeSynapseIPFirewallRuleInfoListResult(document.RootElement); + value = IPFirewallRuleInfoListResult.DeserializeIPFirewallRuleInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -500,7 +500,7 @@ public async Task> ListByWorkspace /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByWorkspaceNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) + public Response ListByWorkspaceNextPage(string nextLink, string subscriptionId, string resourceGroupName, string workspaceName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -513,9 +513,9 @@ public Response ListByWorkspaceNextPage(str { case 200: { - SynapseIPFirewallRuleInfoListResult value = default; + IPFirewallRuleInfoListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SynapseIPFirewallRuleInfoListResult.DeserializeSynapseIPFirewallRuleInfoListResult(document.RootElement); + value = IPFirewallRuleInfoListResult.DeserializeIPFirewallRuleInfoListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIntegrationRuntimeResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIntegrationRuntimeResource.cs index a15d1d3fa156..0327656ae973 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIntegrationRuntimeResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseIntegrationRuntimeResource.cs @@ -713,7 +713,7 @@ public virtual ArmOperation DisableInteractiveQuery(WaitUntil waitUntil, Cancell /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetIntegrationRuntimeNodeIPAddressAsync(string nodeName, CancellationToken cancellationToken = default) + public virtual async Task> GetIntegrationRuntimeNodeIPAddressAsync(string nodeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(nodeName, nameof(nodeName)); @@ -748,7 +748,7 @@ public virtual async Task> GetI /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetIntegrationRuntimeNodeIPAddress(string nodeName, CancellationToken cancellationToken = default) + public virtual Response GetIntegrationRuntimeNodeIPAddress(string nodeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(nodeName, nameof(nodeName)); diff --git a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs index 61f3185f5a7a..3cf27d72ac66 100644 --- a/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs +++ b/sdk/synapse/Azure.ResourceManager.Synapse/src/Generated/SynapseWorkspaceResource.cs @@ -37,8 +37,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _synapseWorkspaceWorkspacesClientDiagnostics; private readonly WorkspacesRestOperations _synapseWorkspaceWorkspacesRestClient; - private readonly ClientDiagnostics _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics; - private readonly IpFirewallRulesRestOperations _synapseIPFirewallRuleInfoIPFirewallRulesRestClient; + private readonly ClientDiagnostics _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics; + private readonly IpFirewallRulesRestOperations _ipFirewallRuleInfoIPFirewallRulesRestClient; private readonly ClientDiagnostics _workspaceManagedSqlServerUsagesClientDiagnostics; private readonly WorkspaceManagedSqlServerUsagesRestOperations _workspaceManagedSqlServerUsagesRestClient; private readonly SynapseWorkspaceData _data; @@ -65,9 +65,9 @@ internal SynapseWorkspaceResource(ArmClient client, ResourceIdentifier id) : bas _synapseWorkspaceWorkspacesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string synapseWorkspaceWorkspacesApiVersion); _synapseWorkspaceWorkspacesRestClient = new WorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, synapseWorkspaceWorkspacesApiVersion); - _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", SynapseIPFirewallRuleInfoResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(SynapseIPFirewallRuleInfoResource.ResourceType, out string synapseIPFirewallRuleInfoIPFirewallRulesApiVersion); - _synapseIPFirewallRuleInfoIPFirewallRulesRestClient = new IpFirewallRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, synapseIPFirewallRuleInfoIPFirewallRulesApiVersion); + _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", IPFirewallRuleInfoResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(IPFirewallRuleInfoResource.ResourceType, out string ipFirewallRuleInfoIPFirewallRulesApiVersion); + _ipFirewallRuleInfoIPFirewallRulesRestClient = new IpFirewallRulesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ipFirewallRuleInfoIPFirewallRulesApiVersion); _workspaceManagedSqlServerUsagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Synapse", ProviderConstants.DefaultProviderNamespace, Diagnostics); _workspaceManagedSqlServerUsagesRestClient = new WorkspaceManagedSqlServerUsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -148,11 +148,11 @@ public virtual Response GetSynapseAadOnlyA return GetSynapseAadOnlyAuthentications().Get(azureADOnlyAuthenticationName, cancellationToken); } - /// Gets a collection of SynapseIPFirewallRuleInfoResources in the SynapseWorkspace. - /// An object representing collection of SynapseIPFirewallRuleInfoResources and their operations over a SynapseIPFirewallRuleInfoResource. - public virtual SynapseIPFirewallRuleInfoCollection GetSynapseIPFirewallRuleInfos() + /// Gets a collection of IPFirewallRuleInfoResources in the SynapseWorkspace. + /// An object representing collection of IPFirewallRuleInfoResources and their operations over a IPFirewallRuleInfoResource. + public virtual IPFirewallRuleInfoCollection GetIPFirewallRuleInfos() { - return GetCachedClient(Client => new SynapseIPFirewallRuleInfoCollection(Client, Id)); + return GetCachedClient(Client => new IPFirewallRuleInfoCollection(Client, Id)); } /// @@ -173,9 +173,9 @@ public virtual SynapseIPFirewallRuleInfoCollection GetSynapseIPFirewallRuleInfos /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetSynapseIPFirewallRuleInfoAsync(string ruleName, CancellationToken cancellationToken = default) + public virtual async Task> GetIPFirewallRuleInfoAsync(string ruleName, CancellationToken cancellationToken = default) { - return await GetSynapseIPFirewallRuleInfos().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); + return await GetIPFirewallRuleInfos().GetAsync(ruleName, cancellationToken).ConfigureAwait(false); } /// @@ -196,9 +196,9 @@ public virtual async Task> GetSynaps /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetSynapseIPFirewallRuleInfo(string ruleName, CancellationToken cancellationToken = default) + public virtual Response GetIPFirewallRuleInfo(string ruleName, CancellationToken cancellationToken = default) { - return GetSynapseIPFirewallRuleInfos().Get(ruleName, cancellationToken); + return GetIPFirewallRuleInfos().Get(ruleName, cancellationToken); } /// Gets a collection of SynapseKeyResources in the SynapseWorkspace. @@ -1334,12 +1334,12 @@ public virtual async Task> { Argument.AssertNotNull(content, nameof(content)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseWorkspaceResource.ReplaceAllIpFirewallRule"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseWorkspaceResource.ReplaceAllIpFirewallRule"); scope.Start(); try { - var response = await _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.ReplaceAllAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new SynapseArmOperation(new ReplaceAllFirewallRulesOperationResultOperationSource(), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateReplaceAllRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = await _ipFirewallRuleInfoIPFirewallRulesRestClient.ReplaceAllAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new SynapseArmOperation(new ReplaceAllFirewallRulesOperationResultOperationSource(), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateReplaceAllRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -1372,12 +1372,12 @@ public virtual ArmOperation ReplaceAllIp { Argument.AssertNotNull(content, nameof(content)); - using var scope = _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseWorkspaceResource.ReplaceAllIpFirewallRule"); + using var scope = _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics.CreateScope("SynapseWorkspaceResource.ReplaceAllIpFirewallRule"); scope.Start(); try { - var response = _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.ReplaceAll(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); - var operation = new SynapseArmOperation(new ReplaceAllFirewallRulesOperationResultOperationSource(), _synapseIPFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _synapseIPFirewallRuleInfoIPFirewallRulesRestClient.CreateReplaceAllRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + var response = _ipFirewallRuleInfoIPFirewallRulesRestClient.ReplaceAll(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new SynapseArmOperation(new ReplaceAllFirewallRulesOperationResultOperationSource(), _ipFirewallRuleInfoIPFirewallRulesClientDiagnostics, Pipeline, _ipFirewallRuleInfoIPFirewallRulesRestClient.CreateReplaceAllRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs index 87c034749a91..31423bd1d445 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/ArmAppServiceModelFactory.cs @@ -753,7 +753,7 @@ public static InboundEnvironmentEndpoint InboundEnvironmentEndpoint(string descr return new InboundEnvironmentEndpoint(description, endpoints?.ToList(), ports?.ToList()); } - /// Initializes a new instance of AppServiceWorkerPoolData. + /// Initializes a new instance of WorkerPoolData. /// The id. /// The name. /// The resourceType. @@ -765,12 +765,12 @@ public static InboundEnvironmentEndpoint InboundEnvironmentEndpoint(string descr /// Number of instances in the worker pool. /// Names of all instances in the worker pool (read only). /// Kind of resource. - /// A new instance for mocking. - public static AppServiceWorkerPoolData AppServiceWorkerPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppServiceSkuDescription sku = null, int? workerSizeId = null, ComputeModeOption? computeMode = null, string workerSize = null, int? workerCount = null, IEnumerable instanceNames = null, string kind = null) + /// A new instance for mocking. + public static WorkerPoolData WorkerPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, AppServiceSkuDescription sku = null, int? workerSizeId = null, ComputeModeOption? computeMode = null, string workerSize = null, int? workerCount = null, IEnumerable instanceNames = null, string kind = null) { instanceNames ??= new List(); - return new AppServiceWorkerPoolData(id, name, resourceType, systemData, sku, workerSizeId, computeMode, workerSize, workerCount, instanceNames?.ToList(), kind); + return new WorkerPoolData(id, name, resourceType, systemData, sku, workerSizeId, computeMode, workerSize, workerCount, instanceNames?.ToList(), kind); } /// Initializes a new instance of ResourceMetricDefinition. @@ -1169,7 +1169,7 @@ public static WebSiteData WebSiteData(ResourceIdentifier id = null, string name /// List of Azure Storage Accounts. /// Property to allow or block all public traffic. /// A new instance for mocking. - public static SiteConfigProperties SiteConfigProperties(int? numberOfWorkers = null, IEnumerable defaultDocuments = null, string netFrameworkVersion = null, string phpVersion = null, string pythonVersion = null, string nodeVersion = null, string powerShellVersion = null, string linuxFxVersion = null, string windowsFxVersion = null, bool? isRequestTracingEnabled = null, DateTimeOffset? requestTracingExpirationOn = null, bool? isRemoteDebuggingEnabled = null, string remoteDebuggingVersion = null, bool? isHttpLoggingEnabled = null, bool? useManagedIdentityCreds = null, string acrUserManagedIdentityId = null, int? logsDirectorySizeLimit = null, bool? isDetailedErrorLoggingEnabled = null, string publishingUsername = null, IEnumerable appSettings = null, IEnumerable connectionStrings = null, SiteMachineKey machineKey = null, IEnumerable handlerMappings = null, string documentRoot = null, ScmType? scmType = null, bool? use32BitWorkerProcess = null, bool? isWebSocketsEnabled = null, bool? isAlwaysOn = null, string javaVersion = null, string javaContainer = null, string javaContainerVersion = null, string appCommandLine = null, ManagedPipelineMode? managedPipelineMode = null, IEnumerable virtualApplications = null, SiteLoadBalancing? loadBalancing = null, IEnumerable experimentsRampUpRules = null, SiteLimits limits = null, bool? isAutoHealEnabled = null, AutoHealRules autoHealRules = null, string tracingOptions = null, string vnetName = null, bool? isVnetRouteAllEnabled = null, int? vnetPrivatePortsCount = null, AppServiceCorsSettings cors = null, WebAppPushSettings push = null, Uri apiDefinitionUri = null, string apiManagementConfigId = null, string autoSwapSlotName = null, bool? isLocalMySqlEnabled = null, int? managedServiceIdentityId = null, int? xManagedServiceIdentityId = null, string keyVaultReferenceIdentity = null, IEnumerable ipSecurityRestrictions = null, IEnumerable scmIPSecurityRestrictions = null, bool? allowIPSecurityRestrictionsForScmToUseMain = null, bool? isHttp20Enabled = null, AppServiceSupportedTlsVersion? minTlsVersion = null, AppServiceSupportedTlsVersion? scmMinTlsVersion = null, AppServiceFtpsState? ftpsState = null, int? preWarmedInstanceCount = null, int? functionAppScaleLimit = null, string healthCheckPath = null, bool? isFunctionsRuntimeScaleMonitoringEnabled = null, string websiteTimeZone = null, int? minimumElasticInstanceCount = null, IDictionary azureStorageAccounts = null, string publicNetworkAccess = null) + public static SiteConfigProperties SiteConfigProperties(int? numberOfWorkers = null, IEnumerable defaultDocuments = null, string netFrameworkVersion = null, string phpVersion = null, string pythonVersion = null, string nodeVersion = null, string powerShellVersion = null, string linuxFxVersion = null, string windowsFxVersion = null, bool? isRequestTracingEnabled = null, DateTimeOffset? requestTracingExpirationOn = null, bool? isRemoteDebuggingEnabled = null, string remoteDebuggingVersion = null, bool? isHttpLoggingEnabled = null, bool? useManagedIdentityCreds = null, string acrUserManagedIdentityId = null, int? logsDirectorySizeLimit = null, bool? isDetailedErrorLoggingEnabled = null, string publishingUsername = null, IEnumerable appSettings = null, IEnumerable connectionStrings = null, SiteMachineKey machineKey = null, IEnumerable handlerMappings = null, string documentRoot = null, ScmType? scmType = null, bool? use32BitWorkerProcess = null, bool? isWebSocketsEnabled = null, bool? isAlwaysOn = null, string javaVersion = null, string javaContainer = null, string javaContainerVersion = null, string appCommandLine = null, ManagedPipelineMode? managedPipelineMode = null, IEnumerable virtualApplications = null, SiteLoadBalancing? loadBalancing = null, IEnumerable experimentsRampUpRules = null, SiteLimits limits = null, bool? isAutoHealEnabled = null, AutoHealRules autoHealRules = null, string tracingOptions = null, string vnetName = null, bool? isVnetRouteAllEnabled = null, int? vnetPrivatePortsCount = null, AppServiceCorsSettings cors = null, WebAppPushSettings push = null, Uri apiDefinitionUri = null, string apiManagementConfigId = null, string autoSwapSlotName = null, bool? isLocalMySqlEnabled = null, int? managedServiceIdentityId = null, int? xManagedServiceIdentityId = null, string keyVaultReferenceIdentity = null, IEnumerable ipSecurityRestrictions = null, IEnumerable scmIPSecurityRestrictions = null, bool? allowIPSecurityRestrictionsForScmToUseMain = null, bool? isHttp20Enabled = null, AppServiceSupportedTlsVersion? minTlsVersion = null, AppServiceSupportedTlsVersion? scmMinTlsVersion = null, AppServiceFtpsState? ftpsState = null, int? preWarmedInstanceCount = null, int? functionAppScaleLimit = null, string healthCheckPath = null, bool? isFunctionsRuntimeScaleMonitoringEnabled = null, string websiteTimeZone = null, int? minimumElasticInstanceCount = null, IDictionary azureStorageAccounts = null, string publicNetworkAccess = null) { defaultDocuments ??= new List(); appSettings ??= new List(); @@ -1177,8 +1177,8 @@ public static SiteConfigProperties SiteConfigProperties(int? numberOfWorkers = n handlerMappings ??= new List(); virtualApplications ??= new List(); experimentsRampUpRules ??= new List(); - ipSecurityRestrictions ??= new List(); - scmIPSecurityRestrictions ??= new List(); + ipSecurityRestrictions ??= new List(); + scmIPSecurityRestrictions ??= new List(); azureStorageAccounts ??= new Dictionary(); return new SiteConfigProperties(numberOfWorkers, defaultDocuments?.ToList(), netFrameworkVersion, phpVersion, pythonVersion, nodeVersion, powerShellVersion, linuxFxVersion, windowsFxVersion, isRequestTracingEnabled, requestTracingExpirationOn, isRemoteDebuggingEnabled, remoteDebuggingVersion, isHttpLoggingEnabled, useManagedIdentityCreds, acrUserManagedIdentityId, logsDirectorySizeLimit, isDetailedErrorLoggingEnabled, publishingUsername, appSettings?.ToList(), connectionStrings?.ToList(), machineKey, handlerMappings?.ToList(), documentRoot, scmType, use32BitWorkerProcess, isWebSocketsEnabled, isAlwaysOn, javaVersion, javaContainer, javaContainerVersion, appCommandLine, managedPipelineMode, virtualApplications?.ToList(), loadBalancing, experimentsRampUpRules != null ? new RoutingRuleExperiments(experimentsRampUpRules?.ToList()) : null, limits, isAutoHealEnabled, autoHealRules, tracingOptions, vnetName, isVnetRouteAllEnabled, vnetPrivatePortsCount, cors, push, apiDefinitionUri != null ? new AppServiceApiDefinitionInfo(apiDefinitionUri) : null, apiManagementConfigId != null ? new ApiManagementConfig(apiManagementConfigId) : null, autoSwapSlotName, isLocalMySqlEnabled, managedServiceIdentityId, xManagedServiceIdentityId, keyVaultReferenceIdentity, ipSecurityRestrictions?.ToList(), scmIPSecurityRestrictions?.ToList(), allowIPSecurityRestrictionsForScmToUseMain, isHttp20Enabled, minTlsVersion, scmMinTlsVersion, ftpsState, preWarmedInstanceCount, functionAppScaleLimit, healthCheckPath, isFunctionsRuntimeScaleMonitoringEnabled, websiteTimeZone, minimumElasticInstanceCount, azureStorageAccounts, publicNetworkAccess); @@ -2862,7 +2862,7 @@ public static CsmPublishingCredentialsPoliciesEntityData CsmPublishingCredential /// Property to allow or block all public traffic. /// Kind of resource. /// A new instance for mocking. - public static SiteConfigData SiteConfigData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? numberOfWorkers = null, IEnumerable defaultDocuments = null, string netFrameworkVersion = null, string phpVersion = null, string pythonVersion = null, string nodeVersion = null, string powerShellVersion = null, string linuxFxVersion = null, string windowsFxVersion = null, bool? isRequestTracingEnabled = null, DateTimeOffset? requestTracingExpirationOn = null, bool? isRemoteDebuggingEnabled = null, string remoteDebuggingVersion = null, bool? isHttpLoggingEnabled = null, bool? useManagedIdentityCreds = null, string acrUserManagedIdentityId = null, int? logsDirectorySizeLimit = null, bool? isDetailedErrorLoggingEnabled = null, string publishingUsername = null, IEnumerable appSettings = null, IEnumerable connectionStrings = null, SiteMachineKey machineKey = null, IEnumerable handlerMappings = null, string documentRoot = null, ScmType? scmType = null, bool? use32BitWorkerProcess = null, bool? isWebSocketsEnabled = null, bool? isAlwaysOn = null, string javaVersion = null, string javaContainer = null, string javaContainerVersion = null, string appCommandLine = null, ManagedPipelineMode? managedPipelineMode = null, IEnumerable virtualApplications = null, SiteLoadBalancing? loadBalancing = null, IEnumerable experimentsRampUpRules = null, SiteLimits limits = null, bool? isAutoHealEnabled = null, AutoHealRules autoHealRules = null, string tracingOptions = null, string vnetName = null, bool? isVnetRouteAllEnabled = null, int? vnetPrivatePortsCount = null, AppServiceCorsSettings cors = null, WebAppPushSettings push = null, Uri apiDefinitionUri = null, string apiManagementConfigId = null, string autoSwapSlotName = null, bool? isLocalMySqlEnabled = null, int? managedServiceIdentityId = null, int? xManagedServiceIdentityId = null, string keyVaultReferenceIdentity = null, IEnumerable ipSecurityRestrictions = null, IEnumerable scmIPSecurityRestrictions = null, bool? allowIPSecurityRestrictionsForScmToUseMain = null, bool? isHttp20Enabled = null, AppServiceSupportedTlsVersion? minTlsVersion = null, AppServiceSupportedTlsVersion? scmMinTlsVersion = null, AppServiceFtpsState? ftpsState = null, int? preWarmedInstanceCount = null, int? functionAppScaleLimit = null, string healthCheckPath = null, bool? isFunctionsRuntimeScaleMonitoringEnabled = null, string websiteTimeZone = null, int? minimumElasticInstanceCount = null, IDictionary azureStorageAccounts = null, string publicNetworkAccess = null, string kind = null) + public static SiteConfigData SiteConfigData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, int? numberOfWorkers = null, IEnumerable defaultDocuments = null, string netFrameworkVersion = null, string phpVersion = null, string pythonVersion = null, string nodeVersion = null, string powerShellVersion = null, string linuxFxVersion = null, string windowsFxVersion = null, bool? isRequestTracingEnabled = null, DateTimeOffset? requestTracingExpirationOn = null, bool? isRemoteDebuggingEnabled = null, string remoteDebuggingVersion = null, bool? isHttpLoggingEnabled = null, bool? useManagedIdentityCreds = null, string acrUserManagedIdentityId = null, int? logsDirectorySizeLimit = null, bool? isDetailedErrorLoggingEnabled = null, string publishingUsername = null, IEnumerable appSettings = null, IEnumerable connectionStrings = null, SiteMachineKey machineKey = null, IEnumerable handlerMappings = null, string documentRoot = null, ScmType? scmType = null, bool? use32BitWorkerProcess = null, bool? isWebSocketsEnabled = null, bool? isAlwaysOn = null, string javaVersion = null, string javaContainer = null, string javaContainerVersion = null, string appCommandLine = null, ManagedPipelineMode? managedPipelineMode = null, IEnumerable virtualApplications = null, SiteLoadBalancing? loadBalancing = null, IEnumerable experimentsRampUpRules = null, SiteLimits limits = null, bool? isAutoHealEnabled = null, AutoHealRules autoHealRules = null, string tracingOptions = null, string vnetName = null, bool? isVnetRouteAllEnabled = null, int? vnetPrivatePortsCount = null, AppServiceCorsSettings cors = null, WebAppPushSettings push = null, Uri apiDefinitionUri = null, string apiManagementConfigId = null, string autoSwapSlotName = null, bool? isLocalMySqlEnabled = null, int? managedServiceIdentityId = null, int? xManagedServiceIdentityId = null, string keyVaultReferenceIdentity = null, IEnumerable ipSecurityRestrictions = null, IEnumerable scmIPSecurityRestrictions = null, bool? allowIPSecurityRestrictionsForScmToUseMain = null, bool? isHttp20Enabled = null, AppServiceSupportedTlsVersion? minTlsVersion = null, AppServiceSupportedTlsVersion? scmMinTlsVersion = null, AppServiceFtpsState? ftpsState = null, int? preWarmedInstanceCount = null, int? functionAppScaleLimit = null, string healthCheckPath = null, bool? isFunctionsRuntimeScaleMonitoringEnabled = null, string websiteTimeZone = null, int? minimumElasticInstanceCount = null, IDictionary azureStorageAccounts = null, string publicNetworkAccess = null, string kind = null) { defaultDocuments ??= new List(); appSettings ??= new List(); @@ -2870,8 +2870,8 @@ public static SiteConfigData SiteConfigData(ResourceIdentifier id = null, string handlerMappings ??= new List(); virtualApplications ??= new List(); experimentsRampUpRules ??= new List(); - ipSecurityRestrictions ??= new List(); - scmIPSecurityRestrictions ??= new List(); + ipSecurityRestrictions ??= new List(); + scmIPSecurityRestrictions ??= new List(); azureStorageAccounts ??= new Dictionary(); return new SiteConfigData(id, name, resourceType, systemData, numberOfWorkers, defaultDocuments?.ToList(), netFrameworkVersion, phpVersion, pythonVersion, nodeVersion, powerShellVersion, linuxFxVersion, windowsFxVersion, isRequestTracingEnabled, requestTracingExpirationOn, isRemoteDebuggingEnabled, remoteDebuggingVersion, isHttpLoggingEnabled, useManagedIdentityCreds, acrUserManagedIdentityId, logsDirectorySizeLimit, isDetailedErrorLoggingEnabled, publishingUsername, appSettings?.ToList(), connectionStrings?.ToList(), machineKey, handlerMappings?.ToList(), documentRoot, scmType, use32BitWorkerProcess, isWebSocketsEnabled, isAlwaysOn, javaVersion, javaContainer, javaContainerVersion, appCommandLine, managedPipelineMode, virtualApplications?.ToList(), loadBalancing, experimentsRampUpRules != null ? new RoutingRuleExperiments(experimentsRampUpRules?.ToList()) : null, limits, isAutoHealEnabled, autoHealRules, tracingOptions, vnetName, isVnetRouteAllEnabled, vnetPrivatePortsCount, cors, push, apiDefinitionUri != null ? new AppServiceApiDefinitionInfo(apiDefinitionUri) : null, apiManagementConfigId != null ? new ApiManagementConfig(apiManagementConfigId) : null, autoSwapSlotName, isLocalMySqlEnabled, managedServiceIdentityId, xManagedServiceIdentityId, keyVaultReferenceIdentity, ipSecurityRestrictions?.ToList(), scmIPSecurityRestrictions?.ToList(), allowIPSecurityRestrictionsForScmToUseMain, isHttp20Enabled, minTlsVersion, scmMinTlsVersion, ftpsState, preWarmedInstanceCount, functionAppScaleLimit, healthCheckPath, isFunctionsRuntimeScaleMonitoringEnabled, websiteTimeZone, minimumElasticInstanceCount, azureStorageAccounts, publicNetworkAccess, kind); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs index 1c57c20a8ede..1e43e6b5719f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentMultiRolePoolResource.cs @@ -35,7 +35,7 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _hostingEnvironmentMultiRolePoolAppServiceEnvironmentsClientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _hostingEnvironmentMultiRolePoolAppServiceEnvironmentsRestClient; - private readonly AppServiceWorkerPoolData _data; + private readonly WorkerPoolData _data; /// Initializes a new instance of the class for mocking. protected HostingEnvironmentMultiRolePoolResource() @@ -45,7 +45,7 @@ protected HostingEnvironmentMultiRolePoolResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal HostingEnvironmentMultiRolePoolResource(ArmClient client, AppServiceWorkerPoolData data) : this(client, data.Id) + internal HostingEnvironmentMultiRolePoolResource(ArmClient client, WorkerPoolData data) : this(client, data.Id) { HasData = true; _data = data; @@ -72,7 +72,7 @@ internal HostingEnvironmentMultiRolePoolResource(ArmClient client, ResourceIdent /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual AppServiceWorkerPoolData Data + public virtual WorkerPoolData Data { get { @@ -168,7 +168,7 @@ public virtual Response Get(Cancellatio /// Properties of the multi-role pool. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -202,7 +202,7 @@ public virtual async Task> Upd /// Properties of the multi-role pool. /// The cancellation token to use. /// is null. - public virtual Response Update(AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual Response Update(WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -237,7 +237,7 @@ public virtual Response Update(AppServi /// Properties of the multi-role pool. /// The cancellation token to use. /// is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -275,7 +275,7 @@ public virtual async Task> /// Properties of the multi-role pool. /// The cancellation token to use. /// is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs index 3e3825d76439..26ac09dbab0c 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolCollection.cs @@ -72,7 +72,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string workerPoolName, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string workerPoolName, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(workerPoolName, nameof(workerPoolName)); Argument.AssertNotNull(data, nameof(data)); @@ -113,7 +113,7 @@ public virtual async Task> Cr /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string workerPoolName, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string workerPoolName, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(workerPoolName, nameof(workerPoolName)); Argument.AssertNotNull(data, nameof(data)); @@ -228,7 +228,7 @@ public virtual AsyncPageable GetAllAsync(C { HttpMessage FirstPageRequest(int? pageSizeHint) => _hostingEnvironmentWorkerPoolAppServiceEnvironmentsRestClient.CreateListWorkerPoolsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hostingEnvironmentWorkerPoolAppServiceEnvironmentsRestClient.CreateListWorkerPoolsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HostingEnvironmentWorkerPoolResource(Client, AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(e)), _hostingEnvironmentWorkerPoolAppServiceEnvironmentsClientDiagnostics, Pipeline, "HostingEnvironmentWorkerPoolCollection.GetAll", "value", "nextLink", cancellationToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new HostingEnvironmentWorkerPoolResource(Client, WorkerPoolData.DeserializeWorkerPoolData(e)), _hostingEnvironmentWorkerPoolAppServiceEnvironmentsClientDiagnostics, Pipeline, "HostingEnvironmentWorkerPoolCollection.GetAll", "value", "nextLink", cancellationToken); } /// @@ -250,7 +250,7 @@ public virtual Pageable GetAll(Cancellatio { HttpMessage FirstPageRequest(int? pageSizeHint) => _hostingEnvironmentWorkerPoolAppServiceEnvironmentsRestClient.CreateListWorkerPoolsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _hostingEnvironmentWorkerPoolAppServiceEnvironmentsRestClient.CreateListWorkerPoolsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HostingEnvironmentWorkerPoolResource(Client, AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(e)), _hostingEnvironmentWorkerPoolAppServiceEnvironmentsClientDiagnostics, Pipeline, "HostingEnvironmentWorkerPoolCollection.GetAll", "value", "nextLink", cancellationToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new HostingEnvironmentWorkerPoolResource(Client, WorkerPoolData.DeserializeWorkerPoolData(e)), _hostingEnvironmentWorkerPoolAppServiceEnvironmentsClientDiagnostics, Pipeline, "HostingEnvironmentWorkerPoolCollection.GetAll", "value", "nextLink", cancellationToken); } /// diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs index 81d7202a69ee..f413d85ac6b2 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/HostingEnvironmentWorkerPoolResource.cs @@ -35,7 +35,7 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _hostingEnvironmentWorkerPoolAppServiceEnvironmentsClientDiagnostics; private readonly AppServiceEnvironmentsRestOperations _hostingEnvironmentWorkerPoolAppServiceEnvironmentsRestClient; - private readonly AppServiceWorkerPoolData _data; + private readonly WorkerPoolData _data; /// Initializes a new instance of the class for mocking. protected HostingEnvironmentWorkerPoolResource() @@ -45,7 +45,7 @@ protected HostingEnvironmentWorkerPoolResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal HostingEnvironmentWorkerPoolResource(ArmClient client, AppServiceWorkerPoolData data) : this(client, data.Id) + internal HostingEnvironmentWorkerPoolResource(ArmClient client, WorkerPoolData data) : this(client, data.Id) { HasData = true; _data = data; @@ -72,7 +72,7 @@ internal HostingEnvironmentWorkerPoolResource(ArmClient client, ResourceIdentifi /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual AppServiceWorkerPoolData Data + public virtual WorkerPoolData Data { get { @@ -168,7 +168,7 @@ public virtual Response Get(CancellationTo /// Properties of the worker pool. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); @@ -202,7 +202,7 @@ public virtual async Task> Update /// Properties of the worker pool. /// The cancellation token to use. /// is null. - public virtual Response Update(AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public virtual Response Update(WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentMultiRolePoolOperationSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentMultiRolePoolOperationSource.cs index fa80c8a9d131..0b3ccfc26445 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentMultiRolePoolOperationSource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentMultiRolePoolOperationSource.cs @@ -26,14 +26,14 @@ internal HostingEnvironmentMultiRolePoolOperationSource(ArmClient client) HostingEnvironmentMultiRolePoolResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); - var data = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + var data = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return new HostingEnvironmentMultiRolePoolResource(_client, data); } async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + var data = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return new HostingEnvironmentMultiRolePoolResource(_client, data); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentWorkerPoolOperationSource.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentWorkerPoolOperationSource.cs index 57267277add2..2e73be963722 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentWorkerPoolOperationSource.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/LongRunningOperation/HostingEnvironmentWorkerPoolOperationSource.cs @@ -26,14 +26,14 @@ internal HostingEnvironmentWorkerPoolOperationSource(ArmClient client) HostingEnvironmentWorkerPoolResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) { using var document = JsonDocument.Parse(response.ContentStream); - var data = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + var data = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return new HostingEnvironmentWorkerPoolResource(_client, data); } async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) { using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + var data = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return new HostingEnvironmentWorkerPoolResource(_client, data); } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPFilterTag.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPFilterTag.cs deleted file mode 100644 index bab7cd05a233..000000000000 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPFilterTag.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.AppService.Models -{ - /// Defines what this IP filter will be used for. This is to support IP filtering on proxies. - public readonly partial struct AppServiceIPFilterTag : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AppServiceIPFilterTag(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DefaultValue = "Default"; - private const string XffProxyValue = "XffProxy"; - private const string ServiceTagValue = "ServiceTag"; - - /// Default. - public static AppServiceIPFilterTag Default { get; } = new AppServiceIPFilterTag(DefaultValue); - /// XffProxy. - public static AppServiceIPFilterTag XffProxy { get; } = new AppServiceIPFilterTag(XffProxyValue); - /// ServiceTag. - public static AppServiceIPFilterTag ServiceTag { get; } = new AppServiceIPFilterTag(ServiceTagValue); - /// Determines if two values are the same. - public static bool operator ==(AppServiceIPFilterTag left, AppServiceIPFilterTag right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(AppServiceIPFilterTag left, AppServiceIPFilterTag right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator AppServiceIPFilterTag(string value) => new AppServiceIPFilterTag(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is AppServiceIPFilterTag other && Equals(other); - /// - public bool Equals(AppServiceIPFilterTag other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.Serialization.cs index e7d3f7481891..475e4cbca461 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.Serialization.cs @@ -20,16 +20,16 @@ internal static AppServiceWorkerPoolListResult DeserializeAppServiceWorkerPoolLi { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(item)); + array.Add(WorkerPoolData.DeserializeWorkerPoolData(item)); } value = array; continue; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.cs index f64d7ebfa5d4..468bd7ead10e 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolListResult.cs @@ -19,7 +19,7 @@ internal partial class AppServiceWorkerPoolListResult /// Initializes a new instance of AppServiceWorkerPoolListResult. /// Collection of resources. /// is null. - internal AppServiceWorkerPoolListResult(IEnumerable value) + internal AppServiceWorkerPoolListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); @@ -29,14 +29,14 @@ internal AppServiceWorkerPoolListResult(IEnumerable va /// Initializes a new instance of AppServiceWorkerPoolListResult. /// Collection of resources. /// Link to next page of resources. - internal AppServiceWorkerPoolListResult(IReadOnlyList value, string nextLink) + internal AppServiceWorkerPoolListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Collection of resources. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Link to next page of resources. public string NextLink { get; } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPFilterTag.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPFilterTag.cs new file mode 100644 index 000000000000..283a0664dc06 --- /dev/null +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPFilterTag.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.AppService.Models +{ + /// Defines what this IP filter will be used for. This is to support IP filtering on proxies. + public readonly partial struct IPFilterTag : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IPFilterTag(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string DefaultValue = "Default"; + private const string XffProxyValue = "XffProxy"; + private const string ServiceTagValue = "ServiceTag"; + + /// Default. + public static IPFilterTag Default { get; } = new IPFilterTag(DefaultValue); + /// XffProxy. + public static IPFilterTag XffProxy { get; } = new IPFilterTag(XffProxyValue); + /// ServiceTag. + public static IPFilterTag ServiceTag { get; } = new IPFilterTag(ServiceTagValue); + /// Determines if two values are the same. + public static bool operator ==(IPFilterTag left, IPFilterTag right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IPFilterTag left, IPFilterTag right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator IPFilterTag(string value) => new IPFilterTag(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IPFilterTag other && Equals(other); + /// + public bool Equals(IPFilterTag other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPSecurityRestriction.Serialization.cs similarity index 91% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPSecurityRestriction.Serialization.cs index 4ba09cf15818..6848ff9cc06f 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPSecurityRestriction.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.AppService.Models { - public partial class AppServiceIPSecurityRestriction : IUtf8JsonSerializable + public partial class IPSecurityRestriction : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -90,7 +90,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AppServiceIPSecurityRestriction DeserializeAppServiceIPSecurityRestriction(JsonElement element) + internal static IPSecurityRestriction DeserializeIPSecurityRestriction(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -102,7 +102,7 @@ internal static AppServiceIPSecurityRestriction DeserializeAppServiceIPSecurityR Optional vnetTrafficTag = default; Optional subnetTrafficTag = default; Optional action = default; - Optional tag = default; + Optional tag = default; Optional priority = default; Optional name = default; Optional description = default; @@ -157,7 +157,7 @@ internal static AppServiceIPSecurityRestriction DeserializeAppServiceIPSecurityR { continue; } - tag = new AppServiceIPFilterTag(property.Value.GetString()); + tag = new IPFilterTag(property.Value.GetString()); continue; } if (property.NameEquals("priority"u8)) @@ -206,7 +206,7 @@ internal static AppServiceIPSecurityRestriction DeserializeAppServiceIPSecurityR continue; } } - return new AppServiceIPSecurityRestriction(ipAddress.Value, subnetMask.Value, vnetSubnetResourceId.Value, Optional.ToNullable(vnetTrafficTag), Optional.ToNullable(subnetTrafficTag), action.Value, Optional.ToNullable(tag), Optional.ToNullable(priority), name.Value, description.Value, Optional.ToDictionary(headers)); + return new IPSecurityRestriction(ipAddress.Value, subnetMask.Value, vnetSubnetResourceId.Value, Optional.ToNullable(vnetTrafficTag), Optional.ToNullable(subnetTrafficTag), action.Value, Optional.ToNullable(tag), Optional.ToNullable(priority), name.Value, description.Value, Optional.ToDictionary(headers)); } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPSecurityRestriction.cs similarity index 90% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPSecurityRestriction.cs index e75e0bd3c7fb..b7fc7ccf6ed0 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceIPSecurityRestriction.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/IPSecurityRestriction.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.AppService.Models { /// IP security restriction on an app. - public partial class AppServiceIPSecurityRestriction + public partial class IPSecurityRestriction { - /// Initializes a new instance of AppServiceIPSecurityRestriction. - public AppServiceIPSecurityRestriction() + /// Initializes a new instance of IPSecurityRestriction. + public IPSecurityRestriction() { Headers = new ChangeTrackingDictionary>(); } - /// Initializes a new instance of AppServiceIPSecurityRestriction. + /// Initializes a new instance of IPSecurityRestriction. /// /// IP address the security restriction is valid for. /// It can be in form of pure ipv4 address (required SubnetMask property) or @@ -53,7 +53,7 @@ public AppServiceIPSecurityRestriction() /// X-Azure-FDID and X-FD-HealthProbe. /// The matching logic is exact match. /// - internal AppServiceIPSecurityRestriction(string ipAddressOrCidr, string subnetMask, ResourceIdentifier vnetSubnetResourceId, int? vnetTrafficTag, int? subnetTrafficTag, string action, AppServiceIPFilterTag? tag, int? priority, string name, string description, IDictionary> headers) + internal IPSecurityRestriction(string ipAddressOrCidr, string subnetMask, ResourceIdentifier vnetSubnetResourceId, int? vnetTrafficTag, int? subnetTrafficTag, string action, IPFilterTag? tag, int? priority, string name, string description, IDictionary> headers) { IPAddressOrCidr = ipAddressOrCidr; SubnetMask = subnetMask; @@ -86,7 +86,7 @@ internal AppServiceIPSecurityRestriction(string ipAddressOrCidr, string subnetMa /// Allow or Deny access for this IP range. public string Action { get; set; } /// Defines what this IP filter will be used for. This is to support IP filtering on proxies. - public AppServiceIPFilterTag? Tag { get; set; } + public IPFilterTag? Tag { get; set; } /// Priority of IP restriction rule. public int? Priority { get; set; } /// IP restriction rule name. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs index 1d94f96a4255..2a6f84b72640 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigData.Serialization.cs @@ -926,8 +926,8 @@ internal static SiteConfigData DeserializeSiteConfigData(JsonElement element) Optional managedServiceIdentityId = default; Optional xManagedServiceIdentityId = default; Optional keyVaultReferenceIdentity = default; - Optional> ipSecurityRestrictions = default; - Optional> scmIPSecurityRestrictions = default; + Optional> ipSecurityRestrictions = default; + Optional> scmIPSecurityRestrictions = default; Optional scmIPSecurityRestrictionsUseMain = default; Optional http20Enabled = default; Optional minTlsVersion = default; @@ -1533,10 +1533,10 @@ internal static SiteConfigData DeserializeSiteConfigData(JsonElement element) ipSecurityRestrictions = null; continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(AppServiceIPSecurityRestriction.DeserializeAppServiceIPSecurityRestriction(item)); + array.Add(IPSecurityRestriction.DeserializeIPSecurityRestriction(item)); } ipSecurityRestrictions = array; continue; @@ -1548,10 +1548,10 @@ internal static SiteConfigData DeserializeSiteConfigData(JsonElement element) scmIPSecurityRestrictions = null; continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(AppServiceIPSecurityRestriction.DeserializeAppServiceIPSecurityRestriction(item)); + array.Add(IPSecurityRestriction.DeserializeIPSecurityRestriction(item)); } scmIPSecurityRestrictions = array; continue; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs index 00424718d4c7..e1e092c0a096 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.Serialization.cs @@ -911,8 +911,8 @@ internal static SiteConfigProperties DeserializeSiteConfigProperties(JsonElement Optional managedServiceIdentityId = default; Optional xManagedServiceIdentityId = default; Optional keyVaultReferenceIdentity = default; - Optional> ipSecurityRestrictions = default; - Optional> scmIPSecurityRestrictions = default; + Optional> ipSecurityRestrictions = default; + Optional> scmIPSecurityRestrictions = default; Optional scmIPSecurityRestrictionsUseMain = default; Optional http20Enabled = default; Optional minTlsVersion = default; @@ -1480,10 +1480,10 @@ internal static SiteConfigProperties DeserializeSiteConfigProperties(JsonElement ipSecurityRestrictions = null; continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AppServiceIPSecurityRestriction.DeserializeAppServiceIPSecurityRestriction(item)); + array.Add(IPSecurityRestriction.DeserializeIPSecurityRestriction(item)); } ipSecurityRestrictions = array; continue; @@ -1495,10 +1495,10 @@ internal static SiteConfigProperties DeserializeSiteConfigProperties(JsonElement scmIPSecurityRestrictions = null; continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AppServiceIPSecurityRestriction.DeserializeAppServiceIPSecurityRestriction(item)); + array.Add(IPSecurityRestriction.DeserializeIPSecurityRestriction(item)); } scmIPSecurityRestrictions = array; continue; diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs index bc1c6c4659be..489c6a9adb55 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/SiteConfigProperties.cs @@ -22,8 +22,8 @@ public SiteConfigProperties() ConnectionStrings = new ChangeTrackingList(); HandlerMappings = new ChangeTrackingList(); VirtualApplications = new ChangeTrackingList(); - IPSecurityRestrictions = new ChangeTrackingList(); - ScmIPSecurityRestrictions = new ChangeTrackingList(); + IPSecurityRestrictions = new ChangeTrackingList(); + ScmIPSecurityRestrictions = new ChangeTrackingList(); AzureStorageAccounts = new ChangeTrackingDictionary(); } @@ -108,7 +108,7 @@ public SiteConfigProperties() /// /// List of Azure Storage Accounts. /// Property to allow or block all public traffic. - internal SiteConfigProperties(int? numberOfWorkers, IList defaultDocuments, string netFrameworkVersion, string phpVersion, string pythonVersion, string nodeVersion, string powerShellVersion, string linuxFxVersion, string windowsFxVersion, bool? isRequestTracingEnabled, DateTimeOffset? requestTracingExpirationOn, bool? isRemoteDebuggingEnabled, string remoteDebuggingVersion, bool? isHttpLoggingEnabled, bool? useManagedIdentityCreds, string acrUserManagedIdentityId, int? logsDirectorySizeLimit, bool? isDetailedErrorLoggingEnabled, string publishingUsername, IList appSettings, IList connectionStrings, SiteMachineKey machineKey, IList handlerMappings, string documentRoot, ScmType? scmType, bool? use32BitWorkerProcess, bool? isWebSocketsEnabled, bool? isAlwaysOn, string javaVersion, string javaContainer, string javaContainerVersion, string appCommandLine, ManagedPipelineMode? managedPipelineMode, IList virtualApplications, SiteLoadBalancing? loadBalancing, RoutingRuleExperiments experiments, SiteLimits limits, bool? isAutoHealEnabled, AutoHealRules autoHealRules, string tracingOptions, string vnetName, bool? isVnetRouteAllEnabled, int? vnetPrivatePortsCount, AppServiceCorsSettings cors, WebAppPushSettings push, AppServiceApiDefinitionInfo apiDefinition, ApiManagementConfig apiManagementConfig, string autoSwapSlotName, bool? isLocalMySqlEnabled, int? managedServiceIdentityId, int? xManagedServiceIdentityId, string keyVaultReferenceIdentity, IList ipSecurityRestrictions, IList scmIPSecurityRestrictions, bool? allowIPSecurityRestrictionsForScmToUseMain, bool? isHttp20Enabled, AppServiceSupportedTlsVersion? minTlsVersion, AppServiceSupportedTlsVersion? scmMinTlsVersion, AppServiceFtpsState? ftpsState, int? preWarmedInstanceCount, int? functionAppScaleLimit, string healthCheckPath, bool? isFunctionsRuntimeScaleMonitoringEnabled, string websiteTimeZone, int? minimumElasticInstanceCount, IDictionary azureStorageAccounts, string publicNetworkAccess) + internal SiteConfigProperties(int? numberOfWorkers, IList defaultDocuments, string netFrameworkVersion, string phpVersion, string pythonVersion, string nodeVersion, string powerShellVersion, string linuxFxVersion, string windowsFxVersion, bool? isRequestTracingEnabled, DateTimeOffset? requestTracingExpirationOn, bool? isRemoteDebuggingEnabled, string remoteDebuggingVersion, bool? isHttpLoggingEnabled, bool? useManagedIdentityCreds, string acrUserManagedIdentityId, int? logsDirectorySizeLimit, bool? isDetailedErrorLoggingEnabled, string publishingUsername, IList appSettings, IList connectionStrings, SiteMachineKey machineKey, IList handlerMappings, string documentRoot, ScmType? scmType, bool? use32BitWorkerProcess, bool? isWebSocketsEnabled, bool? isAlwaysOn, string javaVersion, string javaContainer, string javaContainerVersion, string appCommandLine, ManagedPipelineMode? managedPipelineMode, IList virtualApplications, SiteLoadBalancing? loadBalancing, RoutingRuleExperiments experiments, SiteLimits limits, bool? isAutoHealEnabled, AutoHealRules autoHealRules, string tracingOptions, string vnetName, bool? isVnetRouteAllEnabled, int? vnetPrivatePortsCount, AppServiceCorsSettings cors, WebAppPushSettings push, AppServiceApiDefinitionInfo apiDefinition, ApiManagementConfig apiManagementConfig, string autoSwapSlotName, bool? isLocalMySqlEnabled, int? managedServiceIdentityId, int? xManagedServiceIdentityId, string keyVaultReferenceIdentity, IList ipSecurityRestrictions, IList scmIPSecurityRestrictions, bool? allowIPSecurityRestrictionsForScmToUseMain, bool? isHttp20Enabled, AppServiceSupportedTlsVersion? minTlsVersion, AppServiceSupportedTlsVersion? scmMinTlsVersion, AppServiceFtpsState? ftpsState, int? preWarmedInstanceCount, int? functionAppScaleLimit, string healthCheckPath, bool? isFunctionsRuntimeScaleMonitoringEnabled, string websiteTimeZone, int? minimumElasticInstanceCount, IDictionary azureStorageAccounts, string publicNetworkAccess) { NumberOfWorkers = numberOfWorkers; DefaultDocuments = defaultDocuments; @@ -319,9 +319,9 @@ public string ApiManagementConfigId /// Identity to use for Key Vault Reference authentication. public string KeyVaultReferenceIdentity { get; set; } /// IP security restrictions for main. - public IList IPSecurityRestrictions { get; set; } + public IList IPSecurityRestrictions { get; set; } /// IP security restrictions for scm. - public IList ScmIPSecurityRestrictions { get; set; } + public IList ScmIPSecurityRestrictions { get; set; } /// IP security restrictions for scm to use main. public bool? AllowIPSecurityRestrictionsForScmToUseMain { get; set; } /// Http20Enabled: configures a web site to allow clients to connect over http2.0. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolData.Serialization.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerPoolData.Serialization.cs similarity index 93% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolData.Serialization.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerPoolData.Serialization.cs index 6aba75dbcc03..e820cfad8ef3 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/AppServiceWorkerPoolData.Serialization.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/Models/WorkerPoolData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.AppService { - public partial class AppServiceWorkerPoolData : IUtf8JsonSerializable + public partial class WorkerPoolData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -54,7 +54,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AppServiceWorkerPoolData DeserializeAppServiceWorkerPoolData(JsonElement element) + internal static WorkerPoolData DeserializeWorkerPoolData(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -170,7 +170,7 @@ internal static AppServiceWorkerPoolData DeserializeAppServiceWorkerPoolData(Jso continue; } } - return new AppServiceWorkerPoolData(id, name, type, systemData.Value, sku.Value, Optional.ToNullable(workerSizeId), Optional.ToNullable(computeMode), workerSize.Value, Optional.ToNullable(workerCount), Optional.ToList(instanceNames), kind.Value); + return new WorkerPoolData(id, name, type, systemData.Value, sku.Value, Optional.ToNullable(workerSizeId), Optional.ToNullable(computeMode), workerSize.Value, Optional.ToNullable(workerCount), Optional.ToList(instanceNames), kind.Value); } } } diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs index 137184b42cff..be18fcca6a0a 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/RestOperations/AppServiceEnvironmentsRestOperations.cs @@ -1193,7 +1193,7 @@ internal HttpMessage CreateGetMultiRolePoolRequest(string subscriptionId, string /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetMultiRolePoolAsync(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) + public async Task> GetMultiRolePoolAsync(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1205,13 +1205,13 @@ public async Task> GetMultiRolePoolAsync(stri { case 200: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((AppServiceWorkerPoolData)null, message.Response); + return Response.FromValue((WorkerPoolData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -1224,7 +1224,7 @@ public async Task> GetMultiRolePoolAsync(stri /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response GetMultiRolePool(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) + public Response GetMultiRolePool(string subscriptionId, string resourceGroupName, string name, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1236,19 +1236,19 @@ public Response GetMultiRolePool(string subscriptionId { case 200: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((AppServiceWorkerPoolData)null, message.Response); + return Response.FromValue((WorkerPoolData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data) + internal HttpMessage CreateCreateOrUpdateMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name, WorkerPoolData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1281,7 +1281,7 @@ internal HttpMessage CreateCreateOrUpdateMultiRolePoolRequest(string subscriptio /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateMultiRolePoolAsync(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateMultiRolePoolAsync(string subscriptionId, string resourceGroupName, string name, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1308,7 +1308,7 @@ public async Task CreateOrUpdateMultiRolePoolAsync(string subscription /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdateMultiRolePool(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdateMultiRolePool(string subscriptionId, string resourceGroupName, string name, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1327,7 +1327,7 @@ public Response CreateOrUpdateMultiRolePool(string subscriptionId, string resour } } - internal HttpMessage CreateUpdateMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data) + internal HttpMessage CreateUpdateMultiRolePoolRequest(string subscriptionId, string resourceGroupName, string name, WorkerPoolData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -1360,7 +1360,7 @@ internal HttpMessage CreateUpdateMultiRolePoolRequest(string subscriptionId, str /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> UpdateMultiRolePoolAsync(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public async Task> UpdateMultiRolePoolAsync(string subscriptionId, string resourceGroupName, string name, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1374,9 +1374,9 @@ public async Task> UpdateMultiRolePoolAsync(s case 200: case 202: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1392,7 +1392,7 @@ public async Task> UpdateMultiRolePoolAsync(s /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response UpdateMultiRolePool(string subscriptionId, string resourceGroupName, string name, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public Response UpdateMultiRolePool(string subscriptionId, string resourceGroupName, string name, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1406,9 +1406,9 @@ public Response UpdateMultiRolePool(string subscriptio case 200: case 202: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -2741,7 +2741,7 @@ internal HttpMessage CreateGetWorkerPoolRequest(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetWorkerPoolAsync(string subscriptionId, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default) + public async Task> GetWorkerPoolAsync(string subscriptionId, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2754,13 +2754,13 @@ public async Task> GetWorkerPoolAsync(string { case 200: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((AppServiceWorkerPoolData)null, message.Response); + return Response.FromValue((WorkerPoolData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -2774,7 +2774,7 @@ public async Task> GetWorkerPoolAsync(string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response GetWorkerPool(string subscriptionId, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default) + public Response GetWorkerPool(string subscriptionId, string resourceGroupName, string name, string workerPoolName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2787,19 +2787,19 @@ public Response GetWorkerPool(string subscriptionId, s { case 200: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((AppServiceWorkerPoolData)null, message.Response); + return Response.FromValue((WorkerPoolData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data) + internal HttpMessage CreateCreateOrUpdateWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, WorkerPoolData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2834,7 +2834,7 @@ internal HttpMessage CreateCreateOrUpdateWorkerPoolRequest(string subscriptionId /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateWorkerPoolAsync(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public async Task CreateOrUpdateWorkerPoolAsync(string subscriptionId, string resourceGroupName, string name, string workerPoolName, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2863,7 +2863,7 @@ public async Task CreateOrUpdateWorkerPoolAsync(string subscriptionId, /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdateWorkerPool(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdateWorkerPool(string subscriptionId, string resourceGroupName, string name, string workerPoolName, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2883,7 +2883,7 @@ public Response CreateOrUpdateWorkerPool(string subscriptionId, string resourceG } } - internal HttpMessage CreateUpdateWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data) + internal HttpMessage CreateUpdateWorkerPoolRequest(string subscriptionId, string resourceGroupName, string name, string workerPoolName, WorkerPoolData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -2918,7 +2918,7 @@ internal HttpMessage CreateUpdateWorkerPoolRequest(string subscriptionId, string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateWorkerPoolAsync(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public async Task> UpdateWorkerPoolAsync(string subscriptionId, string resourceGroupName, string name, string workerPoolName, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2933,9 +2933,9 @@ public async Task> UpdateWorkerPoolAsync(stri case 200: case 202: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -2952,7 +2952,7 @@ public async Task> UpdateWorkerPoolAsync(stri /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response UpdateWorkerPool(string subscriptionId, string resourceGroupName, string name, string workerPoolName, AppServiceWorkerPoolData data, CancellationToken cancellationToken = default) + public Response UpdateWorkerPool(string subscriptionId, string resourceGroupName, string name, string workerPoolName, WorkerPoolData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -2967,9 +2967,9 @@ public Response UpdateWorkerPool(string subscriptionId case 200: case 202: { - AppServiceWorkerPoolData value = default; + WorkerPoolData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AppServiceWorkerPoolData.DeserializeAppServiceWorkerPoolData(document.RootElement); + value = WorkerPoolData.DeserializeWorkerPoolData(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs index 0ef9f74d909d..ea8d639ff6d5 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/SiteConfigData.cs @@ -27,8 +27,8 @@ public SiteConfigData() ConnectionStrings = new ChangeTrackingList(); HandlerMappings = new ChangeTrackingList(); VirtualApplications = new ChangeTrackingList(); - IPSecurityRestrictions = new ChangeTrackingList(); - ScmIPSecurityRestrictions = new ChangeTrackingList(); + IPSecurityRestrictions = new ChangeTrackingList(); + ScmIPSecurityRestrictions = new ChangeTrackingList(); AzureStorageAccounts = new ChangeTrackingDictionary(); } @@ -118,7 +118,7 @@ public SiteConfigData() /// List of Azure Storage Accounts. /// Property to allow or block all public traffic. /// Kind of resource. - internal SiteConfigData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? numberOfWorkers, IList defaultDocuments, string netFrameworkVersion, string phpVersion, string pythonVersion, string nodeVersion, string powerShellVersion, string linuxFxVersion, string windowsFxVersion, bool? isRequestTracingEnabled, DateTimeOffset? requestTracingExpirationOn, bool? isRemoteDebuggingEnabled, string remoteDebuggingVersion, bool? isHttpLoggingEnabled, bool? useManagedIdentityCreds, string acrUserManagedIdentityId, int? logsDirectorySizeLimit, bool? isDetailedErrorLoggingEnabled, string publishingUsername, IList appSettings, IList connectionStrings, SiteMachineKey machineKey, IList handlerMappings, string documentRoot, ScmType? scmType, bool? use32BitWorkerProcess, bool? isWebSocketsEnabled, bool? isAlwaysOn, string javaVersion, string javaContainer, string javaContainerVersion, string appCommandLine, ManagedPipelineMode? managedPipelineMode, IList virtualApplications, SiteLoadBalancing? loadBalancing, RoutingRuleExperiments experiments, SiteLimits limits, bool? isAutoHealEnabled, AutoHealRules autoHealRules, string tracingOptions, string vnetName, bool? isVnetRouteAllEnabled, int? vnetPrivatePortsCount, AppServiceCorsSettings cors, WebAppPushSettings push, AppServiceApiDefinitionInfo apiDefinition, ApiManagementConfig apiManagementConfig, string autoSwapSlotName, bool? isLocalMySqlEnabled, int? managedServiceIdentityId, int? xManagedServiceIdentityId, string keyVaultReferenceIdentity, IList ipSecurityRestrictions, IList scmIPSecurityRestrictions, bool? allowIPSecurityRestrictionsForScmToUseMain, bool? isHttp20Enabled, AppServiceSupportedTlsVersion? minTlsVersion, AppServiceSupportedTlsVersion? scmMinTlsVersion, AppServiceFtpsState? ftpsState, int? preWarmedInstanceCount, int? functionAppScaleLimit, string healthCheckPath, bool? isFunctionsRuntimeScaleMonitoringEnabled, string websiteTimeZone, int? minimumElasticInstanceCount, IDictionary azureStorageAccounts, string publicNetworkAccess, string kind) : base(id, name, resourceType, systemData) + internal SiteConfigData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, int? numberOfWorkers, IList defaultDocuments, string netFrameworkVersion, string phpVersion, string pythonVersion, string nodeVersion, string powerShellVersion, string linuxFxVersion, string windowsFxVersion, bool? isRequestTracingEnabled, DateTimeOffset? requestTracingExpirationOn, bool? isRemoteDebuggingEnabled, string remoteDebuggingVersion, bool? isHttpLoggingEnabled, bool? useManagedIdentityCreds, string acrUserManagedIdentityId, int? logsDirectorySizeLimit, bool? isDetailedErrorLoggingEnabled, string publishingUsername, IList appSettings, IList connectionStrings, SiteMachineKey machineKey, IList handlerMappings, string documentRoot, ScmType? scmType, bool? use32BitWorkerProcess, bool? isWebSocketsEnabled, bool? isAlwaysOn, string javaVersion, string javaContainer, string javaContainerVersion, string appCommandLine, ManagedPipelineMode? managedPipelineMode, IList virtualApplications, SiteLoadBalancing? loadBalancing, RoutingRuleExperiments experiments, SiteLimits limits, bool? isAutoHealEnabled, AutoHealRules autoHealRules, string tracingOptions, string vnetName, bool? isVnetRouteAllEnabled, int? vnetPrivatePortsCount, AppServiceCorsSettings cors, WebAppPushSettings push, AppServiceApiDefinitionInfo apiDefinition, ApiManagementConfig apiManagementConfig, string autoSwapSlotName, bool? isLocalMySqlEnabled, int? managedServiceIdentityId, int? xManagedServiceIdentityId, string keyVaultReferenceIdentity, IList ipSecurityRestrictions, IList scmIPSecurityRestrictions, bool? allowIPSecurityRestrictionsForScmToUseMain, bool? isHttp20Enabled, AppServiceSupportedTlsVersion? minTlsVersion, AppServiceSupportedTlsVersion? scmMinTlsVersion, AppServiceFtpsState? ftpsState, int? preWarmedInstanceCount, int? functionAppScaleLimit, string healthCheckPath, bool? isFunctionsRuntimeScaleMonitoringEnabled, string websiteTimeZone, int? minimumElasticInstanceCount, IDictionary azureStorageAccounts, string publicNetworkAccess, string kind) : base(id, name, resourceType, systemData) { NumberOfWorkers = numberOfWorkers; DefaultDocuments = defaultDocuments; @@ -330,9 +330,9 @@ public string ApiManagementConfigId /// Identity to use for Key Vault Reference authentication. public string KeyVaultReferenceIdentity { get; set; } /// IP security restrictions for main. - public IList IPSecurityRestrictions { get; set; } + public IList IPSecurityRestrictions { get; set; } /// IP security restrictions for scm. - public IList ScmIPSecurityRestrictions { get; set; } + public IList ScmIPSecurityRestrictions { get; set; } /// IP security restrictions for scm to use main. public bool? AllowIPSecurityRestrictionsForScmToUseMain { get; set; } /// Http20Enabled: configures a web site to allow clients to connect over http2.0. diff --git a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkerPoolData.cs similarity index 78% rename from sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs rename to sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkerPoolData.cs index 8bcdacc7a684..90e1964e5097 100644 --- a/sdk/websites/Azure.ResourceManager.AppService/src/Generated/AppServiceWorkerPoolData.cs +++ b/sdk/websites/Azure.ResourceManager.AppService/src/Generated/WorkerPoolData.cs @@ -13,18 +13,18 @@ namespace Azure.ResourceManager.AppService { /// - /// A class representing the AppServiceWorkerPool data model. + /// A class representing the WorkerPool data model. /// Worker pool of an App Service Environment ARM resource. /// - public partial class AppServiceWorkerPoolData : ResourceData + public partial class WorkerPoolData : ResourceData { - /// Initializes a new instance of AppServiceWorkerPoolData. - public AppServiceWorkerPoolData() + /// Initializes a new instance of WorkerPoolData. + public WorkerPoolData() { InstanceNames = new ChangeTrackingList(); } - /// Initializes a new instance of AppServiceWorkerPoolData. + /// Initializes a new instance of WorkerPoolData. /// The id. /// The name. /// The resourceType. @@ -36,7 +36,7 @@ public AppServiceWorkerPoolData() /// Number of instances in the worker pool. /// Names of all instances in the worker pool (read only). /// Kind of resource. - internal AppServiceWorkerPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AppServiceSkuDescription sku, int? workerSizeId, ComputeModeOption? computeMode, string workerSize, int? workerCount, IReadOnlyList instanceNames, string kind) : base(id, name, resourceType, systemData) + internal WorkerPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AppServiceSkuDescription sku, int? workerSizeId, ComputeModeOption? computeMode, string workerSize, int? workerCount, IReadOnlyList instanceNames, string kind) : base(id, name, resourceType, systemData) { Sku = sku; WorkerSizeId = workerSizeId; From e0ca4ced761894a17cc1d4b62710142a1afb1bd2 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 07:48:17 +0000 Subject: [PATCH 6/8] Update SDK codes --- .../Samples/Sample_ManagedDiskCollection.cs | 2 +- .../Models/DiskEncryption.Serialization.cs | 4 +-- .../src/Generated/Models/DiskEncryption.cs | 8 +++--- .../ArmContainerRegistryModelFactory.cs | 6 ++-- ...erRegistryDockerBuildStep.Serialization.cs | 2 +- .../ContainerRegistryDockerBuildStep.cs | 8 +++--- ...erRegistryEncodedTaskStep.Serialization.cs | 2 +- .../ContainerRegistryEncodedTaskStep.cs | 8 +++--- ...ainerRegistryFileTaskStep.Serialization.cs | 2 +- .../Models/ContainerRegistryFileTaskStep.cs | 8 +++--- ...egistryTaskStepProperties.Serialization.cs | 2 +- .../ContainerRegistryTaskStepProperties.cs | 8 +++--- ...UnknownTaskStepProperties.Serialization.cs | 2 +- .../Models/UnknownTaskStepProperties.cs | 6 ++-- .../src/Generated/ArmCosmosDBModelFactory.cs | 8 +++--- .../src/Generated/CosmosDBAccountData.cs | 6 ++-- ...ountCreateOrUpdateContent.Serialization.cs | 6 ++-- .../CosmosDBAccountCreateOrUpdateContent.cs | 6 ++-- .../CosmosDBAccountData.Serialization.cs | 6 ++-- .../Generated/Models/CosmosDBAccountPatch.cs | 4 +-- .../Models/CosmosDBIPAddressOrRange.cs | 28 ------------------- ...n.cs => IPAddressOrRange.Serialization.cs} | 10 +++---- .../src/Generated/Models/IPAddressOrRange.cs | 28 +++++++++++++++++++ ...AlertPropertiesDefinition.Serialization.cs | 4 +-- .../Models/AlertPropertiesDefinition.cs | 8 +++--- ...GlobalParameterProperties.Serialization.cs | 2 +- .../DataFactoryGlobalParameterProperties.cs | 8 +++--- ...ScriptActivityScriptBlock.Serialization.cs | 2 +- .../Models/ScriptActivityScriptBlock.cs | 14 +++++----- ...mple_DataLakeAnalyticsAccountCollection.cs | 2 +- ...Sample_DataLakeAnalyticsAccountResource.cs | 2 +- .../ArmDataLakeAnalyticsModelFactory.cs | 2 +- .../Generated/DataLakeAnalyticsAccountData.cs | 4 +-- ...keAnalyticsAccountCreateOrUpdateContent.cs | 2 +- ...aLakeAnalyticsAccountData.Serialization.cs | 4 +-- .../Models/DataLakeAnalyticsAccountPatch.cs | 2 +- ...irewallAllowAzureIPsState.Serialization.cs | 28 ------------------- ...irewallAllowAzureIPsState.Serialization.cs | 28 +++++++++++++++++++ ...State.cs => FirewallAllowAzureIPsState.cs} | 2 +- .../Generated/ArmDataLakeStoreModelFactory.cs | 2 +- .../src/Generated/DataLakeStoreAccountData.cs | 4 +-- ...taLakeStoreAccountCreateOrUpdateContent.cs | 2 +- .../DataLakeStoreAccountData.Serialization.cs | 4 +-- .../Models/DataLakeStoreAccountPatch.cs | 2 +- ...irewallAllowAzureIPsState.Serialization.cs | 28 ------------------- ...irewallAllowAzureIPsState.Serialization.cs | 28 +++++++++++++++++++ ...State.cs => FirewallAllowAzureIPsState.cs} | 2 +- 47 files changed, 178 insertions(+), 178 deletions(-) delete mode 100644 sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs rename sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/{CosmosDBIPAddressOrRange.Serialization.cs => IPAddressOrRange.Serialization.cs} (72%) create mode 100644 sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.cs delete mode 100644 sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs create mode 100644 sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs rename sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/{DataLakeAnalyticsFirewallAllowAzureIPsState.cs => FirewallAllowAzureIPsState.cs} (92%) delete mode 100644 sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs create mode 100644 sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs rename sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/{DataLakeStoreFirewallAllowAzureIPsState.cs => FirewallAllowAzureIPsState.cs} (89%) diff --git a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs index b8b9ecf6d827..30afd3fd3883 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/samples/Generated/Samples/Sample_ManagedDiskCollection.cs @@ -952,7 +952,7 @@ public async Task CreateOrUpdate_CreateAManagedDiskWithUltraAccountTypeWithReadO DiskMBpsReadWrite = 3000, Encryption = new DiskEncryption() { - EncryptionType = ComputeEncryptionType.EncryptionAtRestWithPlatformKey, + ComputeEncryptionType = ComputeEncryptionType.EncryptionAtRestWithPlatformKey, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, diskName, data); diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.Serialization.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.Serialization.cs index d517545215ac..cd903051c230 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.Serialization.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.Serialization.cs @@ -20,10 +20,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("diskEncryptionSetId"u8); writer.WriteStringValue(DiskEncryptionSetId); } - if (Optional.IsDefined(EncryptionType)) + if (Optional.IsDefined(ComputeEncryptionType)) { writer.WritePropertyName("type"u8); - writer.WriteStringValue(EncryptionType.Value.ToString()); + writer.WriteStringValue(ComputeEncryptionType.Value.ToString()); } writer.WriteEndObject(); } diff --git a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.cs b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.cs index 98a1780503fc..222aac22a982 100644 --- a/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.cs +++ b/sdk/compute/Azure.ResourceManager.Compute/src/Generated/Models/DiskEncryption.cs @@ -19,16 +19,16 @@ public DiskEncryption() /// Initializes a new instance of DiskEncryption. /// ResourceId of the disk encryption set to use for enabling encryption at rest. - /// The type of key used to encrypt the data of the disk. - internal DiskEncryption(ResourceIdentifier diskEncryptionSetId, ComputeEncryptionType? encryptionType) + /// The type of key used to encrypt the data of the disk. + internal DiskEncryption(ResourceIdentifier diskEncryptionSetId, ComputeEncryptionType? computeEncryptionType) { DiskEncryptionSetId = diskEncryptionSetId; - EncryptionType = encryptionType; + ComputeEncryptionType = computeEncryptionType; } /// ResourceId of the disk encryption set to use for enabling encryption at rest. public ResourceIdentifier DiskEncryptionSetId { get; set; } /// The type of key used to encrypt the data of the disk. - public ComputeEncryptionType? EncryptionType { get; set; } + public ComputeEncryptionType? ComputeEncryptionType { get; set; } } } diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/ArmContainerRegistryModelFactory.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/ArmContainerRegistryModelFactory.cs index c00ea30236fc..6120daf4f122 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/ArmContainerRegistryModelFactory.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/ArmContainerRegistryModelFactory.cs @@ -506,16 +506,16 @@ public static ContainerRegistryTaskData ContainerRegistryTaskData(ResourceIdenti } /// Initializes a new instance of ContainerRegistryTaskStepProperties. - /// The type of the step. + /// The type of the step. /// List of base image dependencies for a step. /// The URL(absolute or relative) of the source context for the task step. /// The token (git PAT or SAS token of storage account blob) associated with the context for a step. /// A new instance for mocking. - public static ContainerRegistryTaskStepProperties ContainerRegistryTaskStepProperties(string containerRegistryTaskStepType = "Unknown", IEnumerable baseImageDependencies = null, string contextPath = null, string contextAccessToken = null) + public static ContainerRegistryTaskStepProperties ContainerRegistryTaskStepProperties(string stepType = "Unknown", IEnumerable baseImageDependencies = null, string contextPath = null, string contextAccessToken = null) { baseImageDependencies ??= new List(); - return new UnknownTaskStepProperties(containerRegistryTaskStepType, baseImageDependencies?.ToList(), contextPath, contextAccessToken); + return new UnknownTaskStepProperties(stepType, baseImageDependencies?.ToList(), contextPath, contextAccessToken); } /// Initializes a new instance of ContainerRegistryBaseImageDependency. diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.Serialization.cs index 38efa6af98ff..3276e3426c69 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.Serialization.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.Serialization.cs @@ -54,7 +54,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(ContainerRegistryTaskStepType.ToString()); + writer.WriteStringValue(StepType.ToString()); if (Optional.IsDefined(ContextPath)) { writer.WritePropertyName("contextPath"u8); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs index 3477c9975420..3378431b0044 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryDockerBuildStep.cs @@ -24,11 +24,11 @@ public ContainerRegistryDockerBuildStep(string dockerFilePath) ImageNames = new ChangeTrackingList(); DockerFilePath = dockerFilePath; Arguments = new ChangeTrackingList(); - ContainerRegistryTaskStepType = ContainerRegistryTaskStepType.Docker; + StepType = ContainerRegistryTaskStepType.Docker; } /// Initializes a new instance of ContainerRegistryDockerBuildStep. - /// The type of the step. + /// The type of the step. /// List of base image dependencies for a step. /// The URL(absolute or relative) of the source context for the task step. /// The token (git PAT or SAS token of storage account blob) associated with the context for a step. @@ -38,7 +38,7 @@ public ContainerRegistryDockerBuildStep(string dockerFilePath) /// The Docker file path relative to the source context. /// The name of the target build stage for the docker build. /// The collection of override arguments to be used when executing this build step. - internal ContainerRegistryDockerBuildStep(ContainerRegistryTaskStepType containerRegistryTaskStepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken, IList imageNames, bool? isPushEnabled, bool? noCache, string dockerFilePath, string target, IList arguments) : base(containerRegistryTaskStepType, baseImageDependencies, contextPath, contextAccessToken) + internal ContainerRegistryDockerBuildStep(ContainerRegistryTaskStepType stepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken, IList imageNames, bool? isPushEnabled, bool? noCache, string dockerFilePath, string target, IList arguments) : base(stepType, baseImageDependencies, contextPath, contextAccessToken) { ImageNames = imageNames; IsPushEnabled = isPushEnabled; @@ -46,7 +46,7 @@ internal ContainerRegistryDockerBuildStep(ContainerRegistryTaskStepType containe DockerFilePath = dockerFilePath; Target = target; Arguments = arguments; - ContainerRegistryTaskStepType = containerRegistryTaskStepType; + StepType = stepType; } /// The fully qualified image names including the repository and tag. diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.Serialization.cs index e9133875d22c..4f42dfe23fb4 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.Serialization.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.Serialization.cs @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(ContainerRegistryTaskStepType.ToString()); + writer.WriteStringValue(StepType.ToString()); if (Optional.IsDefined(ContextPath)) { writer.WritePropertyName("contextPath"u8); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs index 4742ec16d89e..3bef6444c9ec 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryEncodedTaskStep.cs @@ -23,23 +23,23 @@ public ContainerRegistryEncodedTaskStep(string encodedTaskContent) EncodedTaskContent = encodedTaskContent; Values = new ChangeTrackingList(); - ContainerRegistryTaskStepType = ContainerRegistryTaskStepType.EncodedTask; + StepType = ContainerRegistryTaskStepType.EncodedTask; } /// Initializes a new instance of ContainerRegistryEncodedTaskStep. - /// The type of the step. + /// The type of the step. /// List of base image dependencies for a step. /// The URL(absolute or relative) of the source context for the task step. /// The token (git PAT or SAS token of storage account blob) associated with the context for a step. /// Base64 encoded value of the template/definition file content. /// Base64 encoded value of the parameters/values file content. /// The collection of overridable values that can be passed when running a task. - internal ContainerRegistryEncodedTaskStep(ContainerRegistryTaskStepType containerRegistryTaskStepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken, string encodedTaskContent, string encodedValuesContent, IList values) : base(containerRegistryTaskStepType, baseImageDependencies, contextPath, contextAccessToken) + internal ContainerRegistryEncodedTaskStep(ContainerRegistryTaskStepType stepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken, string encodedTaskContent, string encodedValuesContent, IList values) : base(stepType, baseImageDependencies, contextPath, contextAccessToken) { EncodedTaskContent = encodedTaskContent; EncodedValuesContent = encodedValuesContent; Values = values; - ContainerRegistryTaskStepType = containerRegistryTaskStepType; + StepType = stepType; } /// Base64 encoded value of the template/definition file content. diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.Serialization.cs index 335cfbb425cc..0966684a25b7 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.Serialization.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.Serialization.cs @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndArray(); } writer.WritePropertyName("type"u8); - writer.WriteStringValue(ContainerRegistryTaskStepType.ToString()); + writer.WriteStringValue(StepType.ToString()); if (Optional.IsDefined(ContextPath)) { writer.WritePropertyName("contextPath"u8); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs index 72782ede2d17..816b99e0b59e 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryFileTaskStep.cs @@ -23,23 +23,23 @@ public ContainerRegistryFileTaskStep(string taskFilePath) TaskFilePath = taskFilePath; Values = new ChangeTrackingList(); - ContainerRegistryTaskStepType = ContainerRegistryTaskStepType.FileTask; + StepType = ContainerRegistryTaskStepType.FileTask; } /// Initializes a new instance of ContainerRegistryFileTaskStep. - /// The type of the step. + /// The type of the step. /// List of base image dependencies for a step. /// The URL(absolute or relative) of the source context for the task step. /// The token (git PAT or SAS token of storage account blob) associated with the context for a step. /// The task template/definition file path relative to the source context. /// The task values/parameters file path relative to the source context. /// The collection of overridable values that can be passed when running a task. - internal ContainerRegistryFileTaskStep(ContainerRegistryTaskStepType containerRegistryTaskStepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken, string taskFilePath, string valuesFilePath, IList values) : base(containerRegistryTaskStepType, baseImageDependencies, contextPath, contextAccessToken) + internal ContainerRegistryFileTaskStep(ContainerRegistryTaskStepType stepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken, string taskFilePath, string valuesFilePath, IList values) : base(stepType, baseImageDependencies, contextPath, contextAccessToken) { TaskFilePath = taskFilePath; ValuesFilePath = valuesFilePath; Values = values; - ContainerRegistryTaskStepType = containerRegistryTaskStepType; + StepType = stepType; } /// The task template/definition file path relative to the source context. diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.Serialization.cs index 56cb75ecdf2b..9a401ea70758 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.Serialization.cs @@ -16,7 +16,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("type"u8); - writer.WriteStringValue(ContainerRegistryTaskStepType.ToString()); + writer.WriteStringValue(StepType.ToString()); if (Optional.IsDefined(ContextPath)) { writer.WritePropertyName("contextPath"u8); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs index c4fe4e4334f7..3ed3501b9f0f 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/ContainerRegistryTaskStepProperties.cs @@ -24,20 +24,20 @@ protected ContainerRegistryTaskStepProperties() } /// Initializes a new instance of ContainerRegistryTaskStepProperties. - /// The type of the step. + /// The type of the step. /// List of base image dependencies for a step. /// The URL(absolute or relative) of the source context for the task step. /// The token (git PAT or SAS token of storage account blob) associated with the context for a step. - internal ContainerRegistryTaskStepProperties(ContainerRegistryTaskStepType containerRegistryTaskStepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken) + internal ContainerRegistryTaskStepProperties(ContainerRegistryTaskStepType stepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken) { - ContainerRegistryTaskStepType = containerRegistryTaskStepType; + StepType = stepType; BaseImageDependencies = baseImageDependencies; ContextPath = contextPath; ContextAccessToken = contextAccessToken; } /// The type of the step. - internal ContainerRegistryTaskStepType ContainerRegistryTaskStepType { get; set; } + internal ContainerRegistryTaskStepType StepType { get; set; } /// List of base image dependencies for a step. public IReadOnlyList BaseImageDependencies { get; } /// The URL(absolute or relative) of the source context for the task step. diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.Serialization.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.Serialization.cs index 57edfd40d77a..c2d2b27f3200 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.Serialization.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.Serialization.cs @@ -17,7 +17,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("type"u8); - writer.WriteStringValue(ContainerRegistryTaskStepType.ToString()); + writer.WriteStringValue(StepType.ToString()); if (Optional.IsDefined(ContextPath)) { writer.WritePropertyName("contextPath"u8); diff --git a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.cs b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.cs index 46b586f76874..4a8962cf55ac 100644 --- a/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.cs +++ b/sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/src/Generated/Models/UnknownTaskStepProperties.cs @@ -13,13 +13,13 @@ namespace Azure.ResourceManager.ContainerRegistry.Models internal partial class UnknownTaskStepProperties : ContainerRegistryTaskStepProperties { /// Initializes a new instance of UnknownTaskStepProperties. - /// The type of the step. + /// The type of the step. /// List of base image dependencies for a step. /// The URL(absolute or relative) of the source context for the task step. /// The token (git PAT or SAS token of storage account blob) associated with the context for a step. - internal UnknownTaskStepProperties(ContainerRegistryTaskStepType containerRegistryTaskStepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken) : base(containerRegistryTaskStepType, baseImageDependencies, contextPath, contextAccessToken) + internal UnknownTaskStepProperties(ContainerRegistryTaskStepType stepType, IReadOnlyList baseImageDependencies, string contextPath, string contextAccessToken) : base(stepType, baseImageDependencies, contextPath, contextAccessToken) { - ContainerRegistryTaskStepType = containerRegistryTaskStepType; + StepType = stepType; } } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ArmCosmosDBModelFactory.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ArmCosmosDBModelFactory.cs index eb6270daaa54..11c634406a96 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ArmCosmosDBModelFactory.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/ArmCosmosDBModelFactory.cs @@ -73,10 +73,10 @@ public static partial class ArmCosmosDBModelFactory /// Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. /// Identity for the resource. /// A new instance for mocking. - public static CosmosDBAccountData CosmosDBAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, CosmosDBAccountKind? kind = null, string provisioningState = null, string documentEndpoint = null, CosmosDBAccountOfferType? databaseAccountOfferType = null, IEnumerable ipRules = null, bool? isVirtualNetworkFilterEnabled = null, bool? enableAutomaticFailover = null, ConsistencyPolicy consistencyPolicy = null, IEnumerable capabilities = null, IEnumerable writeLocations = null, IEnumerable readLocations = null, IEnumerable locations = null, IEnumerable failoverPolicies = null, IEnumerable virtualNetworkRules = null, IEnumerable privateEndpointConnections = null, bool? enableMultipleWriteLocations = null, bool? enableCassandraConnector = null, ConnectorOffer? connectorOffer = null, bool? disableKeyBasedMetadataWriteAccess = null, Uri keyVaultKeyUri = null, string defaultIdentity = null, CosmosDBPublicNetworkAccess? publicNetworkAccess = null, bool? isFreeTierEnabled = null, CosmosDBServerVersion? apiServerVersion = null, bool? isAnalyticalStorageEnabled = null, AnalyticalStorageSchemaType? analyticalStorageSchemaType = null, Guid? instanceId = null, CosmosDBAccountCreateMode? createMode = null, CosmosDBAccountRestoreParameters restoreParameters = null, CosmosDBAccountBackupPolicy backupPolicy = null, IEnumerable cors = null, NetworkAclBypass? networkAclBypass = null, IEnumerable networkAclBypassResourceIds = null, EnableFullTextQuery? diagnosticLogEnableFullTextQuery = null, bool? disableLocalAuth = null, int? capacityTotalThroughputLimit = null, bool? enableMaterializedViews = null, DatabaseAccountKeysMetadata keysMetadata = null, bool? enablePartitionMerge = null, bool? enableBurstCapacity = null, CosmosDBMinimalTlsVersion? minimalTlsVersion = null, ManagedServiceIdentity identity = null) + public static CosmosDBAccountData CosmosDBAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, CosmosDBAccountKind? kind = null, string provisioningState = null, string documentEndpoint = null, CosmosDBAccountOfferType? databaseAccountOfferType = null, IEnumerable ipRules = null, bool? isVirtualNetworkFilterEnabled = null, bool? enableAutomaticFailover = null, ConsistencyPolicy consistencyPolicy = null, IEnumerable capabilities = null, IEnumerable writeLocations = null, IEnumerable readLocations = null, IEnumerable locations = null, IEnumerable failoverPolicies = null, IEnumerable virtualNetworkRules = null, IEnumerable privateEndpointConnections = null, bool? enableMultipleWriteLocations = null, bool? enableCassandraConnector = null, ConnectorOffer? connectorOffer = null, bool? disableKeyBasedMetadataWriteAccess = null, Uri keyVaultKeyUri = null, string defaultIdentity = null, CosmosDBPublicNetworkAccess? publicNetworkAccess = null, bool? isFreeTierEnabled = null, CosmosDBServerVersion? apiServerVersion = null, bool? isAnalyticalStorageEnabled = null, AnalyticalStorageSchemaType? analyticalStorageSchemaType = null, Guid? instanceId = null, CosmosDBAccountCreateMode? createMode = null, CosmosDBAccountRestoreParameters restoreParameters = null, CosmosDBAccountBackupPolicy backupPolicy = null, IEnumerable cors = null, NetworkAclBypass? networkAclBypass = null, IEnumerable networkAclBypassResourceIds = null, EnableFullTextQuery? diagnosticLogEnableFullTextQuery = null, bool? disableLocalAuth = null, int? capacityTotalThroughputLimit = null, bool? enableMaterializedViews = null, DatabaseAccountKeysMetadata keysMetadata = null, bool? enablePartitionMerge = null, bool? enableBurstCapacity = null, CosmosDBMinimalTlsVersion? minimalTlsVersion = null, ManagedServiceIdentity identity = null) { tags ??= new Dictionary(); - ipRules ??= new List(); + ipRules ??= new List(); capabilities ??= new List(); writeLocations ??= new List(); readLocations ??= new List(); @@ -196,11 +196,11 @@ public static DatabaseAccountKeysMetadata DatabaseAccountKeysMetadata(DateTimeOf /// Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. /// Identity for the resource. /// A new instance for mocking. - public static CosmosDBAccountCreateOrUpdateContent CosmosDBAccountCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, CosmosDBAccountKind? kind = null, ConsistencyPolicy consistencyPolicy = null, IEnumerable locations = null, CosmosDBAccountOfferType databaseAccountOfferType = default, IEnumerable ipRules = null, bool? isVirtualNetworkFilterEnabled = null, bool? enableAutomaticFailover = null, IEnumerable capabilities = null, IEnumerable virtualNetworkRules = null, bool? enableMultipleWriteLocations = null, bool? enableCassandraConnector = null, ConnectorOffer? connectorOffer = null, bool? disableKeyBasedMetadataWriteAccess = null, Uri keyVaultKeyUri = null, string defaultIdentity = null, CosmosDBPublicNetworkAccess? publicNetworkAccess = null, bool? isFreeTierEnabled = null, CosmosDBServerVersion? apiServerVersion = null, bool? isAnalyticalStorageEnabled = null, AnalyticalStorageSchemaType? analyticalStorageSchemaType = null, CosmosDBAccountCreateMode? createMode = null, CosmosDBAccountBackupPolicy backupPolicy = null, IEnumerable cors = null, NetworkAclBypass? networkAclBypass = null, IEnumerable networkAclBypassResourceIds = null, EnableFullTextQuery? diagnosticLogEnableFullTextQuery = null, bool? disableLocalAuth = null, CosmosDBAccountRestoreParameters restoreParameters = null, int? capacityTotalThroughputLimit = null, bool? enableMaterializedViews = null, DatabaseAccountKeysMetadata keysMetadata = null, bool? enablePartitionMerge = null, bool? enableBurstCapacity = null, CosmosDBMinimalTlsVersion? minimalTlsVersion = null, ManagedServiceIdentity identity = null) + public static CosmosDBAccountCreateOrUpdateContent CosmosDBAccountCreateOrUpdateContent(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, CosmosDBAccountKind? kind = null, ConsistencyPolicy consistencyPolicy = null, IEnumerable locations = null, CosmosDBAccountOfferType databaseAccountOfferType = default, IEnumerable ipRules = null, bool? isVirtualNetworkFilterEnabled = null, bool? enableAutomaticFailover = null, IEnumerable capabilities = null, IEnumerable virtualNetworkRules = null, bool? enableMultipleWriteLocations = null, bool? enableCassandraConnector = null, ConnectorOffer? connectorOffer = null, bool? disableKeyBasedMetadataWriteAccess = null, Uri keyVaultKeyUri = null, string defaultIdentity = null, CosmosDBPublicNetworkAccess? publicNetworkAccess = null, bool? isFreeTierEnabled = null, CosmosDBServerVersion? apiServerVersion = null, bool? isAnalyticalStorageEnabled = null, AnalyticalStorageSchemaType? analyticalStorageSchemaType = null, CosmosDBAccountCreateMode? createMode = null, CosmosDBAccountBackupPolicy backupPolicy = null, IEnumerable cors = null, NetworkAclBypass? networkAclBypass = null, IEnumerable networkAclBypassResourceIds = null, EnableFullTextQuery? diagnosticLogEnableFullTextQuery = null, bool? disableLocalAuth = null, CosmosDBAccountRestoreParameters restoreParameters = null, int? capacityTotalThroughputLimit = null, bool? enableMaterializedViews = null, DatabaseAccountKeysMetadata keysMetadata = null, bool? enablePartitionMerge = null, bool? enableBurstCapacity = null, CosmosDBMinimalTlsVersion? minimalTlsVersion = null, ManagedServiceIdentity identity = null) { tags ??= new Dictionary(); locations ??= new List(); - ipRules ??= new List(); + ipRules ??= new List(); capabilities ??= new List(); virtualNetworkRules ??= new List(); cors ??= new List(); diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBAccountData.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBAccountData.cs index 3172aa3a75dc..7f99abc01fa3 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBAccountData.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/CosmosDBAccountData.cs @@ -23,7 +23,7 @@ public partial class CosmosDBAccountData : TrackedResourceData /// The location. public CosmosDBAccountData(AzureLocation location) : base(location) { - IPRules = new ChangeTrackingList(); + IPRules = new ChangeTrackingList(); Capabilities = new ChangeTrackingList(); WriteLocations = new ChangeTrackingList(); ReadLocations = new ChangeTrackingList(); @@ -88,7 +88,7 @@ public CosmosDBAccountData(AzureLocation location) : base(location) /// Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account. /// Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. /// Identity for the resource. - internal CosmosDBAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, CosmosDBAccountKind? kind, string provisioningState, string documentEndpoint, CosmosDBAccountOfferType? databaseAccountOfferType, IList ipRules, bool? isVirtualNetworkFilterEnabled, bool? enableAutomaticFailover, ConsistencyPolicy consistencyPolicy, IList capabilities, IReadOnlyList writeLocations, IReadOnlyList readLocations, IReadOnlyList locations, IReadOnlyList failoverPolicies, IList virtualNetworkRules, IReadOnlyList privateEndpointConnections, bool? enableMultipleWriteLocations, bool? enableCassandraConnector, ConnectorOffer? connectorOffer, bool? disableKeyBasedMetadataWriteAccess, Uri keyVaultKeyUri, string defaultIdentity, CosmosDBPublicNetworkAccess? publicNetworkAccess, bool? isFreeTierEnabled, ApiProperties apiProperties, bool? isAnalyticalStorageEnabled, AnalyticalStorageConfiguration analyticalStorageConfiguration, Guid? instanceId, CosmosDBAccountCreateMode? createMode, CosmosDBAccountRestoreParameters restoreParameters, CosmosDBAccountBackupPolicy backupPolicy, IList cors, NetworkAclBypass? networkAclBypass, IList networkAclBypassResourceIds, DiagnosticLogSettings diagnosticLogSettings, bool? disableLocalAuth, CosmosDBAccountCapacity capacity, bool? enableMaterializedViews, DatabaseAccountKeysMetadata keysMetadata, bool? enablePartitionMerge, bool? enableBurstCapacity, CosmosDBMinimalTlsVersion? minimalTlsVersion, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) + internal CosmosDBAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, CosmosDBAccountKind? kind, string provisioningState, string documentEndpoint, CosmosDBAccountOfferType? databaseAccountOfferType, IList ipRules, bool? isVirtualNetworkFilterEnabled, bool? enableAutomaticFailover, ConsistencyPolicy consistencyPolicy, IList capabilities, IReadOnlyList writeLocations, IReadOnlyList readLocations, IReadOnlyList locations, IReadOnlyList failoverPolicies, IList virtualNetworkRules, IReadOnlyList privateEndpointConnections, bool? enableMultipleWriteLocations, bool? enableCassandraConnector, ConnectorOffer? connectorOffer, bool? disableKeyBasedMetadataWriteAccess, Uri keyVaultKeyUri, string defaultIdentity, CosmosDBPublicNetworkAccess? publicNetworkAccess, bool? isFreeTierEnabled, ApiProperties apiProperties, bool? isAnalyticalStorageEnabled, AnalyticalStorageConfiguration analyticalStorageConfiguration, Guid? instanceId, CosmosDBAccountCreateMode? createMode, CosmosDBAccountRestoreParameters restoreParameters, CosmosDBAccountBackupPolicy backupPolicy, IList cors, NetworkAclBypass? networkAclBypass, IList networkAclBypassResourceIds, DiagnosticLogSettings diagnosticLogSettings, bool? disableLocalAuth, CosmosDBAccountCapacity capacity, bool? enableMaterializedViews, DatabaseAccountKeysMetadata keysMetadata, bool? enablePartitionMerge, bool? enableBurstCapacity, CosmosDBMinimalTlsVersion? minimalTlsVersion, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) { Kind = kind; ProvisioningState = provisioningState; @@ -143,7 +143,7 @@ internal CosmosDBAccountData(ResourceIdentifier id, string name, ResourceType re /// The offer type for the Cosmos DB database account. Default value: Standard. public CosmosDBAccountOfferType? DatabaseAccountOfferType { get; } /// List of IpRules. - public IList IPRules { get; } + public IList IPRules { get; } /// Flag to indicate whether to enable/disable Virtual Network ACL rules. public bool? IsVirtualNetworkFilterEnabled { get; set; } /// Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.Serialization.cs index 952ffdab53a7..626b9b204715 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.Serialization.cs @@ -254,7 +254,7 @@ internal static CosmosDBAccountCreateOrUpdateContent DeserializeCosmosDBAccountC Optional consistencyPolicy = default; IList locations = default; CosmosDBAccountOfferType databaseAccountOfferType = default; - Optional> ipRules = default; + Optional> ipRules = default; Optional isVirtualNetworkFilterEnabled = default; Optional enableAutomaticFailover = default; Optional> capabilities = default; @@ -387,10 +387,10 @@ internal static CosmosDBAccountCreateOrUpdateContent DeserializeCosmosDBAccountC { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(CosmosDBIPAddressOrRange.DeserializeCosmosDBIPAddressOrRange(item)); + array.Add(IPAddressOrRange.DeserializeIPAddressOrRange(item)); } ipRules = array; continue; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs index cbd4b75abefb..df72ed1aef60 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountCreateOrUpdateContent.cs @@ -26,7 +26,7 @@ public CosmosDBAccountCreateOrUpdateContent(AzureLocation location, IEnumerable< Locations = locations.ToList(); DatabaseAccountOfferType = CosmosDBAccountOfferType.Standard; - IPRules = new ChangeTrackingList(); + IPRules = new ChangeTrackingList(); Capabilities = new ChangeTrackingList(); VirtualNetworkRules = new ChangeTrackingList(); Cors = new ChangeTrackingList(); @@ -79,7 +79,7 @@ public CosmosDBAccountCreateOrUpdateContent(AzureLocation location, IEnumerable< /// Flag to indicate enabling/disabling of Burst Capacity Preview feature on the account. /// Indicates the minimum allowed Tls version. The default is Tls 1.0, except for Cassandra and Mongo API's, which only work with Tls 1.2. /// Identity for the resource. - internal CosmosDBAccountCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, CosmosDBAccountKind? kind, ConsistencyPolicy consistencyPolicy, IList locations, CosmosDBAccountOfferType databaseAccountOfferType, IList ipRules, bool? isVirtualNetworkFilterEnabled, bool? enableAutomaticFailover, IList capabilities, IList virtualNetworkRules, bool? enableMultipleWriteLocations, bool? enableCassandraConnector, ConnectorOffer? connectorOffer, bool? disableKeyBasedMetadataWriteAccess, Uri keyVaultKeyUri, string defaultIdentity, CosmosDBPublicNetworkAccess? publicNetworkAccess, bool? isFreeTierEnabled, ApiProperties apiProperties, bool? isAnalyticalStorageEnabled, AnalyticalStorageConfiguration analyticalStorageConfiguration, CosmosDBAccountCreateMode? createMode, CosmosDBAccountBackupPolicy backupPolicy, IList cors, NetworkAclBypass? networkAclBypass, IList networkAclBypassResourceIds, DiagnosticLogSettings diagnosticLogSettings, bool? disableLocalAuth, CosmosDBAccountRestoreParameters restoreParameters, CosmosDBAccountCapacity capacity, bool? enableMaterializedViews, DatabaseAccountKeysMetadata keysMetadata, bool? enablePartitionMerge, bool? enableBurstCapacity, CosmosDBMinimalTlsVersion? minimalTlsVersion, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) + internal CosmosDBAccountCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, CosmosDBAccountKind? kind, ConsistencyPolicy consistencyPolicy, IList locations, CosmosDBAccountOfferType databaseAccountOfferType, IList ipRules, bool? isVirtualNetworkFilterEnabled, bool? enableAutomaticFailover, IList capabilities, IList virtualNetworkRules, bool? enableMultipleWriteLocations, bool? enableCassandraConnector, ConnectorOffer? connectorOffer, bool? disableKeyBasedMetadataWriteAccess, Uri keyVaultKeyUri, string defaultIdentity, CosmosDBPublicNetworkAccess? publicNetworkAccess, bool? isFreeTierEnabled, ApiProperties apiProperties, bool? isAnalyticalStorageEnabled, AnalyticalStorageConfiguration analyticalStorageConfiguration, CosmosDBAccountCreateMode? createMode, CosmosDBAccountBackupPolicy backupPolicy, IList cors, NetworkAclBypass? networkAclBypass, IList networkAclBypassResourceIds, DiagnosticLogSettings diagnosticLogSettings, bool? disableLocalAuth, CosmosDBAccountRestoreParameters restoreParameters, CosmosDBAccountCapacity capacity, bool? enableMaterializedViews, DatabaseAccountKeysMetadata keysMetadata, bool? enablePartitionMerge, bool? enableBurstCapacity, CosmosDBMinimalTlsVersion? minimalTlsVersion, ManagedServiceIdentity identity) : base(id, name, resourceType, systemData, tags, location) { Kind = kind; ConsistencyPolicy = consistencyPolicy; @@ -125,7 +125,7 @@ internal CosmosDBAccountCreateOrUpdateContent(ResourceIdentifier id, string name /// An array that contains the georeplication locations enabled for the Cosmos DB account. public IList Locations { get; } /// List of IpRules. - public IList IPRules { get; } + public IList IPRules { get; } /// Flag to indicate whether to enable/disable Virtual Network ACL rules. public bool? IsVirtualNetworkFilterEnabled { get; set; } /// Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountData.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountData.Serialization.cs index f47aaff16686..d7685719d87d 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountData.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountData.Serialization.cs @@ -246,7 +246,7 @@ internal static CosmosDBAccountData DeserializeCosmosDBAccountData(JsonElement e Optional provisioningState = default; Optional documentEndpoint = default; Optional databaseAccountOfferType = default; - Optional> ipRules = default; + Optional> ipRules = default; Optional isVirtualNetworkFilterEnabled = default; Optional enableAutomaticFailover = default; Optional consistencyPolicy = default; @@ -381,10 +381,10 @@ internal static CosmosDBAccountData DeserializeCosmosDBAccountData(JsonElement e { continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(CosmosDBIPAddressOrRange.DeserializeCosmosDBIPAddressOrRange(item)); + array.Add(IPAddressOrRange.DeserializeIPAddressOrRange(item)); } ipRules = array; continue; diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs index 1f7fb92e0808..9b70259605ff 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBAccountPatch.cs @@ -20,7 +20,7 @@ public CosmosDBAccountPatch() { Tags = new ChangeTrackingDictionary(); Locations = new ChangeTrackingList(); - IPRules = new ChangeTrackingList(); + IPRules = new ChangeTrackingList(); Capabilities = new ChangeTrackingList(); VirtualNetworkRules = new ChangeTrackingList(); Cors = new ChangeTrackingList(); @@ -38,7 +38,7 @@ public CosmosDBAccountPatch() /// An array that contains the georeplication locations enabled for the Cosmos DB account. public IList Locations { get; } /// List of IpRules. - public IList IPRules { get; } + public IList IPRules { get; } /// Flag to indicate whether to enable/disable Virtual Network ACL rules. public bool? IsVirtualNetworkFilterEnabled { get; set; } /// Enables automatic failover of the write region in the rare event that the region is unavailable due to an outage. Automatic failover will result in a new write region for the account and is chosen based on the failover priorities configured for the account. diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs deleted file mode 100644 index e868a95ad54e..000000000000 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.ResourceManager.CosmosDB.Models -{ - /// IpAddressOrRange object. - public partial class CosmosDBIPAddressOrRange - { - /// Initializes a new instance of CosmosDBIPAddressOrRange. - public CosmosDBIPAddressOrRange() - { - } - - /// Initializes a new instance of CosmosDBIPAddressOrRange. - /// A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”. - internal CosmosDBIPAddressOrRange(string ipAddressOrRange) - { - IPAddressOrRange = ipAddressOrRange; - } - - /// A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”. - public string IPAddressOrRange { get; set; } - } -} diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.Serialization.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.Serialization.cs similarity index 72% rename from sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.Serialization.cs rename to sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.Serialization.cs index 83d172ed812d..e4f472d94b24 100644 --- a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/CosmosDBIPAddressOrRange.Serialization.cs +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.Serialization.cs @@ -10,20 +10,20 @@ namespace Azure.ResourceManager.CosmosDB.Models { - public partial class CosmosDBIPAddressOrRange : IUtf8JsonSerializable + public partial class IPAddressOrRange : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(IPAddressOrRange)) + if (Optional.IsDefined(IPAddressOrRangeValue)) { writer.WritePropertyName("ipAddressOrRange"u8); - writer.WriteStringValue(IPAddressOrRange); + writer.WriteStringValue(IPAddressOrRangeValue); } writer.WriteEndObject(); } - internal static CosmosDBIPAddressOrRange DeserializeCosmosDBIPAddressOrRange(JsonElement element) + internal static IPAddressOrRange DeserializeIPAddressOrRange(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -38,7 +38,7 @@ internal static CosmosDBIPAddressOrRange DeserializeCosmosDBIPAddressOrRange(Jso continue; } } - return new CosmosDBIPAddressOrRange(ipAddressOrRange.Value); + return new IPAddressOrRange(ipAddressOrRange.Value); } } } diff --git a/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.cs b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.cs new file mode 100644 index 000000000000..fb99236aac76 --- /dev/null +++ b/sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/Generated/Models/IPAddressOrRange.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.CosmosDB.Models +{ + /// IpAddressOrRange object. + public partial class IPAddressOrRange + { + /// Initializes a new instance of IPAddressOrRange. + public IPAddressOrRange() + { + } + + /// Initializes a new instance of IPAddressOrRange. + /// A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”. + internal IPAddressOrRange(string ipAddressOrRangeValue) + { + IPAddressOrRangeValue = ipAddressOrRangeValue; + } + + /// A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”. + public string IPAddressOrRangeValue { get; set; } + } +} diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.Serialization.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.Serialization.cs index 441d9520fc4e..f30759cbdc61 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.Serialization.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.Serialization.cs @@ -15,10 +15,10 @@ public partial class AlertPropertiesDefinition : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(AlertType)) + if (Optional.IsDefined(CostManagementAlertType)) { writer.WritePropertyName("type"u8); - writer.WriteStringValue(AlertType.Value.ToString()); + writer.WriteStringValue(CostManagementAlertType.Value.ToString()); } if (Optional.IsDefined(Category)) { diff --git a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.cs b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.cs index 59c6d4117d64..b17e7c63d2c3 100644 --- a/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.cs +++ b/sdk/costmanagement/Azure.ResourceManager.CostManagement/src/Generated/Models/AlertPropertiesDefinition.cs @@ -16,18 +16,18 @@ public AlertPropertiesDefinition() } /// Initializes a new instance of AlertPropertiesDefinition. - /// type of alert. + /// type of alert. /// Alert category. /// Criteria that triggered alert. - internal AlertPropertiesDefinition(CostManagementAlertType? alertType, CostManagementAlertCategory? category, AlertCriterion? criteria) + internal AlertPropertiesDefinition(CostManagementAlertType? costManagementAlertType, CostManagementAlertCategory? category, AlertCriterion? criteria) { - AlertType = alertType; + CostManagementAlertType = costManagementAlertType; Category = category; Criteria = criteria; } /// type of alert. - public CostManagementAlertType? AlertType { get; set; } + public CostManagementAlertType? CostManagementAlertType { get; set; } /// Alert category. public CostManagementAlertCategory? Category { get; set; } /// Criteria that triggered alert. diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs index f88e850b6eb2..1ade941e635c 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.Serialization.cs @@ -17,7 +17,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); writer.WritePropertyName("type"u8); - writer.WriteStringValue(GlobalParameterType.ToString()); + writer.WriteStringValue(ParameterType.ToString()); writer.WritePropertyName("value"u8); #if NET6_0_OR_GREATER writer.WriteRawValue(Value); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs index 32804acaaeaa..cb54994b1950 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/DataFactoryGlobalParameterProperties.cs @@ -14,19 +14,19 @@ namespace Azure.ResourceManager.DataFactory.Models public partial class DataFactoryGlobalParameterProperties { /// Initializes a new instance of DataFactoryGlobalParameterProperties. - /// Global Parameter type. + /// Global Parameter type. /// Value of parameter. /// is null. - public DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType globalParameterType, BinaryData value) + public DataFactoryGlobalParameterProperties(DataFactoryGlobalParameterType parameterType, BinaryData value) { Argument.AssertNotNull(value, nameof(value)); - GlobalParameterType = globalParameterType; + ParameterType = parameterType; Value = value; } /// Global Parameter type. - public DataFactoryGlobalParameterType GlobalParameterType { get; set; } + public DataFactoryGlobalParameterType ParameterType { get; set; } /// /// Value of parameter. /// diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs index 9efa242e19f9..39924f54d4e7 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.Serialization.cs @@ -20,7 +20,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("text"u8); JsonSerializer.Serialize(writer, Text); writer.WritePropertyName("type"u8); - writer.WriteStringValue(ScriptType.ToString()); + writer.WriteStringValue(DataFactoryScriptType.ToString()); if (Optional.IsCollectionDefined(Parameters)) { writer.WritePropertyName("parameters"u8); diff --git a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs index b0604829722f..2c74ad48bf3f 100644 --- a/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs +++ b/sdk/datafactory/Azure.ResourceManager.DataFactory/src/Generated/Models/ScriptActivityScriptBlock.cs @@ -17,32 +17,32 @@ public partial class ScriptActivityScriptBlock { /// Initializes a new instance of ScriptActivityScriptBlock. /// The query text. Type: string (or Expression with resultType string). - /// The type of the query. Type: string. + /// The type of the query. Type: string. /// is null. - public ScriptActivityScriptBlock(DataFactoryElement text, DataFactoryScriptType scriptType) + public ScriptActivityScriptBlock(DataFactoryElement text, DataFactoryScriptType dataFactoryScriptType) { Argument.AssertNotNull(text, nameof(text)); Text = text; - ScriptType = scriptType; + DataFactoryScriptType = dataFactoryScriptType; Parameters = new ChangeTrackingList(); } /// Initializes a new instance of ScriptActivityScriptBlock. /// The query text. Type: string (or Expression with resultType string). - /// The type of the query. Type: string. + /// The type of the query. Type: string. /// Array of script parameters. Type: array. - internal ScriptActivityScriptBlock(DataFactoryElement text, DataFactoryScriptType scriptType, IList parameters) + internal ScriptActivityScriptBlock(DataFactoryElement text, DataFactoryScriptType dataFactoryScriptType, IList parameters) { Text = text; - ScriptType = scriptType; + DataFactoryScriptType = dataFactoryScriptType; Parameters = parameters; } /// The query text. Type: string (or Expression with resultType string). public DataFactoryElement Text { get; set; } /// The type of the query. Type: string. - public DataFactoryScriptType ScriptType { get; set; } + public DataFactoryScriptType DataFactoryScriptType { get; set; } /// Array of script parameters. Type: array. public IList Parameters { get; } } diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountCollection.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountCollection.cs index c6b798a40bc2..8d65985ff085 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountCollection.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountCollection.cs @@ -110,7 +110,7 @@ public async Task CreateOrUpdate_CreatesTheSpecifiedDataLakeAnalyticsAccountThis new FirewallRuleForDataLakeAnalyticsAccountCreateOrUpdateContent("test_rule",IPAddress.Parse("1.1.1.1"),IPAddress.Parse("2.2.2.2")) }, FirewallState = DataLakeAnalyticsFirewallState.Enabled, - FirewallAllowAzureIPs = DataLakeAnalyticsFirewallAllowAzureIPsState.Enabled, + FirewallAllowAzureIPs = FirewallAllowAzureIPsState.Enabled, NewTier = DataLakeAnalyticsCommitmentTierType.Consumption, MaxJobCount = 3, MaxDegreeOfParallelism = 30, diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountResource.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountResource.cs index b1316e6eb73b..374145e85557 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountResource.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/samples/Generated/Samples/Sample_DataLakeAnalyticsAccountResource.cs @@ -127,7 +127,7 @@ public async Task Update_UpdatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheA } }, FirewallState = DataLakeAnalyticsFirewallState.Enabled, - FirewallAllowAzureIPs = DataLakeAnalyticsFirewallAllowAzureIPsState.Enabled, + FirewallAllowAzureIPs = FirewallAllowAzureIPsState.Enabled, NewTier = DataLakeAnalyticsCommitmentTierType.Consumption, MaxJobCount = 1, MaxDegreeOfParallelism = 1, diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs index f9d93b061d46..43014c5b66e5 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/ArmDataLakeAnalyticsModelFactory.cs @@ -193,7 +193,7 @@ public static DataLakeAnalyticsAccountBasic DataLakeAnalyticsAccountBasic(Resour /// Serialized Name: Resource.tags /// /// A new instance for mocking. - public static DataLakeAnalyticsAccountData DataLakeAnalyticsAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? accountId = null, DataLakeAnalyticsAccountStatus? provisioningState = null, DataLakeAnalyticsAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, string defaultDataLakeStoreAccount = null, IEnumerable dataLakeStoreAccounts = null, IEnumerable publicDataLakeStoreAccounts = null, IEnumerable storageAccounts = null, IEnumerable computePolicies = null, IEnumerable hiveMetastores = null, IEnumerable virtualNetworkRules = null, IEnumerable firewallRules = null, DataLakeAnalyticsFirewallState? firewallState = null, DataLakeAnalyticsFirewallAllowAzureIPsState? firewallAllowAzureIPs = null, DataLakeAnalyticsCommitmentTierType? newTier = null, DataLakeAnalyticsCommitmentTierType? currentTier = null, int? maxJobCount = null, int? maxActiveJobCountPerUser = null, int? maxQueuedJobCountPerUser = null, int? maxJobRunningTimeInMin = null, int? systemMaxJobCount = null, int? maxDegreeOfParallelism = null, int? systemMaxDegreeOfParallelism = null, int? maxDegreeOfParallelismPerJob = null, int? minPriorityPerJob = null, int? queryStoreRetention = null, DebugDataAccessLevel? debugDataAccessLevel = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) + public static DataLakeAnalyticsAccountData DataLakeAnalyticsAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, Guid? accountId = null, DataLakeAnalyticsAccountStatus? provisioningState = null, DataLakeAnalyticsAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, string defaultDataLakeStoreAccount = null, IEnumerable dataLakeStoreAccounts = null, IEnumerable publicDataLakeStoreAccounts = null, IEnumerable storageAccounts = null, IEnumerable computePolicies = null, IEnumerable hiveMetastores = null, IEnumerable virtualNetworkRules = null, IEnumerable firewallRules = null, DataLakeAnalyticsFirewallState? firewallState = null, FirewallAllowAzureIPsState? firewallAllowAzureIPs = null, DataLakeAnalyticsCommitmentTierType? newTier = null, DataLakeAnalyticsCommitmentTierType? currentTier = null, int? maxJobCount = null, int? maxActiveJobCountPerUser = null, int? maxQueuedJobCountPerUser = null, int? maxJobRunningTimeInMin = null, int? systemMaxJobCount = null, int? maxDegreeOfParallelism = null, int? systemMaxDegreeOfParallelism = null, int? maxDegreeOfParallelismPerJob = null, int? minPriorityPerJob = null, int? queryStoreRetention = null, DebugDataAccessLevel? debugDataAccessLevel = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) { dataLakeStoreAccounts ??= new List(); publicDataLakeStoreAccounts ??= new List(); diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsAccountData.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsAccountData.cs index 860e247981a2..4d70e0e982e2 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsAccountData.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/DataLakeAnalyticsAccountData.cs @@ -162,7 +162,7 @@ internal DataLakeAnalyticsAccountData() /// The resource tags. /// Serialized Name: Resource.tags /// - internal DataLakeAnalyticsAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Guid? accountId, DataLakeAnalyticsAccountStatus? provisioningState, DataLakeAnalyticsAccountState? state, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string endpoint, string defaultDataLakeStoreAccount, IReadOnlyList dataLakeStoreAccounts, IReadOnlyList publicDataLakeStoreAccounts, IReadOnlyList storageAccounts, IReadOnlyList computePolicies, IReadOnlyList hiveMetastores, IReadOnlyList virtualNetworkRules, IReadOnlyList firewallRules, DataLakeAnalyticsFirewallState? firewallState, DataLakeAnalyticsFirewallAllowAzureIPsState? firewallAllowAzureIPs, DataLakeAnalyticsCommitmentTierType? newTier, DataLakeAnalyticsCommitmentTierType? currentTier, int? maxJobCount, int? maxActiveJobCountPerUser, int? maxQueuedJobCountPerUser, int? maxJobRunningTimeInMin, int? systemMaxJobCount, int? maxDegreeOfParallelism, int? systemMaxDegreeOfParallelism, int? maxDegreeOfParallelismPerJob, int? minPriorityPerJob, int? queryStoreRetention, DebugDataAccessLevel? debugDataAccessLevel, AzureLocation? location, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) + internal DataLakeAnalyticsAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Guid? accountId, DataLakeAnalyticsAccountStatus? provisioningState, DataLakeAnalyticsAccountState? state, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string endpoint, string defaultDataLakeStoreAccount, IReadOnlyList dataLakeStoreAccounts, IReadOnlyList publicDataLakeStoreAccounts, IReadOnlyList storageAccounts, IReadOnlyList computePolicies, IReadOnlyList hiveMetastores, IReadOnlyList virtualNetworkRules, IReadOnlyList firewallRules, DataLakeAnalyticsFirewallState? firewallState, FirewallAllowAzureIPsState? firewallAllowAzureIPs, DataLakeAnalyticsCommitmentTierType? newTier, DataLakeAnalyticsCommitmentTierType? currentTier, int? maxJobCount, int? maxActiveJobCountPerUser, int? maxQueuedJobCountPerUser, int? maxJobRunningTimeInMin, int? systemMaxJobCount, int? maxDegreeOfParallelism, int? systemMaxDegreeOfParallelism, int? maxDegreeOfParallelismPerJob, int? minPriorityPerJob, int? queryStoreRetention, DebugDataAccessLevel? debugDataAccessLevel, AzureLocation? location, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { AccountId = accountId; ProvisioningState = provisioningState; @@ -276,7 +276,7 @@ internal DataLakeAnalyticsAccountData(ResourceIdentifier id, string name, Resour /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. /// Serialized Name: DataLakeAnalyticsAccount.properties.firewallAllowAzureIps /// - public DataLakeAnalyticsFirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; } + public FirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; } /// /// The commitment tier for the next month. /// Serialized Name: DataLakeAnalyticsAccount.properties.newTier diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs index 90ceae2b9933..c1c7b0ef6ce8 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountCreateOrUpdateContent.cs @@ -90,7 +90,7 @@ public DataLakeAnalyticsAccountCreateOrUpdateContent(AzureLocation location, str /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. /// Serialized Name: CreateDataLakeAnalyticsAccountParameters.properties.firewallAllowAzureIps /// - public DataLakeAnalyticsFirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } + public FirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } /// /// The commitment tier for the next month. /// Serialized Name: CreateDataLakeAnalyticsAccountParameters.properties.newTier diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountData.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountData.Serialization.cs index 3569556044ef..1ce44128efe4 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountData.Serialization.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountData.Serialization.cs @@ -43,7 +43,7 @@ internal static DataLakeAnalyticsAccountData DeserializeDataLakeAnalyticsAccount Optional> virtualNetworkRules = default; Optional> firewallRules = default; Optional firewallState = default; - Optional firewallAllowAzureIPs = default; + Optional firewallAllowAzureIPs = default; Optional newTier = default; Optional currentTier = default; Optional maxJobCount = default; @@ -283,7 +283,7 @@ internal static DataLakeAnalyticsAccountData DeserializeDataLakeAnalyticsAccount { continue; } - firewallAllowAzureIPs = property0.Value.GetString().ToDataLakeAnalyticsFirewallAllowAzureIPsState(); + firewallAllowAzureIPs = property0.Value.GetString().ToFirewallAllowAzureIPsState(); continue; } if (property0.NameEquals("newTier"u8)) diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs index 8ec9826701c3..43aad4705951 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsAccountPatch.cs @@ -60,7 +60,7 @@ public DataLakeAnalyticsAccountPatch() /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. /// Serialized Name: UpdateDataLakeAnalyticsAccountParameters.properties.firewallAllowAzureIps /// - public DataLakeAnalyticsFirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } + public FirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } /// /// The commitment tier to use for next month. /// Serialized Name: UpdateDataLakeAnalyticsAccountParameters.properties.newTier diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs deleted file mode 100644 index 9bea69087bf5..000000000000 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.DataLakeAnalytics.Models -{ - internal static partial class DataLakeAnalyticsFirewallAllowAzureIPsStateExtensions - { - public static string ToSerialString(this DataLakeAnalyticsFirewallAllowAzureIPsState value) => value switch - { - DataLakeAnalyticsFirewallAllowAzureIPsState.Enabled => "Enabled", - DataLakeAnalyticsFirewallAllowAzureIPsState.Disabled => "Disabled", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsFirewallAllowAzureIPsState value.") - }; - - public static DataLakeAnalyticsFirewallAllowAzureIPsState ToDataLakeAnalyticsFirewallAllowAzureIPsState(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeAnalyticsFirewallAllowAzureIPsState.Enabled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeAnalyticsFirewallAllowAzureIPsState.Disabled; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeAnalyticsFirewallAllowAzureIPsState value."); - } - } -} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs new file mode 100644 index 000000000000..d899011a9774 --- /dev/null +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataLakeAnalytics.Models +{ + internal static partial class FirewallAllowAzureIPsStateExtensions + { + public static string ToSerialString(this FirewallAllowAzureIPsState value) => value switch + { + FirewallAllowAzureIPsState.Enabled => "Enabled", + FirewallAllowAzureIPsState.Disabled => "Disabled", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FirewallAllowAzureIPsState value.") + }; + + public static FirewallAllowAzureIPsState ToFirewallAllowAzureIPsState(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return FirewallAllowAzureIPsState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return FirewallAllowAzureIPsState.Disabled; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FirewallAllowAzureIPsState value."); + } + } +} diff --git a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.cs b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.cs similarity index 92% rename from sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.cs rename to sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.cs index ef0e2b5e3f06..f4bbfb085adb 100644 --- a/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/DataLakeAnalyticsFirewallAllowAzureIPsState.cs +++ b/sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/src/Generated/Models/FirewallAllowAzureIPsState.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.DataLakeAnalytics.Models /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. /// Serialized Name: FirewallAllowAzureIpsState /// - public enum DataLakeAnalyticsFirewallAllowAzureIPsState + public enum FirewallAllowAzureIPsState { /// /// Enabled diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs index 424e5cfb0538..e9b924afbd8d 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/ArmDataLakeStoreModelFactory.cs @@ -66,7 +66,7 @@ public static DataLakeStoreAccountBasicData DataLakeStoreAccountBasicData(Resour /// The resource location. /// The resource tags. /// A new instance for mocking. - public static DataLakeStoreAccountData DataLakeStoreAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, Guid? accountId = null, DataLakeStoreAccountStatus? provisioningState = null, DataLakeStoreAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, string defaultGroup = null, DataLakeStoreAccountEncryptionConfig encryptionConfig = null, DataLakeStoreEncryptionState? encryptionState = null, DataLakeStoreEncryptionProvisioningState? encryptionProvisioningState = null, IEnumerable firewallRules = null, IEnumerable virtualNetworkRules = null, DataLakeStoreFirewallState? firewallState = null, DataLakeStoreFirewallAllowAzureIPsState? firewallAllowAzureIPs = null, IEnumerable trustedIdProviders = null, DataLakeStoreTrustedIdProviderState? trustedIdProviderState = null, DataLakeStoreCommitmentTierType? newTier = null, DataLakeStoreCommitmentTierType? currentTier = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) + public static DataLakeStoreAccountData DataLakeStoreAccountData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ManagedServiceIdentity identity = null, Guid? accountId = null, DataLakeStoreAccountStatus? provisioningState = null, DataLakeStoreAccountState? state = null, DateTimeOffset? createdOn = null, DateTimeOffset? lastModifiedOn = null, string endpoint = null, string defaultGroup = null, DataLakeStoreAccountEncryptionConfig encryptionConfig = null, DataLakeStoreEncryptionState? encryptionState = null, DataLakeStoreEncryptionProvisioningState? encryptionProvisioningState = null, IEnumerable firewallRules = null, IEnumerable virtualNetworkRules = null, DataLakeStoreFirewallState? firewallState = null, FirewallAllowAzureIPsState? firewallAllowAzureIPs = null, IEnumerable trustedIdProviders = null, DataLakeStoreTrustedIdProviderState? trustedIdProviderState = null, DataLakeStoreCommitmentTierType? newTier = null, DataLakeStoreCommitmentTierType? currentTier = null, AzureLocation? location = null, IReadOnlyDictionary tags = null) { firewallRules ??= new List(); virtualNetworkRules ??= new List(); diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreAccountData.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreAccountData.cs index f66559f9f31b..b1abfeea401c 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreAccountData.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/DataLakeStoreAccountData.cs @@ -54,7 +54,7 @@ internal DataLakeStoreAccountData() /// The commitment tier in use for the current month. /// The resource location. /// The resource tags. - internal DataLakeStoreAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, Guid? accountId, DataLakeStoreAccountStatus? provisioningState, DataLakeStoreAccountState? state, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string endpoint, string defaultGroup, DataLakeStoreAccountEncryptionConfig encryptionConfig, DataLakeStoreEncryptionState? encryptionState, DataLakeStoreEncryptionProvisioningState? encryptionProvisioningState, IReadOnlyList firewallRules, IReadOnlyList virtualNetworkRules, DataLakeStoreFirewallState? firewallState, DataLakeStoreFirewallAllowAzureIPsState? firewallAllowAzureIPs, IReadOnlyList trustedIdProviders, DataLakeStoreTrustedIdProviderState? trustedIdProviderState, DataLakeStoreCommitmentTierType? newTier, DataLakeStoreCommitmentTierType? currentTier, AzureLocation? location, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) + internal DataLakeStoreAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ManagedServiceIdentity identity, Guid? accountId, DataLakeStoreAccountStatus? provisioningState, DataLakeStoreAccountState? state, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string endpoint, string defaultGroup, DataLakeStoreAccountEncryptionConfig encryptionConfig, DataLakeStoreEncryptionState? encryptionState, DataLakeStoreEncryptionProvisioningState? encryptionProvisioningState, IReadOnlyList firewallRules, IReadOnlyList virtualNetworkRules, DataLakeStoreFirewallState? firewallState, FirewallAllowAzureIPsState? firewallAllowAzureIPs, IReadOnlyList trustedIdProviders, DataLakeStoreTrustedIdProviderState? trustedIdProviderState, DataLakeStoreCommitmentTierType? newTier, DataLakeStoreCommitmentTierType? currentTier, AzureLocation? location, IReadOnlyDictionary tags) : base(id, name, resourceType, systemData) { Identity = identity; AccountId = accountId; @@ -108,7 +108,7 @@ internal DataLakeStoreAccountData(ResourceIdentifier id, string name, ResourceTy /// The current state of the IP address firewall for this Data Lake Store account. public DataLakeStoreFirewallState? FirewallState { get; } /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. - public DataLakeStoreFirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; } + public FirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; } /// The list of trusted identity providers associated with this Data Lake Store account. public IReadOnlyList TrustedIdProviders { get; } /// The current state of the trusted identity provider feature for this Data Lake Store account. diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs index c91a5bf79a09..cc1505160b17 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountCreateOrUpdateContent.cs @@ -44,7 +44,7 @@ public DataLakeStoreAccountCreateOrUpdateContent(AzureLocation location) /// The current state of the IP address firewall for this Data Lake Store account. public DataLakeStoreFirewallState? FirewallState { get; set; } /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. - public DataLakeStoreFirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } + public FirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } /// The list of trusted identity providers associated with this Data Lake Store account. public IList TrustedIdProviders { get; } /// The current state of the trusted identity provider feature for this Data Lake Store account. diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountData.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountData.Serialization.cs index c4f30f7cf8b7..d65db4ca751f 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountData.Serialization.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountData.Serialization.cs @@ -42,7 +42,7 @@ internal static DataLakeStoreAccountData DeserializeDataLakeStoreAccountData(Jso Optional> firewallRules = default; Optional> virtualNetworkRules = default; Optional firewallState = default; - Optional firewallAllowAzureIPs = default; + Optional firewallAllowAzureIPs = default; Optional> trustedIdProviders = default; Optional trustedIdProviderState = default; Optional newTier = default; @@ -239,7 +239,7 @@ internal static DataLakeStoreAccountData DeserializeDataLakeStoreAccountData(Jso { continue; } - firewallAllowAzureIPs = property0.Value.GetString().ToDataLakeStoreFirewallAllowAzureIPsState(); + firewallAllowAzureIPs = property0.Value.GetString().ToFirewallAllowAzureIPsState(); continue; } if (property0.NameEquals("trustedIdProviders"u8)) diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs index 9d7c9a0a61f4..960949d3359d 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreAccountPatch.cs @@ -47,7 +47,7 @@ public string EncryptionKeyVersion /// The current state of the IP address firewall for this Data Lake Store account. Disabling the firewall does not remove existing rules, they will just be ignored until the firewall is re-enabled. public DataLakeStoreFirewallState? FirewallState { get; set; } /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. - public DataLakeStoreFirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } + public FirewallAllowAzureIPsState? FirewallAllowAzureIPs { get; set; } /// The list of trusted identity providers associated with this Data Lake Store account. public IList TrustedIdProviders { get; } /// The current state of the trusted identity provider feature for this Data Lake Store account. Disabling trusted identity provider functionality does not remove the providers, they will just be ignored until this feature is re-enabled. diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs deleted file mode 100644 index 4af8c189417b..000000000000 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.DataLakeStore.Models -{ - internal static partial class DataLakeStoreFirewallAllowAzureIPsStateExtensions - { - public static string ToSerialString(this DataLakeStoreFirewallAllowAzureIPsState value) => value switch - { - DataLakeStoreFirewallAllowAzureIPsState.Enabled => "Enabled", - DataLakeStoreFirewallAllowAzureIPsState.Disabled => "Disabled", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreFirewallAllowAzureIPsState value.") - }; - - public static DataLakeStoreFirewallAllowAzureIPsState ToDataLakeStoreFirewallAllowAzureIPsState(this string value) - { - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return DataLakeStoreFirewallAllowAzureIPsState.Enabled; - if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return DataLakeStoreFirewallAllowAzureIPsState.Disabled; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown DataLakeStoreFirewallAllowAzureIPsState value."); - } - } -} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs new file mode 100644 index 000000000000..c41a6390bc67 --- /dev/null +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.DataLakeStore.Models +{ + internal static partial class FirewallAllowAzureIPsStateExtensions + { + public static string ToSerialString(this FirewallAllowAzureIPsState value) => value switch + { + FirewallAllowAzureIPsState.Enabled => "Enabled", + FirewallAllowAzureIPsState.Disabled => "Disabled", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FirewallAllowAzureIPsState value.") + }; + + public static FirewallAllowAzureIPsState ToFirewallAllowAzureIPsState(this string value) + { + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Enabled")) return FirewallAllowAzureIPsState.Enabled; + if (StringComparer.OrdinalIgnoreCase.Equals(value, "Disabled")) return FirewallAllowAzureIPsState.Disabled; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FirewallAllowAzureIPsState value."); + } + } +} diff --git a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.cs b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.cs similarity index 89% rename from sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.cs rename to sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.cs index 8a8546b77c4f..f26dd0053c03 100644 --- a/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/DataLakeStoreFirewallAllowAzureIPsState.cs +++ b/sdk/datalake-store/Azure.ResourceManager.DataLakeStore/src/Generated/Models/FirewallAllowAzureIPsState.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.DataLakeStore.Models { /// The current state of allowing or disallowing IPs originating within Azure through the firewall. If the firewall is disabled, this is not enforced. - public enum DataLakeStoreFirewallAllowAzureIPsState + public enum FirewallAllowAzureIPsState { /// Enabled. Enabled, From a94496e6b212c0a7284ec6662e6b18d4951c4edd Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 07:57:54 +0000 Subject: [PATCH 7/8] Update SDK codes --- .../Generated/Models/MetricAlertCriteria.cs | 4 +- ...rceMultipleMetricCriteria.Serialization.cs | 4 +- ...tMultipleResourceMultipleMetricCriteria.cs | 4 +- ...rceMultipleMetricCriteria.Serialization.cs | 4 +- ...ertSingleResourceMultipleMetricCriteria.cs | 4 +- .../{MonitorOdataType.cs => OdataType.cs} | 28 ++++----- ...nknownMetricAlertCriteria.Serialization.cs | 4 +- .../Models/UnknownMetricAlertCriteria.cs | 2 +- ...ationAvailabilityCriteria.Serialization.cs | 4 +- .../WebtestLocationAvailabilityCriteria.cs | 4 +- ...le_NetworkCloudVirtualMachineCollection.cs | 2 +- ...etworkCloudStorageProfile.Serialization.cs | 4 +- .../Models/NetworkCloudStorageProfile.cs | 6 +- ...rialization.cs => OSDisk.Serialization.cs} | 6 +- .../{NetworkCloudOSDisk.cs => OSDisk.cs} | 10 ++-- .../Samples/Sample_NewRelicMonitorResource.cs | 8 +-- .../ArmNewRelicObservabilityModelFactory.cs | 16 ++--- ...itoredResourceListResult.Serialization.cs} | 6 +- ...sult.cs => MonitoredResourceListResult.cs} | 10 ++-- ...cs => VmExtensionPayload.Serialization.cs} | 6 +- ...ensionPayload.cs => VmExtensionPayload.cs} | 10 ++-- ...s => VmHostsListResponse.Serialization.cs} | 12 ++-- ...ListResponse.cs => VmHostsListResponse.cs} | 12 ++-- ...rialization.cs => VmInfo.Serialization.cs} | 6 +- ...wRelicObservabilityVmInfo.cs => VmInfo.cs} | 10 ++-- .../src/Generated/NewRelicMonitorResource.cs | 16 ++--- .../RestOperations/MonitorsRestOperations.cs | 60 +++++++++---------- ...sourceTypeSkuLocationInfo.Serialization.cs | 4 +- .../Models/ResourceTypeSkuLocationInfo.cs | 10 ++-- 29 files changed, 138 insertions(+), 138 deletions(-) rename sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/{MonitorOdataType.cs => OdataType.cs} (50%) rename sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/{NetworkCloudOSDisk.Serialization.cs => OSDisk.Serialization.cs} (88%) rename sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/{NetworkCloudOSDisk.cs => OSDisk.cs} (77%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityMonitoredResourceListResult.Serialization.cs => MonitoredResourceListResult.Serialization.cs} (81%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityMonitoredResourceListResult.cs => MonitoredResourceListResult.cs} (68%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityVmExtensionPayload.Serialization.cs => VmExtensionPayload.Serialization.cs} (71%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityVmExtensionPayload.cs => VmExtensionPayload.cs} (58%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityVmHostsListResponse.Serialization.cs => VmHostsListResponse.Serialization.cs} (67%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityVmHostsListResponse.cs => VmHostsListResponse.cs} (64%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityVmInfo.Serialization.cs => VmInfo.Serialization.cs} (83%) rename sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/{NewRelicObservabilityVmInfo.cs => VmInfo.cs} (73%) diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertCriteria.cs index fbe54b82607e..25e8267692d9 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertCriteria.cs @@ -27,14 +27,14 @@ public MetricAlertCriteria() /// Initializes a new instance of MetricAlertCriteria. /// specifies the type of the alert criteria. /// Additional Properties. - internal MetricAlertCriteria(MonitorOdataType odataType, IDictionary additionalProperties) + internal MetricAlertCriteria(OdataType odataType, IDictionary additionalProperties) { OdataType = odataType; AdditionalProperties = additionalProperties; } /// specifies the type of the alert criteria. - internal MonitorOdataType OdataType { get; set; } + internal OdataType OdataType { get; set; } /// /// Additional Properties /// diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.Serialization.cs index 5af6352b1037..d51ff472cadf 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.Serialization.cs @@ -48,7 +48,7 @@ internal static MetricAlertMultipleResourceMultipleMetricCriteria DeserializeMet return null; } Optional> allOf = default; - MonitorOdataType odataType = default; + OdataType odataType = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -69,7 +69,7 @@ internal static MetricAlertMultipleResourceMultipleMetricCriteria DeserializeMet } if (property.NameEquals("odata.type"u8)) { - odataType = new MonitorOdataType(property.Value.GetString()); + odataType = new OdataType(property.Value.GetString()); continue; } additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs index 5e23f88a31cc..404350d34b5e 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertMultipleResourceMultipleMetricCriteria.cs @@ -18,7 +18,7 @@ public partial class MetricAlertMultipleResourceMultipleMetricCriteria : MetricA public MetricAlertMultipleResourceMultipleMetricCriteria() { AllOf = new ChangeTrackingList(); - OdataType = MonitorOdataType.MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria; + OdataType = OdataType.MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria; } /// Initializes a new instance of MetricAlertMultipleResourceMultipleMetricCriteria. @@ -29,7 +29,7 @@ public MetricAlertMultipleResourceMultipleMetricCriteria() /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes. /// The available derived classes include and . /// - internal MetricAlertMultipleResourceMultipleMetricCriteria(MonitorOdataType odataType, IDictionary additionalProperties, IList allOf) : base(odataType, additionalProperties) + internal MetricAlertMultipleResourceMultipleMetricCriteria(OdataType odataType, IDictionary additionalProperties, IList allOf) : base(odataType, additionalProperties) { AllOf = allOf; OdataType = odataType; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.Serialization.cs index 2411517981ee..17bd2d75b98c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.Serialization.cs @@ -48,7 +48,7 @@ internal static MetricAlertSingleResourceMultipleMetricCriteria DeserializeMetri return null; } Optional> allOf = default; - MonitorOdataType odataType = default; + OdataType odataType = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -69,7 +69,7 @@ internal static MetricAlertSingleResourceMultipleMetricCriteria DeserializeMetri } if (property.NameEquals("odata.type"u8)) { - odataType = new MonitorOdataType(property.Value.GetString()); + odataType = new OdataType(property.Value.GetString()); continue; } additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs index 6dd5e1f479b5..6665c6a57065 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MetricAlertSingleResourceMultipleMetricCriteria.cs @@ -18,14 +18,14 @@ public partial class MetricAlertSingleResourceMultipleMetricCriteria : MetricAle public MetricAlertSingleResourceMultipleMetricCriteria() { AllOf = new ChangeTrackingList(); - OdataType = MonitorOdataType.MicrosoftAzureMonitorSingleResourceMultipleMetricCriteria; + OdataType = OdataType.MicrosoftAzureMonitorSingleResourceMultipleMetricCriteria; } /// Initializes a new instance of MetricAlertSingleResourceMultipleMetricCriteria. /// specifies the type of the alert criteria. /// Additional Properties. /// The list of metric criteria for this 'all of' operation. - internal MetricAlertSingleResourceMultipleMetricCriteria(MonitorOdataType odataType, IDictionary additionalProperties, IList allOf) : base(odataType, additionalProperties) + internal MetricAlertSingleResourceMultipleMetricCriteria(OdataType odataType, IDictionary additionalProperties, IList allOf) : base(odataType, additionalProperties) { AllOf = allOf; OdataType = odataType; diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorOdataType.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/OdataType.cs similarity index 50% rename from sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorOdataType.cs rename to sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/OdataType.cs index e34d1dd4ddc7..674add0553ee 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/MonitorOdataType.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/OdataType.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.Monitor.Models { /// specifies the type of the alert criteria. - internal readonly partial struct MonitorOdataType : IEquatable + internal readonly partial struct OdataType : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public MonitorOdataType(string value) + public OdataType(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -27,23 +27,23 @@ public MonitorOdataType(string value) private const string MicrosoftAzureMonitorWebtestLocationAvailabilityCriteriaValue = "Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria"; /// Microsoft.Azure.Monitor.SingleResourceMultipleMetricCriteria. - public static MonitorOdataType MicrosoftAzureMonitorSingleResourceMultipleMetricCriteria { get; } = new MonitorOdataType(MicrosoftAzureMonitorSingleResourceMultipleMetricCriteriaValue); + public static OdataType MicrosoftAzureMonitorSingleResourceMultipleMetricCriteria { get; } = new OdataType(MicrosoftAzureMonitorSingleResourceMultipleMetricCriteriaValue); /// Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria. - public static MonitorOdataType MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria { get; } = new MonitorOdataType(MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteriaValue); + public static OdataType MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteria { get; } = new OdataType(MicrosoftAzureMonitorMultipleResourceMultipleMetricCriteriaValue); /// Microsoft.Azure.Monitor.WebtestLocationAvailabilityCriteria. - public static MonitorOdataType MicrosoftAzureMonitorWebtestLocationAvailabilityCriteria { get; } = new MonitorOdataType(MicrosoftAzureMonitorWebtestLocationAvailabilityCriteriaValue); - /// Determines if two values are the same. - public static bool operator ==(MonitorOdataType left, MonitorOdataType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(MonitorOdataType left, MonitorOdataType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator MonitorOdataType(string value) => new MonitorOdataType(value); + public static OdataType MicrosoftAzureMonitorWebtestLocationAvailabilityCriteria { get; } = new OdataType(MicrosoftAzureMonitorWebtestLocationAvailabilityCriteriaValue); + /// Determines if two values are the same. + public static bool operator ==(OdataType left, OdataType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(OdataType left, OdataType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator OdataType(string value) => new OdataType(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is MonitorOdataType other && Equals(other); + public override bool Equals(object obj) => obj is OdataType other && Equals(other); /// - public bool Equals(MonitorOdataType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(OdataType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.Serialization.cs index 094b86f1228e..752d99eba7ca 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.Serialization.cs @@ -37,14 +37,14 @@ internal static UnknownMetricAlertCriteria DeserializeUnknownMetricAlertCriteria { return null; } - MonitorOdataType odataType = "Unknown"; + OdataType odataType = "Unknown"; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { if (property.NameEquals("odata.type"u8)) { - odataType = new MonitorOdataType(property.Value.GetString()); + odataType = new OdataType(property.Value.GetString()); continue; } additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.cs index 169dc6008d44..2a5440f4936c 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/UnknownMetricAlertCriteria.cs @@ -16,7 +16,7 @@ internal partial class UnknownMetricAlertCriteria : MetricAlertCriteria /// Initializes a new instance of UnknownMetricAlertCriteria. /// specifies the type of the alert criteria. /// Additional Properties. - internal UnknownMetricAlertCriteria(MonitorOdataType odataType, IDictionary additionalProperties) : base(odataType, additionalProperties) + internal UnknownMetricAlertCriteria(OdataType odataType, IDictionary additionalProperties) : base(odataType, additionalProperties) { OdataType = odataType; } diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.Serialization.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.Serialization.cs index cd6752f90daa..6c86ec3bd807 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.Serialization.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.Serialization.cs @@ -46,7 +46,7 @@ internal static WebtestLocationAvailabilityCriteria DeserializeWebtestLocationAv ResourceIdentifier webTestId = default; ResourceIdentifier componentId = default; float failedLocationCount = default; - MonitorOdataType odataType = default; + OdataType odataType = default; IDictionary additionalProperties = default; Dictionary additionalPropertiesDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -68,7 +68,7 @@ internal static WebtestLocationAvailabilityCriteria DeserializeWebtestLocationAv } if (property.NameEquals("odata.type"u8)) { - odataType = new MonitorOdataType(property.Value.GetString()); + odataType = new OdataType(property.Value.GetString()); continue; } additionalPropertiesDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); diff --git a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs index 5f87646aad73..be2029905818 100644 --- a/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs +++ b/sdk/monitor/Azure.ResourceManager.Monitor/src/Generated/Models/WebtestLocationAvailabilityCriteria.cs @@ -27,7 +27,7 @@ public WebtestLocationAvailabilityCriteria(ResourceIdentifier webTestId, Resourc WebTestId = webTestId; ComponentId = componentId; FailedLocationCount = failedLocationCount; - OdataType = MonitorOdataType.MicrosoftAzureMonitorWebtestLocationAvailabilityCriteria; + OdataType = OdataType.MicrosoftAzureMonitorWebtestLocationAvailabilityCriteria; } /// Initializes a new instance of WebtestLocationAvailabilityCriteria. @@ -36,7 +36,7 @@ public WebtestLocationAvailabilityCriteria(ResourceIdentifier webTestId, Resourc /// The Application Insights web test Id. /// The Application Insights resource Id. /// The number of failed locations. - internal WebtestLocationAvailabilityCriteria(MonitorOdataType odataType, IDictionary additionalProperties, ResourceIdentifier webTestId, ResourceIdentifier componentId, float failedLocationCount) : base(odataType, additionalProperties) + internal WebtestLocationAvailabilityCriteria(OdataType odataType, IDictionary additionalProperties, ResourceIdentifier webTestId, ResourceIdentifier componentId, float failedLocationCount) : base(odataType, additionalProperties) { WebTestId = webTestId; ComponentId = componentId; diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs index 7b130bf5a6d8..c5d2cac35c99 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/samples/Generated/Samples/Sample_NetworkCloudVirtualMachineCollection.cs @@ -144,7 +144,7 @@ public async Task CreateOrUpdate_CreateOrUpdateVirtualMachine() // invoke the operation string virtualMachineName = "virtualMachineName"; - NetworkCloudVirtualMachineData data = new NetworkCloudVirtualMachineData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), "username", new NetworkAttachment("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", VirtualMachineIPAllocationMethod.Dynamic), 2, 8, new NetworkCloudStorageProfile(new NetworkCloudOSDisk(120) + NetworkCloudVirtualMachineData data = new NetworkCloudVirtualMachineData(new AzureLocation("location"), new ExtendedLocation("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName", "CustomLocation"), "username", new NetworkAttachment("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.NetworkCloud/cloudServicesNetworks/cloudServicesNetworkName", VirtualMachineIPAllocationMethod.Dynamic), 2, 8, new NetworkCloudStorageProfile(new OSDisk(120) { CreateOption = OSDiskCreateOption.Ephemeral, DeleteOption = OSDiskDeleteOption.Delete, diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.Serialization.cs index f0b05ffa2d7d..c70854de3587 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.Serialization.cs @@ -42,13 +42,13 @@ internal static NetworkCloudStorageProfile DeserializeNetworkCloudStorageProfile { return null; } - NetworkCloudOSDisk osDisk = default; + OSDisk osDisk = default; Optional> volumeAttachments = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("osDisk"u8)) { - osDisk = NetworkCloudOSDisk.DeserializeNetworkCloudOSDisk(property.Value); + osDisk = OSDisk.DeserializeOSDisk(property.Value); continue; } if (property.NameEquals("volumeAttachments"u8)) diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs index 2f0cde7cfb52..db418ba32d3e 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudStorageProfile.cs @@ -17,7 +17,7 @@ public partial class NetworkCloudStorageProfile /// Initializes a new instance of NetworkCloudStorageProfile. /// The disk to use with this virtual machine. /// is null. - public NetworkCloudStorageProfile(NetworkCloudOSDisk osDisk) + public NetworkCloudStorageProfile(OSDisk osDisk) { Argument.AssertNotNull(osDisk, nameof(osDisk)); @@ -28,14 +28,14 @@ public NetworkCloudStorageProfile(NetworkCloudOSDisk osDisk) /// Initializes a new instance of NetworkCloudStorageProfile. /// The disk to use with this virtual machine. /// The resource IDs of volumes that are requested to be attached to the virtual machine. - internal NetworkCloudStorageProfile(NetworkCloudOSDisk osDisk, IList volumeAttachments) + internal NetworkCloudStorageProfile(OSDisk osDisk, IList volumeAttachments) { OSDisk = osDisk; VolumeAttachments = volumeAttachments; } /// The disk to use with this virtual machine. - public NetworkCloudOSDisk OSDisk { get; set; } + public OSDisk OSDisk { get; set; } /// The resource IDs of volumes that are requested to be attached to the virtual machine. public IList VolumeAttachments { get; } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOSDisk.Serialization.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/OSDisk.Serialization.cs similarity index 88% rename from sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOSDisk.Serialization.cs rename to sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/OSDisk.Serialization.cs index 07a4b8ae72ea..3df853b3e75c 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOSDisk.Serialization.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/OSDisk.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.NetworkCloud.Models { - public partial class NetworkCloudOSDisk : IUtf8JsonSerializable + public partial class OSDisk : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,7 +30,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static NetworkCloudOSDisk DeserializeNetworkCloudOSDisk(JsonElement element) + internal static OSDisk DeserializeOSDisk(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -65,7 +65,7 @@ internal static NetworkCloudOSDisk DeserializeNetworkCloudOSDisk(JsonElement ele continue; } } - return new NetworkCloudOSDisk(Optional.ToNullable(createOption), Optional.ToNullable(deleteOption), diskSizeGB); + return new OSDisk(Optional.ToNullable(createOption), Optional.ToNullable(deleteOption), diskSizeGB); } } } diff --git a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOSDisk.cs b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/OSDisk.cs similarity index 77% rename from sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOSDisk.cs rename to sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/OSDisk.cs index 9f76cbfa1e33..0f89877428b5 100644 --- a/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/NetworkCloudOSDisk.cs +++ b/sdk/networkcloud/Azure.ResourceManager.NetworkCloud/src/Generated/Models/OSDisk.cs @@ -8,20 +8,20 @@ namespace Azure.ResourceManager.NetworkCloud.Models { /// OsDisk represents configuration of the boot disk. - public partial class NetworkCloudOSDisk + public partial class OSDisk { - /// Initializes a new instance of NetworkCloudOSDisk. + /// Initializes a new instance of OSDisk. /// The size of the disk in gigabytes. Required if the createOption is Ephemeral. - public NetworkCloudOSDisk(long diskSizeInGB) + public OSDisk(long diskSizeInGB) { DiskSizeInGB = diskSizeInGB; } - /// Initializes a new instance of NetworkCloudOSDisk. + /// Initializes a new instance of OSDisk. /// The strategy for creating the OS disk. /// The strategy for deleting the OS disk. /// The size of the disk in gigabytes. Required if the createOption is Ephemeral. - internal NetworkCloudOSDisk(OSDiskCreateOption? createOption, OSDiskDeleteOption? deleteOption, long diskSizeInGB) + internal OSDisk(OSDiskCreateOption? createOption, OSDiskDeleteOption? deleteOption, long diskSizeInGB) { CreateOption = createOption; DeleteOption = deleteOption; diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/samples/Generated/Samples/Sample_NewRelicMonitorResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/samples/Generated/Samples/Sample_NewRelicMonitorResource.cs index 7e5e46869f69..221a2edc27d1 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/samples/Generated/Samples/Sample_NewRelicMonitorResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/samples/Generated/Samples/Sample_NewRelicMonitorResource.cs @@ -509,7 +509,7 @@ public async Task GetHosts_MonitorsListHostsMaximumSetGen() new ResourceIdentifier("xzphvxvfmvjrnsgyns") }, }; - await foreach (NewRelicObservabilityVmInfo item in newRelicMonitorResource.GetHostsAsync(content)) + await foreach (VmInfo item in newRelicMonitorResource.GetHostsAsync(content)) { Console.WriteLine($"Succeeded: {item}"); } @@ -546,7 +546,7 @@ public async Task GetHosts_MonitorsListHostsMinimumSetGen() new ResourceIdentifier("xzphvxvfmvjrnsgyns") }, }; - await foreach (NewRelicObservabilityVmInfo item in newRelicMonitorResource.GetHostsAsync(content)) + await foreach (VmInfo item in newRelicMonitorResource.GetHostsAsync(content)) { Console.WriteLine($"Succeeded: {item}"); } @@ -636,7 +636,7 @@ public async Task VmHostPayload_MonitorsVmHostPayloadMaximumSetGen() NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); // invoke the operation - NewRelicObservabilityVmExtensionPayload result = await newRelicMonitorResource.VmHostPayloadAsync(); + VmExtensionPayload result = await newRelicMonitorResource.VmHostPayloadAsync(); Console.WriteLine($"Succeeded: {result}"); } @@ -663,7 +663,7 @@ public async Task VmHostPayload_MonitorsVmHostPayloadMinimumSetGen() NewRelicMonitorResource newRelicMonitorResource = client.GetNewRelicMonitorResource(newRelicMonitorResourceId); // invoke the operation - NewRelicObservabilityVmExtensionPayload result = await newRelicMonitorResource.VmHostPayloadAsync(); + VmExtensionPayload result = await newRelicMonitorResource.VmHostPayloadAsync(); Console.WriteLine($"Succeeded: {result}"); } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs index 5af78b08f7bc..1efb9718e845 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/ArmNewRelicObservabilityModelFactory.cs @@ -107,14 +107,14 @@ public static NewRelicObservabilityAppServiceInfo NewRelicObservabilityAppServic return new NewRelicObservabilityAppServiceInfo(azureResourceId, agentVersion, agentStatus); } - /// Initializes a new instance of NewRelicObservabilityVmInfo. + /// Initializes a new instance of VmInfo. /// Azure VM resource ID. /// Version of the NewRelic agent installed on the VM. /// Status of the NewRelic agent installed on the VM. - /// A new instance for mocking. - public static NewRelicObservabilityVmInfo NewRelicObservabilityVmInfo(ResourceIdentifier vmId = null, string agentVersion = null, string agentStatus = null) + /// A new instance for mocking. + public static VmInfo VmInfo(ResourceIdentifier vmId = null, string agentVersion = null, string agentStatus = null) { - return new NewRelicObservabilityVmInfo(vmId, agentVersion, agentStatus); + return new VmInfo(vmId, agentVersion, agentStatus); } /// Initializes a new instance of NewRelicResourceMonitorResult. @@ -143,12 +143,12 @@ public static NewRelicObservabilityTagRuleData NewRelicObservabilityTagRuleData( return new NewRelicObservabilityTagRuleData(id, name, resourceType, systemData, provisioningState, logRules, metricRules); } - /// Initializes a new instance of NewRelicObservabilityVmExtensionPayload. + /// Initializes a new instance of VmExtensionPayload. /// Ingestion key of the account. - /// A new instance for mocking. - public static NewRelicObservabilityVmExtensionPayload NewRelicObservabilityVmExtensionPayload(string ingestionKey = null) + /// A new instance for mocking. + public static VmExtensionPayload VmExtensionPayload(string ingestionKey = null) { - return new NewRelicObservabilityVmExtensionPayload(ingestionKey); + return new VmExtensionPayload(ingestionKey); } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoredResourceListResult.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredResourceListResult.Serialization.cs similarity index 81% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoredResourceListResult.Serialization.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredResourceListResult.Serialization.cs index 7295e80e4c32..9afd4f3b4b0b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoredResourceListResult.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredResourceListResult.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - internal partial class NewRelicObservabilityMonitoredResourceListResult + internal partial class MonitoredResourceListResult { - internal static NewRelicObservabilityMonitoredResourceListResult DeserializeNewRelicObservabilityMonitoredResourceListResult(JsonElement element) + internal static MonitoredResourceListResult DeserializeMonitoredResourceListResult(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -44,7 +44,7 @@ internal static NewRelicObservabilityMonitoredResourceListResult DeserializeNewR continue; } } - return new NewRelicObservabilityMonitoredResourceListResult(value, nextLink.Value); + return new MonitoredResourceListResult(value, nextLink.Value); } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoredResourceListResult.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredResourceListResult.cs similarity index 68% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoredResourceListResult.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredResourceListResult.cs index 228abd358857..af291c4d909d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityMonitoredResourceListResult.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/MonitoredResourceListResult.cs @@ -13,22 +13,22 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { /// List of all the resources being monitored by NewRelic monitor resource. - internal partial class NewRelicObservabilityMonitoredResourceListResult + internal partial class MonitoredResourceListResult { - /// Initializes a new instance of NewRelicObservabilityMonitoredResourceListResult. + /// Initializes a new instance of MonitoredResourceListResult. /// The MonitoredResource items on this page. /// is null. - internal NewRelicObservabilityMonitoredResourceListResult(IEnumerable value) + internal MonitoredResourceListResult(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of NewRelicObservabilityMonitoredResourceListResult. + /// Initializes a new instance of MonitoredResourceListResult. /// The MonitoredResource items on this page. /// The link to the next page of items. - internal NewRelicObservabilityMonitoredResourceListResult(IReadOnlyList value, Uri nextLink) + internal MonitoredResourceListResult(IReadOnlyList value, Uri nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmExtensionPayload.Serialization.cs similarity index 71% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.Serialization.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmExtensionPayload.Serialization.cs index 1eefb3167a23..a2aab0c7be7b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmExtensionPayload.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - public partial class NewRelicObservabilityVmExtensionPayload + public partial class VmExtensionPayload { - internal static NewRelicObservabilityVmExtensionPayload DeserializeNewRelicObservabilityVmExtensionPayload(JsonElement element) + internal static VmExtensionPayload DeserializeVmExtensionPayload(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -27,7 +27,7 @@ internal static NewRelicObservabilityVmExtensionPayload DeserializeNewRelicObser continue; } } - return new NewRelicObservabilityVmExtensionPayload(ingestionKey.Value); + return new VmExtensionPayload(ingestionKey.Value); } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmExtensionPayload.cs similarity index 58% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmExtensionPayload.cs index 3584f17b3e61..d1cc0d45962b 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmExtensionPayload.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmExtensionPayload.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { /// Response of payload to be passed while installing VM agent. - public partial class NewRelicObservabilityVmExtensionPayload + public partial class VmExtensionPayload { - /// Initializes a new instance of NewRelicObservabilityVmExtensionPayload. - internal NewRelicObservabilityVmExtensionPayload() + /// Initializes a new instance of VmExtensionPayload. + internal VmExtensionPayload() { } - /// Initializes a new instance of NewRelicObservabilityVmExtensionPayload. + /// Initializes a new instance of VmExtensionPayload. /// Ingestion key of the account. - internal NewRelicObservabilityVmExtensionPayload(string ingestionKey) + internal VmExtensionPayload(string ingestionKey) { IngestionKey = ingestionKey; } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmHostsListResponse.Serialization.cs similarity index 67% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.Serialization.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmHostsListResponse.Serialization.cs index 91b34d970ba6..aaf33515aba2 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmHostsListResponse.Serialization.cs @@ -12,24 +12,24 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - internal partial class NewRelicObservabilityVmHostsListResponse + internal partial class VmHostsListResponse { - internal static NewRelicObservabilityVmHostsListResponse DeserializeNewRelicObservabilityVmHostsListResponse(JsonElement element) + internal static VmHostsListResponse DeserializeVmHostsListResponse(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { return null; } - IReadOnlyList value = default; + IReadOnlyList value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value"u8)) { - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(NewRelicObservabilityVmInfo.DeserializeNewRelicObservabilityVmInfo(item)); + array.Add(VmInfo.DeserializeVmInfo(item)); } value = array; continue; @@ -44,7 +44,7 @@ internal static NewRelicObservabilityVmHostsListResponse DeserializeNewRelicObse continue; } } - return new NewRelicObservabilityVmHostsListResponse(value, nextLink.Value); + return new VmHostsListResponse(value, nextLink.Value); } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmHostsListResponse.cs similarity index 64% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmHostsListResponse.cs index ee0d0f63a4cb..dea965ed794d 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmHostsListResponse.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmHostsListResponse.cs @@ -13,29 +13,29 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { /// Response of a list VM Host Operation. - internal partial class NewRelicObservabilityVmHostsListResponse + internal partial class VmHostsListResponse { - /// Initializes a new instance of NewRelicObservabilityVmHostsListResponse. + /// Initializes a new instance of VmHostsListResponse. /// The VMInfo items on this page. /// is null. - internal NewRelicObservabilityVmHostsListResponse(IEnumerable value) + internal VmHostsListResponse(IEnumerable value) { Argument.AssertNotNull(value, nameof(value)); Value = value.ToList(); } - /// Initializes a new instance of NewRelicObservabilityVmHostsListResponse. + /// Initializes a new instance of VmHostsListResponse. /// The VMInfo items on this page. /// The link to the next page of items. - internal NewRelicObservabilityVmHostsListResponse(IReadOnlyList value, Uri nextLink) + internal VmHostsListResponse(IReadOnlyList value, Uri nextLink) { Value = value; NextLink = nextLink; } /// The VMInfo items on this page. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The link to the next page of items. public Uri NextLink { get; } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.Serialization.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmInfo.Serialization.cs similarity index 83% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.Serialization.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmInfo.Serialization.cs index 14604026b76c..a04e6fa15cd7 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.Serialization.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmInfo.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { - public partial class NewRelicObservabilityVmInfo + public partial class VmInfo { - internal static NewRelicObservabilityVmInfo DeserializeNewRelicObservabilityVmInfo(JsonElement element) + internal static VmInfo DeserializeVmInfo(JsonElement element) { if (element.ValueKind == JsonValueKind.Null) { @@ -43,7 +43,7 @@ internal static NewRelicObservabilityVmInfo DeserializeNewRelicObservabilityVmIn continue; } } - return new NewRelicObservabilityVmInfo(vmId.Value, agentVersion.Value, agentStatus.Value); + return new VmInfo(vmId.Value, agentVersion.Value, agentStatus.Value); } } } diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmInfo.cs similarity index 73% rename from sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs rename to sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmInfo.cs index 8a43becb4429..5480721599ef 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/NewRelicObservabilityVmInfo.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/Models/VmInfo.cs @@ -10,18 +10,18 @@ namespace Azure.ResourceManager.NewRelicObservability.Models { /// Details of VM Resource having NewRelic OneAgent installed. - public partial class NewRelicObservabilityVmInfo + public partial class VmInfo { - /// Initializes a new instance of NewRelicObservabilityVmInfo. - internal NewRelicObservabilityVmInfo() + /// Initializes a new instance of VmInfo. + internal VmInfo() { } - /// Initializes a new instance of NewRelicObservabilityVmInfo. + /// Initializes a new instance of VmInfo. /// Azure VM resource ID. /// Version of the NewRelic agent installed on the VM. /// Status of the NewRelic agent installed on the VM. - internal NewRelicObservabilityVmInfo(ResourceIdentifier vmId, string agentVersion, string agentStatus) + internal VmInfo(ResourceIdentifier vmId, string agentVersion, string agentStatus) { VmId = vmId; AgentVersion = agentVersion; diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs index fec613a795ab..0ff7a7753f5c 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/NewRelicMonitorResource.cs @@ -623,14 +623,14 @@ public virtual Response SwitchBilling(NewRelicSwitchBil /// The details of the Hosts get request. /// The cancellation token to use. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetHostsAsync(NewRelicHostsGetContent content, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetHostsAsync(NewRelicHostsGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListHostsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListHostsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, NewRelicObservabilityVmInfo.DeserializeNewRelicObservabilityVmInfo, _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetHosts", "value", "nextLink", cancellationToken); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, VmInfo.DeserializeVmInfo, _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetHosts", "value", "nextLink", cancellationToken); } /// @@ -649,14 +649,14 @@ public virtual AsyncPageable GetHostsAsync(NewRelic /// The details of the Hosts get request. /// The cancellation token to use. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetHosts(NewRelicHostsGetContent content, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetHosts(NewRelicHostsGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); HttpMessage FirstPageRequest(int? pageSizeHint) => _newRelicMonitorResourceMonitorsRestClient.CreateListHostsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _newRelicMonitorResourceMonitorsRestClient.CreateListHostsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, NewRelicObservabilityVmInfo.DeserializeNewRelicObservabilityVmInfo, _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetHosts", "value", "nextLink", cancellationToken); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, VmInfo.DeserializeVmInfo, _newRelicMonitorResourceMonitorsClientDiagnostics, Pipeline, "NewRelicMonitorResource.GetHosts", "value", "nextLink", cancellationToken); } /// @@ -717,7 +717,7 @@ public virtual Pageable GetMonitoredResources(Can /// /// /// The cancellation token to use. - public virtual async Task> VmHostPayloadAsync(CancellationToken cancellationToken = default) + public virtual async Task> VmHostPayloadAsync(CancellationToken cancellationToken = default) { using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.VmHostPayload"); scope.Start(); @@ -747,7 +747,7 @@ public virtual async Task> VmH /// /// /// The cancellation token to use. - public virtual Response VmHostPayload(CancellationToken cancellationToken = default) + public virtual Response VmHostPayload(CancellationToken cancellationToken = default) { using var scope = _newRelicMonitorResourceMonitorsClientDiagnostics.CreateScope("NewRelicMonitorResource.VmHostPayload"); scope.Start(); diff --git a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs index 9c5f9b2cf42a..714fb086d510 100644 --- a/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs +++ b/sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/src/Generated/RestOperations/MonitorsRestOperations.cs @@ -887,7 +887,7 @@ internal HttpMessage CreateListHostsRequest(string subscriptionId, string resour /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListHostsAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) + public async Task> ListHostsAsync(string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -900,9 +900,9 @@ public async Task> ListHostsA { case 200: { - NewRelicObservabilityVmHostsListResponse value = default; + VmHostsListResponse value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityVmHostsListResponse.DeserializeNewRelicObservabilityVmHostsListResponse(document.RootElement); + value = VmHostsListResponse.DeserializeVmHostsListResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -918,7 +918,7 @@ public async Task> ListHostsA /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListHosts(string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) + public Response ListHosts(string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -931,9 +931,9 @@ public Response ListHosts(string subsc { case 200: { - NewRelicObservabilityVmHostsListResponse value = default; + VmHostsListResponse value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NewRelicObservabilityVmHostsListResponse.DeserializeNewRelicObservabilityVmHostsListResponse(document.RootElement); + value = VmHostsListResponse.DeserializeVmHostsListResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -969,7 +969,7 @@ internal HttpMessage CreateListMonitoredResourcesRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListMonitoredResourcesAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> ListMonitoredResourcesAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -981,9 +981,9 @@ public async Task> Li { case 200: { - NewRelicObservabilityMonitoredResourceListResult value = default; + MonitoredResourceListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityMonitoredResourceListResult.DeserializeNewRelicObservabilityMonitoredResourceListResult(document.RootElement); + value = MonitoredResourceListResult.DeserializeMonitoredResourceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -998,7 +998,7 @@ public async Task> Li /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListMonitoredResources(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response ListMonitoredResources(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1010,9 +1010,9 @@ public Response ListMonitoredR { case 200: { - NewRelicObservabilityMonitoredResourceListResult value = default; + MonitoredResourceListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NewRelicObservabilityMonitoredResourceListResult.DeserializeNewRelicObservabilityMonitoredResourceListResult(document.RootElement); + value = MonitoredResourceListResult.DeserializeMonitoredResourceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1048,7 +1048,7 @@ internal HttpMessage CreateVmHostPayloadRequest(string subscriptionId, string re /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> VmHostPayloadAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> VmHostPayloadAsync(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1060,9 +1060,9 @@ public async Task> VmHostPaylo { case 200: { - NewRelicObservabilityVmExtensionPayload value = default; + VmExtensionPayload value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityVmExtensionPayload.DeserializeNewRelicObservabilityVmExtensionPayload(document.RootElement); + value = VmExtensionPayload.DeserializeVmExtensionPayload(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1077,7 +1077,7 @@ public async Task> VmHostPaylo /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response VmHostPayload(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response VmHostPayload(string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -1089,9 +1089,9 @@ public Response VmHostPayload(string su { case 200: { - NewRelicObservabilityVmExtensionPayload value = default; + VmExtensionPayload value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NewRelicObservabilityVmExtensionPayload.DeserializeNewRelicObservabilityVmExtensionPayload(document.RootElement); + value = VmExtensionPayload.DeserializeVmExtensionPayload(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1342,7 +1342,7 @@ internal HttpMessage CreateListHostsNextPageRequest(string nextLink, string subs /// The cancellation token to use. /// , , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListHostsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) + public async Task> ListHostsNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -1356,9 +1356,9 @@ public async Task> ListHostsN { case 200: { - NewRelicObservabilityVmHostsListResponse value = default; + VmHostsListResponse value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityVmHostsListResponse.DeserializeNewRelicObservabilityVmHostsListResponse(document.RootElement); + value = VmHostsListResponse.DeserializeVmHostsListResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1375,7 +1375,7 @@ public async Task> ListHostsN /// The cancellation token to use. /// , , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListHostsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) + public Response ListHostsNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, NewRelicHostsGetContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -1389,9 +1389,9 @@ public Response ListHostsNextPage(stri { case 200: { - NewRelicObservabilityVmHostsListResponse value = default; + VmHostsListResponse value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NewRelicObservabilityVmHostsListResponse.DeserializeNewRelicObservabilityVmHostsListResponse(document.RootElement); + value = VmHostsListResponse.DeserializeVmHostsListResponse(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1421,7 +1421,7 @@ internal HttpMessage CreateListMonitoredResourcesNextPageRequest(string nextLink /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListMonitoredResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public async Task> ListMonitoredResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -1434,9 +1434,9 @@ public async Task> Li { case 200: { - NewRelicObservabilityMonitoredResourceListResult value = default; + MonitoredResourceListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NewRelicObservabilityMonitoredResourceListResult.DeserializeNewRelicObservabilityMonitoredResourceListResult(document.RootElement); + value = MonitoredResourceListResult.DeserializeMonitoredResourceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -1452,7 +1452,7 @@ public async Task> Li /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListMonitoredResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) + public Response ListMonitoredResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string monitorName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -1465,9 +1465,9 @@ public Response ListMonitoredR { case 200: { - NewRelicObservabilityMonitoredResourceListResult value = default; + MonitoredResourceListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NewRelicObservabilityMonitoredResourceListResult.DeserializeNewRelicObservabilityMonitoredResourceListResult(document.RootElement); + value = MonitoredResourceListResult.DeserializeMonitoredResourceListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.Serialization.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.Serialization.cs index bda84be86a48..4a21e1c5f09f 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.Serialization.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.Serialization.cs @@ -48,10 +48,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(ExtendedLocationType)) + if (Optional.IsDefined(ProviderHubExtendedLocationType)) { writer.WritePropertyName("type"u8); - writer.WriteStringValue(ExtendedLocationType.Value.ToSerialString()); + writer.WriteStringValue(ProviderHubExtendedLocationType.Value.ToSerialString()); } writer.WriteEndObject(); } diff --git a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs index c46d303684e5..8ddce5eb6383 100644 --- a/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs +++ b/sdk/providerhub/Azure.ResourceManager.ProviderHub/src/Generated/Models/ResourceTypeSkuLocationInfo.cs @@ -28,14 +28,14 @@ public ResourceTypeSkuLocationInfo(AzureLocation location) /// /// /// - /// - internal ResourceTypeSkuLocationInfo(AzureLocation location, IList zones, IList zoneDetails, IList extendedLocations, ProviderHubExtendedLocationType? extendedLocationType) + /// + internal ResourceTypeSkuLocationInfo(AzureLocation location, IList zones, IList zoneDetails, IList extendedLocations, ProviderHubExtendedLocationType? providerHubExtendedLocationType) { Location = location; Zones = zones; ZoneDetails = zoneDetails; ExtendedLocations = extendedLocations; - ExtendedLocationType = extendedLocationType; + ProviderHubExtendedLocationType = providerHubExtendedLocationType; } /// Gets or sets the location. @@ -46,7 +46,7 @@ internal ResourceTypeSkuLocationInfo(AzureLocation location, IList zones public IList ZoneDetails { get; } /// Gets the extended locations. public IList ExtendedLocations { get; } - /// Gets or sets the extended location type. - public ProviderHubExtendedLocationType? ExtendedLocationType { get; set; } + /// Gets or sets the provider hub extended location type. + public ProviderHubExtendedLocationType? ProviderHubExtendedLocationType { get; set; } } } From 5bd35c5dc783f092440cac079ba0dd559d313332 Mon Sep 17 00:00:00 2001 From: azure-sdk Date: Wed, 13 Sep 2023 08:02:58 +0000 Subject: [PATCH 8/8] Update SDK codes --- .../ArmRecoveryServicesModelFactory.cs | 2 +- ...vateEndpointConnectionProvisioningState.cs | 57 +++++++++++++++++++ ...PrivateEndpointConnection.Serialization.cs | 4 +- ...coveryServicesPrivateEndpointConnection.cs | 4 +- ...vateEndpointConnectionProvisioningState.cs | 57 ------------------- 5 files changed, 62 insertions(+), 62 deletions(-) create mode 100644 sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs delete mode 100644 sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnectionProvisioningState.cs diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/ArmRecoveryServicesModelFactory.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/ArmRecoveryServicesModelFactory.cs index 9fa98faa508a..ee71a17b858b 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/ArmRecoveryServicesModelFactory.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/ArmRecoveryServicesModelFactory.cs @@ -191,7 +191,7 @@ public static RecoveryServicesPrivateEndpointConnectionVaultProperties RecoveryS /// Gets or sets private link service connection state. /// Group Ids for the Private Endpoint. /// A new instance for mocking. - public static RecoveryServicesPrivateEndpointConnection RecoveryServicesPrivateEndpointConnection(RecoveryServicesPrivateEndpointConnectionProvisioningState? provisioningState = null, ResourceIdentifier privateEndpointId = null, RecoveryServicesPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, IEnumerable groupIds = null) + public static RecoveryServicesPrivateEndpointConnection RecoveryServicesPrivateEndpointConnection(PrivateEndpointConnectionProvisioningState? provisioningState = null, ResourceIdentifier privateEndpointId = null, RecoveryServicesPrivateLinkServiceConnectionState privateLinkServiceConnectionState = null, IEnumerable groupIds = null) { groupIds ??= new List(); diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 000000000000..c0575fdeac78 --- /dev/null +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,57 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RecoveryServices.Models +{ + /// Gets or sets provisioning state of the private endpoint connection. + public readonly partial struct PrivateEndpointConnectionProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public PrivateEndpointConnectionProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SucceededValue = "Succeeded"; + private const string DeletingValue = "Deleting"; + private const string FailedValue = "Failed"; + private const string PendingValue = "Pending"; + + /// Succeeded. + public static PrivateEndpointConnectionProvisioningState Succeeded { get; } = new PrivateEndpointConnectionProvisioningState(SucceededValue); + /// Deleting. + public static PrivateEndpointConnectionProvisioningState Deleting { get; } = new PrivateEndpointConnectionProvisioningState(DeletingValue); + /// Failed. + public static PrivateEndpointConnectionProvisioningState Failed { get; } = new PrivateEndpointConnectionProvisioningState(FailedValue); + /// Pending. + public static PrivateEndpointConnectionProvisioningState Pending { get; } = new PrivateEndpointConnectionProvisioningState(PendingValue); + /// Determines if two values are the same. + public static bool operator ==(PrivateEndpointConnectionProvisioningState left, PrivateEndpointConnectionProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(PrivateEndpointConnectionProvisioningState left, PrivateEndpointConnectionProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator PrivateEndpointConnectionProvisioningState(string value) => new PrivateEndpointConnectionProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is PrivateEndpointConnectionProvisioningState other && Equals(other); + /// + public bool Equals(PrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.Serialization.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.Serialization.cs index fd15dcefd2be..d3cb57856f28 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.Serialization.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.Serialization.cs @@ -20,7 +20,7 @@ internal static RecoveryServicesPrivateEndpointConnection DeserializeRecoverySer { return null; } - Optional provisioningState = default; + Optional provisioningState = default; Optional privateEndpoint = default; Optional privateLinkServiceConnectionState = default; Optional> groupIds = default; @@ -32,7 +32,7 @@ internal static RecoveryServicesPrivateEndpointConnection DeserializeRecoverySer { continue; } - provisioningState = new RecoveryServicesPrivateEndpointConnectionProvisioningState(property.Value.GetString()); + provisioningState = new PrivateEndpointConnectionProvisioningState(property.Value.GetString()); continue; } if (property.NameEquals("privateEndpoint"u8)) diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs index e398c3b1a228..856ba8ba7314 100644 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs +++ b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnection.cs @@ -25,7 +25,7 @@ internal RecoveryServicesPrivateEndpointConnection() /// The Private Endpoint network resource that is linked to the Private Endpoint connection. /// Gets or sets private link service connection state. /// Group Ids for the Private Endpoint. - internal RecoveryServicesPrivateEndpointConnection(RecoveryServicesPrivateEndpointConnectionProvisioningState? provisioningState, SubResource privateEndpoint, RecoveryServicesPrivateLinkServiceConnectionState privateLinkServiceConnectionState, IReadOnlyList groupIds) + internal RecoveryServicesPrivateEndpointConnection(PrivateEndpointConnectionProvisioningState? provisioningState, SubResource privateEndpoint, RecoveryServicesPrivateLinkServiceConnectionState privateLinkServiceConnectionState, IReadOnlyList groupIds) { ProvisioningState = provisioningState; PrivateEndpoint = privateEndpoint; @@ -34,7 +34,7 @@ internal RecoveryServicesPrivateEndpointConnection(RecoveryServicesPrivateEndpoi } /// Gets or sets provisioning state of the private endpoint connection. - public RecoveryServicesPrivateEndpointConnectionProvisioningState? ProvisioningState { get; } + public PrivateEndpointConnectionProvisioningState? ProvisioningState { get; } /// The Private Endpoint network resource that is linked to the Private Endpoint connection. internal SubResource PrivateEndpoint { get; } /// Gets Id. diff --git a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnectionProvisioningState.cs b/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnectionProvisioningState.cs deleted file mode 100644 index a029b56d8338..000000000000 --- a/sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/src/Generated/Models/RecoveryServicesPrivateEndpointConnectionProvisioningState.cs +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RecoveryServices.Models -{ - /// Gets or sets provisioning state of the private endpoint connection. - public readonly partial struct RecoveryServicesPrivateEndpointConnectionProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RecoveryServicesPrivateEndpointConnectionProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string SucceededValue = "Succeeded"; - private const string DeletingValue = "Deleting"; - private const string FailedValue = "Failed"; - private const string PendingValue = "Pending"; - - /// Succeeded. - public static RecoveryServicesPrivateEndpointConnectionProvisioningState Succeeded { get; } = new RecoveryServicesPrivateEndpointConnectionProvisioningState(SucceededValue); - /// Deleting. - public static RecoveryServicesPrivateEndpointConnectionProvisioningState Deleting { get; } = new RecoveryServicesPrivateEndpointConnectionProvisioningState(DeletingValue); - /// Failed. - public static RecoveryServicesPrivateEndpointConnectionProvisioningState Failed { get; } = new RecoveryServicesPrivateEndpointConnectionProvisioningState(FailedValue); - /// Pending. - public static RecoveryServicesPrivateEndpointConnectionProvisioningState Pending { get; } = new RecoveryServicesPrivateEndpointConnectionProvisioningState(PendingValue); - /// Determines if two values are the same. - public static bool operator ==(RecoveryServicesPrivateEndpointConnectionProvisioningState left, RecoveryServicesPrivateEndpointConnectionProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RecoveryServicesPrivateEndpointConnectionProvisioningState left, RecoveryServicesPrivateEndpointConnectionProvisioningState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RecoveryServicesPrivateEndpointConnectionProvisioningState(string value) => new RecoveryServicesPrivateEndpointConnectionProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RecoveryServicesPrivateEndpointConnectionProvisioningState other && Equals(other); - /// - public bool Equals(RecoveryServicesPrivateEndpointConnectionProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -}