Skip to content

Commit

Permalink
Update AutoRest C# version to 3.0.0-beta.20230917.2 (#38778)
Browse files Browse the repository at this point in the history
  • Loading branch information
azure-sdk authored Sep 18, 2023
1 parent 031a2f8 commit a35f47a
Show file tree
Hide file tree
Showing 20 changed files with 45 additions and 28 deletions.
2 changes: 1 addition & 1 deletion eng/Packages.Data.props
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
All should have PrivateAssets="All" set so they don't become package dependencies
-->
<ItemGroup>
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20230915.2" PrivateAssets="All" />
<PackageReference Update="Microsoft.Azure.AutoRest.CSharp" Version="3.0.0-beta.20230917.2" PrivateAssets="All" />
<PackageReference Update="Azure.ClientSdk.Analyzers" Version="0.1.1-dev.20230822.1" PrivateAssets="All" />
<PackageReference Update="coverlet.collector" Version="3.2.0" PrivateAssets="All" />
<PackageReference Update="Microsoft.CodeAnalysis.NetAnalyzers" Version="7.0.1" PrivateAssets="All" />
Expand Down
2 changes: 1 addition & 1 deletion eng/emitter-package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"main": "dist/src/index.js",
"dependencies": {
"@azure-tools/typespec-csharp": "0.2.0-beta.20230915.2"
"@azure-tools/typespec-csharp": "0.2.0-beta.20230917.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ rename-mapping:
Step: HciUpdateStep
OfferCollection: HciOfferCollection
OfferData: HciOfferData

ClusterPatch.identity.type: ManagedServiceIdentityType

directive:
- from: swagger-document
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down Expand Up @@ -92,7 +95,7 @@ prepend-rp-prefix:
- AccountProperties
- AccountSku
- AccountSkuListResult
- IPRule
- IpRule
- NetworkRuleAction
- NetworkRuleSet
- SkuCapability
Expand Down
1 change: 1 addition & 0 deletions sdk/compute/Azure.ResourceManager.Compute/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down Expand Up @@ -212,6 +215,7 @@ rename-mapping:
RegistryListResult: ContainerRegistryListResult
RegistryUsageListResult: ContainerRegistryUsageListResult
StepType: ContainerRegistryTaskStepType
TaskStepProperties.type: ContainerRegistryTaskStepType
ImageUpdateTrigger.id: -|uuid
SourceTriggerDescriptor.id: -|uuid
EventContent.id: -|uuid
Expand Down
3 changes: 1 addition & 2 deletions sdk/cosmosdb/Azure.ResourceManager.CosmosDB/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ rename-mapping:
CheckNameAvailabilityResponse: CheckCosmosDBNameAvailabilityResponse
CheckNameAvailabilityReason: CosmosDBNameUnavailableReason
NodeGroupProperties.diskSizeGB: DiskSizeInGB

IpAddressOrRange: CosmosDBIPAddressOrRange

prepend-rp-prefix:
- UniqueKey
Expand All @@ -320,7 +320,6 @@ prepend-rp-prefix:
- MetricAvailability
- LocationProperties
- LocationListResult
- IPAddressOrRange
- DataType
- IndexingPolicy
- ExcludedPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ rename-mapping:
GlobalParameterListResponse: DataFactoryGlobalParameterListResult
GlobalParameterResource: DataFactoryGlobalParameter
GlobalParameterSpecification: DataFactoryGlobalParameterProperties
GlobalParameterSpecification.type: GlobalParameterType
HDInsightActivityDebugInfoOption: HDInsightActivityDebugInfoOptionSetting
HDInsightOnDemandLinkedService.typeProperties.timeToLive: TimeToLiveExpression
HttpSource: DataFactoryHttpFileSource
Expand Down Expand Up @@ -209,6 +210,7 @@ rename-mapping:
QueryDataFlowDebugSessionsResponse: DataFlowDebugSessionInfoListResult
ScriptActivityParameterType.Timespan: TimeSpan
ScriptActivityTypePropertiesLogSettings: ScriptActivityTypeLogSettings
ScriptActivityScriptBlock.type: ScriptType
SecretBase: DataFactorySecret
SecureInputOutputPolicy.secureInput: IsSecureInputEnabled
SecureInputOutputPolicy.secureOutput: IsSecureOutputEnabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ prepend-rp-prefix:
- StorageAccountInformation
- StorageAccountInformationListResult
- FirewallState
- FirewallAllowAzureIPsState
- FirewallAllowAzureIpsState
- CapabilityInformation
- HiveMetastore
- SasTokenInformation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ prepend-rp-prefix:
- VirtualNetworkRuleListResult
- CapabilityInformation
- FirewallState
- FirewallAllowAzureIPsState
- FirewallAllowAzureIpsState
- EncryptionProvisioningState
- EncryptionState
- FirewallRuleListResult
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ prepend-rp-prefix:
- AppTemplate
- AppTemplatesResult
- NetworkAction
- NetworkRuleSetIPRule
- NetworkRuleSetIpRule
- NetworkRuleSets
- ProvisioningState
- PublicNetworkAccess
Expand Down
6 changes: 3 additions & 3 deletions sdk/iothub/Azure.ResourceManager.IotHub/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ prepend-rp-prefix:
- PublicNetworkAccess
- UserSubscriptionQuota
- UserSubscriptionQuotaListResult
- IPFilterRule
- IPFilterActionType
- IpFilterRule
- IpFilterActionType
- RoutingSource
- JobStatus
- JobType
Expand All @@ -100,7 +100,7 @@ prepend-rp-prefix:
- RegistryStatistics
- MatchedRoute
- NetworkRuleSetProperties
- NetworkRuleSetIPRule
- NetworkRuleSetIpRule
- NetworkRuleIPAction
- RoutingProperties
- StorageEndpointProperties
Expand Down
2 changes: 1 addition & 1 deletion sdk/monitor/Azure.ResourceManager.Monitor/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ prepend-rp-prefix:
- Action
- Recurrence
- Response
- OdataType
- Odatatype
- Metric
- Incident
- Enabled
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ prepend-rp-prefix:
- L3Network
- NetworkInterface
- Nic
- OSDisk
- OsDisk
- Rack
- RackDefinition
- RackSku
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ prepend-rp-prefix:
- MetricsContent
- MetricsStatusContent
- MetricsStatusResult
- MonitoredResourceListResult
- MonitoringStatus
- OrganizationInfo
- OrgCreationSource
Expand All @@ -62,9 +61,9 @@ prepend-rp-prefix:
- TagRule
- UsageType
- UserInfo
- VmExtensionPayload
- VmHostsListResponse
- VmInfo
- VMExtensionPayload
- VMHostsListResponse
- VMInfo

acronym-mapping:
CPU: Cpu
Expand Down Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ rename-mapping:
ResourceTypeRegistrationProperties.enableAsyncOperation: IsAsyncOperationEnabled
ResourceTypeRegistrationProperties.enableThirdPartyS2S: IsThirdPartyS2SEnabled
TemplateDeploymentOptions.preflightSupported: IsPreflightSupported
SkuLocationInfo.type: ExtendedLocationType

prepend-rp-prefix:
- ExtendedLocationOptions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ rename-mapping:
MonitoringSettings: VaultMonitoringSettings
MonitoringSummary: VaultMonitoringSummary
NameInfo: VaultUsageNameInfo
ProvisioningState: PrivateEndpointConnectionProvisioningState
ProvisioningState: RecoveryServicesPrivateEndpointConnectionProvisioningState
PublicNetworkAccess: VaultPublicNetworkAccess
ReplicationUsageList: ReplicationUsageListResult
TriggerType: VaultUpgradeTriggerType
Expand Down
13 changes: 9 additions & 4 deletions sdk/synapse/Azure.ResourceManager.Synapse/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -203,7 +208,7 @@ prepend-rp-prefix:
- ExtendedSqlPoolBlobAuditingPolicyListResult
- GeoBackupPolicy
- GeoBackupPolicyListResult
- IPFirewallRuleInfo
- IpFirewallRuleInfo
- Key
- KustoPool
- MaintenanceWindows
Expand Down Expand Up @@ -289,7 +294,7 @@ prepend-rp-prefix:
- IntegrationRuntimeEntityReferenceType
- IntegrationRuntimeInternalChannelEncryptionMode
- IntegrationRuntimeLicenseType
- IntegrationRuntimeNodeIPAddress
- IntegrationRuntimeNodeIpAddress
- IntegrationRuntimeOutboundNetworkDependenciesCategoryEndpoint
- IntegrationRuntimeOutboundNetworkDependenciesEndpoint
- IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails
Expand All @@ -302,8 +307,8 @@ prepend-rp-prefix:
- IntegrationRuntimeUpdateResult
- IotHubDataConnection
- IotHubDataFormat
- IPFirewallRuleInfoListResult
- IPFirewallRuleProperties
- IpFirewallRuleInfoListResult
- IpFirewallRuleProperties
- LanguageExtension
- LanguageExtensionName
- LanguageExtensionsList
Expand Down
7 changes: 3 additions & 4 deletions sdk/websites/Azure.ResourceManager.AppService/src/autorest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -598,10 +598,9 @@ prepend-rp-prefix:
- UsageState
- CorsSettings
- SourceControl
- WorkerPool
- ForwardProxy
- IPSecurityRestriction
- IPFilterTag
- IpSecurityRestriction
- IpFilterTag
- VirtualNetworkProfile

models-to-treat-empty-string-as-null:
Expand Down

0 comments on commit a35f47a

Please sign in to comment.