diff --git a/sdk/sql/arm-sql/CHANGELOG.md b/sdk/sql/arm-sql/CHANGELOG.md index 5fcef5b4cd22..08d9885e5adb 100644 --- a/sdk/sql/arm-sql/CHANGELOG.md +++ b/sdk/sql/arm-sql/CHANGELOG.md @@ -1,16 +1,6 @@ # Release History - -## 10.1.0-beta.4 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 10.1.0-beta.3 (2023-12-18) + +## 10.1.0-beta.4 (2024-01-09) **Features** @@ -45,7 +35,6 @@ - Added Type Alias JobPrivateEndpointsListByAgentResponse - Added Type Alias LongTermRetentionBackupsChangeAccessTierByResourceGroupResponse - Added Type Alias LongTermRetentionBackupsChangeAccessTierResponse - - Added Type Alias MinimalTlsVersion - Interface Database has a new optional parameter encryptionProtectorAutoRotation - Interface Database has a new optional parameter freeLimitExhaustionBehavior - Interface Database has a new optional parameter useFreeLimit @@ -70,8 +59,6 @@ - Interface InstancePoolUpdate has a new optional parameter vCores - Interface LongTermRetentionBackup has a new optional parameter backupStorageAccessTier - Interface LongTermRetentionBackup has a new optional parameter isBackupImmutable - - Interface LongTermRetentionPolicy has a new optional parameter backupStorageAccessTier - - Interface LongTermRetentionPolicy has a new optional parameter makeBackupsImmutable - Interface ManagedDatabase has a new optional parameter isLedgerOn - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn - Interface PrivateEndpointConnection has a new optional parameter groupIds @@ -80,65 +67,8 @@ - Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime - Added Enum KnownBackupStorageAccessTier - Added Enum KnownFreeLimitExhaustionBehavior - - Added Enum KnownMinimalTlsVersion - - Type of parameter minimalTlsVersion of interface Server is changed from string to MinimalTlsVersion - - Type of parameter minimalTlsVersion of interface ServerUpdate is changed from string to MinimalTlsVersion -## 10.1.0-beta.2 (2023-09-20) - -**Features** - - - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover - - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait - - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders - - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams - - Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse - - Added Type Alias FreeLimitExhaustionBehavior - - Interface Database has a new optional parameter encryptionProtectorAutoRotation - - Interface Database has a new optional parameter freeLimitExhaustionBehavior - - Interface Database has a new optional parameter useFreeLimit - - Interface DatabaseUpdate has a new optional parameter encryptionProtectorAutoRotation - - Interface DatabaseUpdate has a new optional parameter freeLimitExhaustionBehavior - - Interface DatabaseUpdate has a new optional parameter useFreeLimit - - Interface ElasticPool has a new optional parameter availabilityZone - - Interface ElasticPool has a new optional parameter minCapacity - - Interface ElasticPool has a new optional parameter preferredEnclaveType - - Interface ElasticPoolUpdate has a new optional parameter availabilityZone - - Interface ElasticPoolUpdate has a new optional parameter minCapacity - - Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType - - Interface FailoverGroupReadOnlyEndpoint has a new optional parameter targetServer - - Interface FailoverGroupUpdate has a new optional parameter partnerServers - - Interface ManagedDatabase has a new optional parameter isLedgerOn - - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn - - Interface PrivateEndpointConnection has a new optional parameter groupIds - - Interface Server has a new optional parameter isIPv6Enabled - - Interface ServerUpdate has a new optional parameter isIPv6Enabled - - Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime - - Added Enum KnownFreeLimitExhaustionBehavior - - -## 10.1.0-beta.1 (2023-07-28) - -**Features** - - - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailover - - Added operation FailoverGroups.beginTryPlannedBeforeForcedFailoverAndWait - - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverHeaders - - Added Interface FailoverGroupsTryPlannedBeforeForcedFailoverOptionalParams - - Added Type Alias FailoverGroupsTryPlannedBeforeForcedFailoverResponse - - Interface ElasticPool has a new optional parameter availabilityZone - - Interface ElasticPool has a new optional parameter minCapacity - - Interface ElasticPool has a new optional parameter preferredEnclaveType - - Interface ElasticPoolUpdate has a new optional parameter availabilityZone - - Interface ElasticPoolUpdate has a new optional parameter minCapacity - - Interface ElasticPoolUpdate has a new optional parameter preferredEnclaveType - - Interface ManagedDatabase has a new optional parameter isLedgerOn - - Interface ManagedDatabaseUpdate has a new optional parameter isLedgerOn - - Interface PrivateEndpointConnection has a new optional parameter groupIds - - Interface SqlVulnerabilityAssessmentScanRecord has a new optional parameter lastScanTime - - ## 10.0.0 (2023-03-22) **Features** @@ -861,4 +791,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka. To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide). -To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ). +To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart). diff --git a/sdk/sql/arm-sql/LICENSE b/sdk/sql/arm-sql/LICENSE index 3a1d9b6f24f7..7d5934740965 100644 --- a/sdk/sql/arm-sql/LICENSE +++ b/sdk/sql/arm-sql/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2023 Microsoft +Copyright (c) 2024 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/sql/arm-sql/_meta.json b/sdk/sql/arm-sql/_meta.json index b1797b6f8587..f254fc44d93e 100644 --- a/sdk/sql/arm-sql/_meta.json +++ b/sdk/sql/arm-sql/_meta.json @@ -1,8 +1,8 @@ { - "commit": "d9ae3ec3f64a2a91134515f222ef152c1df7129c", + "commit": "89230a9063c81d13fdc00619dc20b4ebcdfcae82", "readme": "specification/sql/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\sql\\resource-manager\\readme.md --use=@autorest/typescript@6.0.13 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/sql/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.13" + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/sql/arm-sql/package.json b/sdk/sql/arm-sql/package.json index 1eb9fbc3f1d4..940bc4072195 100644 --- a/sdk/sql/arm-sql/package.json +++ b/sdk/sql/arm-sql/package.json @@ -107,13 +107,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-sql?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql" +} \ No newline at end of file diff --git a/sdk/sql/arm-sql/review/arm-sql.api.md b/sdk/sql/arm-sql/review/arm-sql.api.md index 9c50145d8c4e..3f5011d89cbc 100644 --- a/sdk/sql/arm-sql/review/arm-sql.api.md +++ b/sdk/sql/arm-sql/review/arm-sql.api.md @@ -4127,15 +4127,6 @@ export enum KnownMetricType { LogIo = "logIo" } -// @public -export enum KnownMinimalTlsVersion { - None = "None", - One0 = "1.0", - One1 = "1.1", - One2 = "1.2", - One3 = "1.3" -} - // @public export enum KnownMoveOperationMode { Copy = "Copy", @@ -5166,8 +5157,6 @@ export type LongTermRetentionPoliciesListByDatabaseResponse = LongTermRetentionP // @public export interface LongTermRetentionPolicy extends ProxyResource { - backupStorageAccessTier?: BackupStorageAccessTier; - makeBackupsImmutable?: boolean; monthlyRetention?: string; weeklyRetention?: string; weekOfYear?: number; @@ -7453,9 +7442,6 @@ export interface MinCapacityCapability { readonly value?: number; } -// @public -export type MinimalTlsVersion = string; - // @public export type MoveOperationMode = string; @@ -8554,7 +8540,7 @@ export interface Server extends TrackedResource { isIPv6Enabled?: ServerNetworkAccessFlag; keyId?: string; readonly kind?: string; - minimalTlsVersion?: MinimalTlsVersion; + minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; publicNetworkAccess?: ServerPublicNetworkAccessFlag; @@ -9560,7 +9546,7 @@ export interface ServerUpdate { identity?: ResourceIdentity; isIPv6Enabled?: ServerNetworkAccessFlag; keyId?: string; - minimalTlsVersion?: MinimalTlsVersion; + minimalTlsVersion?: string; primaryUserAssignedIdentityId?: string; readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; publicNetworkAccess?: ServerPublicNetworkAccessFlag; diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index 67eb74d60afa..cecbb86253f2 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -4331,6 +4331,161 @@ export interface SqlVulnerabilityAssessmentListResult { readonly nextLink?: string; } +/** A request to check whether the specified name for a resource is available. */ +export interface CheckNameAvailabilityRequest { + name: string; + type: "Microsoft.Sql/servers"; +} + +/** The result of a name availability check. */ +export interface CheckNameAvailabilityResponse { + /** + * The name whose availability was checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * True if the name is available, otherwise false. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly available?: boolean; + /** + * The reason code explaining why the name is unavailable. Will be undefined if the name is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reason?: CheckNameAvailabilityReason; + /** + * A message explaining why the name is unavailable. Will be undefined if the name is available. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; +} + +/** A list of servers. */ +export interface ServerListResult { + /** + * Array of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Server[]; + /** + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A private endpoint connection under a server */ +export interface ServerPrivateEndpointConnection { + /** + * Resource ID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * Private endpoint connection properties + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly properties?: PrivateEndpointConnectionProperties; +} + +/** Properties of a active directory administrator. */ +export interface ServerExternalAdministrator { + /** Type of the sever administrator. */ + administratorType?: AdministratorType; + /** Principal Type of the sever administrator. */ + principalType?: PrincipalType; + /** Login name of the server administrator. */ + login?: string; + /** SID (object ID) of the server administrator. */ + sid?: string; + /** Tenant ID of the administrator. */ + tenantId?: string; + /** Azure Active Directory only Authentication enabled. */ + azureADOnlyAuthentication?: boolean; +} + +/** An update request for an Azure SQL Database server. */ +export interface ServerUpdate { + /** Server identity */ + identity?: ResourceIdentity; + /** Resource tags. */ + tags?: { [propertyName: string]: string }; + /** Administrator username for the server. Once created it cannot be changed. */ + administratorLogin?: string; + /** The administrator login password (required for server creation). */ + administratorLoginPassword?: string; + /** The version of the server. */ + version?: string; + /** + * The state of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly state?: string; + /** + * The fully qualified domain name of the server. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly fullyQualifiedDomainName?: string; + /** + * List of private endpoint connections on a server + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; + /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ + publicNetworkAccess?: ServerPublicNetworkAccessFlag; + /** + * Whether or not existing server has a workspace created and if it allows connection from workspace + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceFeature?: ServerWorkspaceFeature; + /** The resource id of a user assigned identity to be used by default. */ + primaryUserAssignedIdentityId?: string; + /** The Client id used for cross tenant CMK scenario */ + federatedClientId?: string; + /** A CMK URI of the key to use for encryption. */ + keyId?: string; + /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ + administrators?: ServerExternalAdministrator; + /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; + /** Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ + isIPv6Enabled?: ServerNetworkAccessFlag; + /** + * Status of external governance. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly externalGovernanceStatus?: ExternalGovernanceStatus; +} + +/** Contains the information necessary to perform import operation for new database. */ +export interface ImportNewDatabaseDefinition { + /** Name of the import database. */ + databaseName?: string; + /** Edition of the import database. */ + edition?: string; + /** Service level objective name of the import database. */ + serviceObjectiveName?: string; + /** Max size in bytes for the import database. */ + maxSizeBytes?: string; + /** Storage key type. */ + storageKeyType: StorageKeyType; + /** Storage key. */ + storageKey: string; + /** Storage Uri. */ + storageUri: string; + /** Administrator login name. */ + administratorLogin: string; + /** Administrator login password. */ + administratorLoginPassword: string; + /** Authentication type. */ + authenticationType?: string; + /** Optional resource information to enable network isolation for request. */ + networkIsolation?: NetworkIsolationSettings; +} + /** A list of failover groups. */ export interface FailoverGroupListResult { /** @@ -4440,6 +4595,14 @@ export interface LongTermRetentionBackupListResult { readonly nextLink?: string; } +/** Contains the information necessary to change long term retention backup access tier and related operation mode. */ +export interface ChangeLongTermRetentionBackupAccessTierParameters { + /** The long term retention backup storage access tier */ + backupStorageAccessTier: string; + /** The operation mode when updating ltr backup storage access tier */ + operationMode: string; +} + /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ export interface ErrorResponse { /** The error object. */ @@ -4489,14 +4652,6 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** Contains the information necessary to change long term retention backup access tier and related operation mode. */ -export interface ChangeLongTermRetentionBackupAccessTierParameters { - /** The long term retention backup storage access tier */ - backupStorageAccessTier: string; - /** The operation mode when updating ltr backup storage access tier */ - operationMode: string; -} - /** Contains the information necessary to perform long term retention backup copy operation. */ export interface CopyLongTermRetentionBackupParameters { /** The subscription that owns the target server */ @@ -4527,165 +4682,10 @@ export interface LongTermRetentionPolicyListResult { */ readonly value?: LongTermRetentionPolicy[]; /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A request to check whether the specified name for a resource is available. */ -export interface CheckNameAvailabilityRequest { - name: string; - type: "Microsoft.Sql/servers"; -} - -/** The result of a name availability check. */ -export interface CheckNameAvailabilityResponse { - /** - * The name whose availability was checked. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * True if the name is available, otherwise false. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly available?: boolean; - /** - * The reason code explaining why the name is unavailable. Will be undefined if the name is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reason?: CheckNameAvailabilityReason; - /** - * A message explaining why the name is unavailable. Will be undefined if the name is available. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly message?: string; -} - -/** A list of servers. */ -export interface ServerListResult { - /** - * Array of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: Server[]; - /** - * Link to retrieve next page of results. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A private endpoint connection under a server */ -export interface ServerPrivateEndpointConnection { - /** - * Resource ID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * Private endpoint connection properties - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly properties?: PrivateEndpointConnectionProperties; -} - -/** Properties of a active directory administrator. */ -export interface ServerExternalAdministrator { - /** Type of the sever administrator. */ - administratorType?: AdministratorType; - /** Principal Type of the sever administrator. */ - principalType?: PrincipalType; - /** Login name of the server administrator. */ - login?: string; - /** SID (object ID) of the server administrator. */ - sid?: string; - /** Tenant ID of the administrator. */ - tenantId?: string; - /** Azure Active Directory only Authentication enabled. */ - azureADOnlyAuthentication?: boolean; -} - -/** An update request for an Azure SQL Database server. */ -export interface ServerUpdate { - /** Server identity */ - identity?: ResourceIdentity; - /** Resource tags. */ - tags?: { [propertyName: string]: string }; - /** Administrator username for the server. Once created it cannot be changed. */ - administratorLogin?: string; - /** The administrator login password (required for server creation). */ - administratorLoginPassword?: string; - /** The version of the server. */ - version?: string; - /** - * The state of the server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly state?: string; - /** - * The fully qualified domain name of the server. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fullyQualifiedDomainName?: string; - /** - * List of private endpoint connections on a server - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; - /** Minimal TLS version. Allowed values: 'None', 1.0', '1.1', '1.2', '1.3' */ - minimalTlsVersion?: MinimalTlsVersion; - /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ - publicNetworkAccess?: ServerPublicNetworkAccessFlag; - /** - * Whether or not existing server has a workspace created and if it allows connection from workspace - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly workspaceFeature?: ServerWorkspaceFeature; - /** The resource id of a user assigned identity to be used by default. */ - primaryUserAssignedIdentityId?: string; - /** The Client id used for cross tenant CMK scenario */ - federatedClientId?: string; - /** A CMK URI of the key to use for encryption. */ - keyId?: string; - /** The Azure Active Directory administrator of the server. This can only be used at server create time. If used for server update, it will be ignored or it will result in an error. For updates individual APIs will need to be used. */ - administrators?: ServerExternalAdministrator; - /** Whether or not to restrict outbound network access for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - restrictOutboundNetworkAccess?: ServerNetworkAccessFlag; - /** Whether or not to enable IPv6 support for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' */ - isIPv6Enabled?: ServerNetworkAccessFlag; - /** - * Status of external governance. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly externalGovernanceStatus?: ExternalGovernanceStatus; -} - -/** Contains the information necessary to perform import operation for new database. */ -export interface ImportNewDatabaseDefinition { - /** Name of the import database. */ - databaseName?: string; - /** Edition of the import database. */ - edition?: string; - /** Service level objective name of the import database. */ - serviceObjectiveName?: string; - /** Max size in bytes for the import database. */ - maxSizeBytes?: string; - /** Storage key type. */ - storageKeyType: StorageKeyType; - /** Storage key. */ - storageKey: string; - /** Storage Uri. */ - storageUri: string; - /** Administrator login name. */ - administratorLogin: string; - /** Administrator login password. */ - administratorLoginPassword: string; - /** Authentication type. */ - authenticationType?: string; - /** Optional resource information to enable network isolation for request. */ - networkIsolation?: NetworkIsolationSettings; + * Link to retrieve next page of results. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } /** A Slo Usage Metric. */ @@ -8162,6 +8162,41 @@ export interface SqlVulnerabilityAssessment extends ProxyResource { state?: SqlVulnerabilityAssessmentState; } +/** An RefreshExternalGovernanceStatus operation result resource. */ +export interface RefreshExternalGovernanceStatusOperationResult + extends ProxyResource { + /** + * Request Id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requestId?: string; + /** + * Request type. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly requestType?: string; + /** + * Queued time. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly queuedTime?: string; + /** + * Server name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly serverName?: string; + /** + * Operation status. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly status?: string; + /** + * Error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly errorMessage?: string; +} + /** A failover group. */ export interface FailoverGroup extends ProxyResource { /** @@ -8280,10 +8315,6 @@ export interface LongTermRetentionBackupOperationResult extends ProxyResource { /** A long term retention policy. */ export interface LongTermRetentionPolicy extends ProxyResource { - /** The setting whether to make LTR backups immutable */ - makeBackupsImmutable?: boolean; - /** The BackupStorageAccessTier for the LTR backups */ - backupStorageAccessTier?: BackupStorageAccessTier; /** The weekly retention policy for an LTR backup in an ISO 8601 format. */ weeklyRetention?: string; /** The monthly retention policy for an LTR backup in an ISO 8601 format. */ @@ -8294,41 +8325,6 @@ export interface LongTermRetentionPolicy extends ProxyResource { weekOfYear?: number; } -/** An RefreshExternalGovernanceStatus operation result resource. */ -export interface RefreshExternalGovernanceStatusOperationResult - extends ProxyResource { - /** - * Request Id. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestId?: string; - /** - * Request type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly requestType?: string; - /** - * Queued time. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly queuedTime?: string; - /** - * Server name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly serverName?: string; - /** - * Operation status. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly status?: string; - /** - * Error message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly errorMessage?: string; -} - /** An Azure SQL job agent. */ export interface JobAgent extends TrackedResource { /** The name and tier of the SKU. */ @@ -8810,25 +8806,6 @@ export interface ManagedInstance extends TrackedResource { servicePrincipal?: ServicePrincipal; } -/** An Azure SQL instance pool. */ -export interface InstancePool extends TrackedResource { - /** The name and tier of the SKU. */ - sku?: Sku; - /** Resource ID of the subnet to place this instance pool in. */ - subnetId?: string; - /** Count of vCores belonging to this instance pool. */ - vCores?: number; - /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ - licenseType?: InstancePoolLicenseType; - /** - * The Dns Zone that the managed instance pool is in. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly dnsZone?: string; - /** Specifies maintenance configuration id to apply to this managed instance. */ - maintenanceConfigurationId?: string; -} - /** An Azure SQL Database server. */ export interface Server extends TrackedResource { /** The Azure Active Directory identity of the server. */ @@ -8859,8 +8836,8 @@ export interface Server extends TrackedResource { * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly privateEndpointConnections?: ServerPrivateEndpointConnection[]; - /** Minimal TLS version. Allowed values: 'None', 1.0', '1.1', '1.2', '1.3' */ - minimalTlsVersion?: MinimalTlsVersion; + /** Minimal TLS version. Allowed values: 'None', '1.0', '1.1', '1.2' */ + minimalTlsVersion?: string; /** Whether or not public endpoint access is allowed for this server. Value is optional but if passed in, must be 'Enabled' or 'Disabled' or 'SecuredByPerimeter' */ publicNetworkAccess?: ServerPublicNetworkAccessFlag; /** @@ -8887,6 +8864,25 @@ export interface Server extends TrackedResource { readonly externalGovernanceStatus?: ExternalGovernanceStatus; } +/** An Azure SQL instance pool. */ +export interface InstancePool extends TrackedResource { + /** The name and tier of the SKU. */ + sku?: Sku; + /** Resource ID of the subnet to place this instance pool in. */ + subnetId?: string; + /** Count of vCores belonging to this instance pool. */ + vCores?: number; + /** The license type. Possible values are 'LicenseIncluded' (price for SQL license is included) and 'BasePrice' (without SQL license price). */ + licenseType?: InstancePoolLicenseType; + /** + * The Dns Zone that the managed instance pool is in. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly dnsZone?: string; + /** Specifies maintenance configuration id to apply to this managed instance. */ + maintenanceConfigurationId?: string; +} + /** A server firewall rule. */ export interface FirewallRule extends ProxyResourceWithWritableName { /** The start IP address of the firewall rule. Must be IPv4 format. Use value '0.0.0.0' for all Azure-internal IP addresses. */ @@ -11509,176 +11505,149 @@ export enum KnownSqlVulnerabilityAssessmentName { */ export type SqlVulnerabilityAssessmentName = string; -/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ -export enum KnownFailoverGroupReplicationRole { - /** Primary */ - Primary = "Primary", - /** Secondary */ - Secondary = "Secondary" -} - -/** - * Defines values for FailoverGroupReplicationRole. \ - * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Primary** \ - * **Secondary** - */ -export type FailoverGroupReplicationRole = string; - -/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ -export enum KnownInstancePoolLicenseType { - /** LicenseIncluded */ - LicenseIncluded = "LicenseIncluded", - /** BasePrice */ - BasePrice = "BasePrice" +/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ +export enum KnownServerPublicNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", + /** SecuredByPerimeter */ + SecuredByPerimeter = "SecuredByPerimeter" } /** - * Defines values for InstancePoolLicenseType. \ - * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, + * Defines values for ServerPublicNetworkAccessFlag. \ + * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LicenseIncluded** \ - * **BasePrice** + * **Enabled** \ + * **Disabled** \ + * **SecuredByPerimeter** */ -export type InstancePoolLicenseType = string; +export type ServerPublicNetworkAccessFlag = string; -/** Known values of {@link BackupStorageAccessTier} that the service accepts. */ -export enum KnownBackupStorageAccessTier { - /** Hot */ - Hot = "Hot", - /** Archive */ - Archive = "Archive" +/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ +export enum KnownServerWorkspaceFeature { + /** Connected */ + Connected = "Connected", + /** Disconnected */ + Disconnected = "Disconnected" } /** - * Defines values for BackupStorageAccessTier. \ - * {@link KnownBackupStorageAccessTier} can be used interchangeably with BackupStorageAccessTier, + * Defines values for ServerWorkspaceFeature. \ + * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Hot** \ - * **Archive** + * **Connected** \ + * **Disconnected** */ -export type BackupStorageAccessTier = string; +export type ServerWorkspaceFeature = string; -/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ -export enum KnownLongTermRetentionPolicyName { - /** Default */ - Default = "default" +/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ +export enum KnownServerNetworkAccessFlag { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for LongTermRetentionPolicyName. \ - * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, + * Defines values for ServerNetworkAccessFlag. \ + * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **default** + * **Enabled** \ + * **Disabled** */ -export type LongTermRetentionPolicyName = string; +export type ServerNetworkAccessFlag = string; -/** Known values of {@link MinimalTlsVersion} that the service accepts. */ -export enum KnownMinimalTlsVersion { - /** None */ - None = "None", - /** One0 */ - One0 = "1.0", - /** One1 */ - One1 = "1.1", - /** One2 */ - One2 = "1.2", - /** One3 */ - One3 = "1.3" +/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ +export enum KnownExternalGovernanceStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled" } /** - * Defines values for MinimalTlsVersion. \ - * {@link KnownMinimalTlsVersion} can be used interchangeably with MinimalTlsVersion, + * Defines values for ExternalGovernanceStatus. \ + * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **1.0** \ - * **1.1** \ - * **1.2** \ - * **1.3** + * **Enabled** \ + * **Disabled** */ -export type MinimalTlsVersion = string; +export type ExternalGovernanceStatus = string; -/** Known values of {@link ServerPublicNetworkAccessFlag} that the service accepts. */ -export enum KnownServerPublicNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", - /** SecuredByPerimeter */ - SecuredByPerimeter = "SecuredByPerimeter" +/** Known values of {@link FailoverGroupReplicationRole} that the service accepts. */ +export enum KnownFailoverGroupReplicationRole { + /** Primary */ + Primary = "Primary", + /** Secondary */ + Secondary = "Secondary" } /** - * Defines values for ServerPublicNetworkAccessFlag. \ - * {@link KnownServerPublicNetworkAccessFlag} can be used interchangeably with ServerPublicNetworkAccessFlag, + * Defines values for FailoverGroupReplicationRole. \ + * {@link KnownFailoverGroupReplicationRole} can be used interchangeably with FailoverGroupReplicationRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** \ - * **SecuredByPerimeter** + * **Primary** \ + * **Secondary** */ -export type ServerPublicNetworkAccessFlag = string; +export type FailoverGroupReplicationRole = string; -/** Known values of {@link ServerWorkspaceFeature} that the service accepts. */ -export enum KnownServerWorkspaceFeature { - /** Connected */ - Connected = "Connected", - /** Disconnected */ - Disconnected = "Disconnected" +/** Known values of {@link InstancePoolLicenseType} that the service accepts. */ +export enum KnownInstancePoolLicenseType { + /** LicenseIncluded */ + LicenseIncluded = "LicenseIncluded", + /** BasePrice */ + BasePrice = "BasePrice" } /** - * Defines values for ServerWorkspaceFeature. \ - * {@link KnownServerWorkspaceFeature} can be used interchangeably with ServerWorkspaceFeature, + * Defines values for InstancePoolLicenseType. \ + * {@link KnownInstancePoolLicenseType} can be used interchangeably with InstancePoolLicenseType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Connected** \ - * **Disconnected** + * **LicenseIncluded** \ + * **BasePrice** */ -export type ServerWorkspaceFeature = string; +export type InstancePoolLicenseType = string; -/** Known values of {@link ServerNetworkAccessFlag} that the service accepts. */ -export enum KnownServerNetworkAccessFlag { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link BackupStorageAccessTier} that the service accepts. */ +export enum KnownBackupStorageAccessTier { + /** Hot */ + Hot = "Hot", + /** Archive */ + Archive = "Archive" } /** - * Defines values for ServerNetworkAccessFlag. \ - * {@link KnownServerNetworkAccessFlag} can be used interchangeably with ServerNetworkAccessFlag, + * Defines values for BackupStorageAccessTier. \ + * {@link KnownBackupStorageAccessTier} can be used interchangeably with BackupStorageAccessTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **Hot** \ + * **Archive** */ -export type ServerNetworkAccessFlag = string; +export type BackupStorageAccessTier = string; -/** Known values of {@link ExternalGovernanceStatus} that the service accepts. */ -export enum KnownExternalGovernanceStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled" +/** Known values of {@link LongTermRetentionPolicyName} that the service accepts. */ +export enum KnownLongTermRetentionPolicyName { + /** Default */ + Default = "default" } /** - * Defines values for ExternalGovernanceStatus. \ - * {@link KnownExternalGovernanceStatus} can be used interchangeably with ExternalGovernanceStatus, + * Defines values for LongTermRetentionPolicyName. \ + * {@link KnownLongTermRetentionPolicyName} can be used interchangeably with LongTermRetentionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **default** */ -export type ExternalGovernanceStatus = string; +export type LongTermRetentionPolicyName = string; /** Known values of {@link ServiceObjectiveName} that the service accepts. */ export enum KnownServiceObjectiveName { @@ -17047,6 +17016,112 @@ export interface DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextOp /** Contains response data for the listByDatabaseNext operation. */ export type DatabaseSqlVulnerabilityAssessmentsSettingsListByDatabaseNextResponse = SqlVulnerabilityAssessmentListResult; +/** Optional parameters. */ +export interface ServersCheckNameAvailabilityOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the checkNameAvailability operation. */ +export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; + +/** Optional parameters. */ +export interface ServersListOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the list operation. */ +export type ServersListResponse = ServerListResult; + +/** Optional parameters. */ +export interface ServersListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type ServersListByResourceGroupResponse = ServerListResult; + +/** Optional parameters. */ +export interface ServersGetOptionalParams extends coreClient.OperationOptions { + /** The child resources to include in the response. */ + expand?: string; +} + +/** Contains response data for the get operation. */ +export type ServersGetResponse = Server; + +/** Optional parameters. */ +export interface ServersCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type ServersCreateOrUpdateResponse = Server; + +/** Optional parameters. */ +export interface ServersDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface ServersUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type ServersUpdateResponse = Server; + +/** Optional parameters. */ +export interface ServersImportDatabaseOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the importDatabase operation. */ +export type ServersImportDatabaseResponse = ImportExportOperationResult; + +/** Optional parameters. */ +export interface ServersRefreshStatusOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the refreshStatus operation. */ +export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; + +/** Optional parameters. */ +export interface ServersListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ServersListNextResponse = ServerListResult; + +/** Optional parameters. */ +export interface ServersListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type ServersListByResourceGroupNextResponse = ServerListResult; + /** Optional parameters. */ export interface FailoverGroupsListByServerOptionalParams extends coreClient.OperationOptions {} @@ -17456,112 +17531,6 @@ export interface LongTermRetentionPoliciesListByDatabaseNextOptionalParams /** Contains response data for the listByDatabaseNext operation. */ export type LongTermRetentionPoliciesListByDatabaseNextResponse = LongTermRetentionPolicyListResult; -/** Optional parameters. */ -export interface ServersCheckNameAvailabilityOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the checkNameAvailability operation. */ -export type ServersCheckNameAvailabilityResponse = CheckNameAvailabilityResponse; - -/** Optional parameters. */ -export interface ServersListOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the list operation. */ -export type ServersListResponse = ServerListResult; - -/** Optional parameters. */ -export interface ServersListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the listByResourceGroup operation. */ -export type ServersListByResourceGroupResponse = ServerListResult; - -/** Optional parameters. */ -export interface ServersGetOptionalParams extends coreClient.OperationOptions { - /** The child resources to include in the response. */ - expand?: string; -} - -/** Contains response data for the get operation. */ -export type ServersGetResponse = Server; - -/** Optional parameters. */ -export interface ServersCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the createOrUpdate operation. */ -export type ServersCreateOrUpdateResponse = Server; - -/** Optional parameters. */ -export interface ServersDeleteOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface ServersUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type ServersUpdateResponse = Server; - -/** Optional parameters. */ -export interface ServersImportDatabaseOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the importDatabase operation. */ -export type ServersImportDatabaseResponse = ImportExportOperationResult; - -/** Optional parameters. */ -export interface ServersRefreshStatusOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the refreshStatus operation. */ -export type ServersRefreshStatusResponse = RefreshExternalGovernanceStatusOperationResult; - -/** Optional parameters. */ -export interface ServersListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ServersListNextResponse = ServerListResult; - -/** Optional parameters. */ -export interface ServersListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type ServersListByResourceGroupNextResponse = ServerListResult; - /** Optional parameters. */ export interface SqlManagementClientOptionalParams extends coreClient.ServiceClientOptions { diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index f0ad89e0975b..2d28411d65c9 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -8891,27 +8891,22 @@ export const SqlVulnerabilityAssessmentListResult: coreClient.CompositeMapper = } }; -export const FailoverGroupListResult: coreClient.CompositeMapper = { +export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupListResult", + className: "CheckNameAvailabilityRequest", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "FailoverGroup" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + type: { + defaultValue: "Microsoft.Sql/servers", + isConstant: true, + serializedName: "type", type: { name: "String" } @@ -8920,41 +8915,65 @@ export const FailoverGroupListResult: coreClient.CompositeMapper = { } }; -export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { +export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadWriteEndpoint", + className: "CheckNameAvailabilityResponse", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", - required: true, + name: { + serializedName: "name", + readOnly: true, type: { name: "String" } }, - failoverWithDataLossGracePeriodMinutes: { - serializedName: "failoverWithDataLossGracePeriodMinutes", + available: { + serializedName: "available", + readOnly: true, type: { - name: "Number" + name: "Boolean" + } + }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "Enum", + allowedValues: ["Invalid", "AlreadyExists"] + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" } } } } }; -export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { +export const ServerListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupReadOnlyEndpoint", + className: "ServerListResult", modelProperties: { - failoverPolicy: { - serializedName: "failoverPolicy", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Server" + } + } } }, - targetServer: { - serializedName: "targetServer", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } @@ -8963,128 +8982,84 @@ export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { } }; -export const PartnerInfo: coreClient.CompositeMapper = { +export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PartnerInfo", + className: "ServerPrivateEndpointConnection", modelProperties: { id: { serializedName: "id", - required: true, - type: { - name: "String" - } - }, - location: { - serializedName: "location", readOnly: true, type: { name: "String" } }, - replicationRole: { - serializedName: "replicationRole", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "String" + name: "Composite", + className: "PrivateEndpointConnectionProperties" } } } } }; -export const FailoverGroupUpdate: coreClient.CompositeMapper = { +export const ServerExternalAdministrator: coreClient.CompositeMapper = { type: { name: "Composite", - className: "FailoverGroupUpdate", + className: "ServerExternalAdministrator", modelProperties: { - tags: { - serializedName: "tags", + administratorType: { + serializedName: "administratorType", type: { - name: "Dictionary", - value: { type: { name: "String" } } + name: "String" } }, - readWriteEndpoint: { - serializedName: "properties.readWriteEndpoint", + principalType: { + serializedName: "principalType", type: { - name: "Composite", - className: "FailoverGroupReadWriteEndpoint" + name: "String" } }, - readOnlyEndpoint: { - serializedName: "properties.readOnlyEndpoint", + login: { + serializedName: "login", type: { - name: "Composite", - className: "FailoverGroupReadOnlyEndpoint" + name: "String" } }, - databases: { - serializedName: "properties.databases", + sid: { + serializedName: "sid", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Uuid" } }, - partnerServers: { - serializedName: "properties.partnerServers", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PartnerInfo" - } - } - } - } - } - } -}; - -export const InstancePoolListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstancePoolListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + tenantId: { + serializedName: "tenantId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InstancePool" - } - } + name: "Uuid" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + azureADOnlyAuthentication: { + serializedName: "azureADOnlyAuthentication", type: { - name: "String" + name: "Boolean" } } } } }; -export const InstancePoolUpdate: coreClient.CompositeMapper = { +export const ServerUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InstancePoolUpdate", + className: "ServerUpdate", modelProperties: { - sku: { - serializedName: "sku", + identity: { + serializedName: "identity", type: { name: "Composite", - className: "Sku" + className: "ResourceIdentity" } }, tags: { @@ -9094,253 +9069,203 @@ export const InstancePoolUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - subnetId: { - serializedName: "properties.subnetId", + administratorLogin: { + serializedName: "properties.administratorLogin", type: { name: "String" } }, - vCores: { - serializedName: "properties.vCores", + administratorLoginPassword: { + serializedName: "properties.administratorLoginPassword", type: { - name: "Number" + name: "String" } }, - licenseType: { - serializedName: "properties.licenseType", + version: { + serializedName: "properties.version", type: { name: "String" } }, - dnsZone: { - serializedName: "properties.dnsZone", + state: { + serializedName: "properties.state", readOnly: true, type: { name: "String" } }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", + fullyQualifiedDomainName: { + serializedName: "properties.fullyQualifiedDomainName", + readOnly: true, type: { name: "String" } - } - } - } -}; - -export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "LongTermRetentionBackupListResult", - modelProperties: { - value: { - serializedName: "value", + }, + privateEndpointConnections: { + serializedName: "properties.privateEndpointConnections", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "LongTermRetentionBackup" + className: "ServerPrivateEndpointConnection" } } } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + minimalTlsVersion: { + serializedName: "properties.minimalTlsVersion", type: { name: "String" } - } - } - } -}; - -export const ErrorResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponse", - modelProperties: { - error: { - serializedName: "error", + }, + publicNetworkAccess: { + serializedName: "properties.publicNetworkAccess", type: { - name: "Composite", - className: "ErrorDetail" + name: "String" } - } - } - } -}; - -export const ErrorDetail: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorDetail", - modelProperties: { - code: { - serializedName: "code", + }, + workspaceFeature: { + serializedName: "properties.workspaceFeature", readOnly: true, type: { name: "String" } }, - message: { - serializedName: "message", - readOnly: true, + primaryUserAssignedIdentityId: { + serializedName: "properties.primaryUserAssignedIdentityId", type: { name: "String" } }, - target: { - serializedName: "target", - readOnly: true, + federatedClientId: { + serializedName: "properties.federatedClientId", + type: { + name: "Uuid" + } + }, + keyId: { + serializedName: "properties.keyId", type: { name: "String" } }, - details: { - serializedName: "details", - readOnly: true, + administrators: { + serializedName: "properties.administrators", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetail" - } - } + name: "Composite", + className: "ServerExternalAdministrator" } }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + restrictOutboundNetworkAccess: { + serializedName: "properties.restrictOutboundNetworkAccess", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } + name: "String" } - } - } - } -}; - -export const ErrorAdditionalInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - modelProperties: { - type: { - serializedName: "type", - readOnly: true, + }, + isIPv6Enabled: { + serializedName: "properties.isIPv6Enabled", type: { name: "String" } }, - info: { - serializedName: "info", + externalGovernanceStatus: { + serializedName: "properties.externalGovernanceStatus", readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "any" } } + name: "String" } } } } }; -export const ChangeLongTermRetentionBackupAccessTierParameters: coreClient.CompositeMapper = { +export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ChangeLongTermRetentionBackupAccessTierParameters", + className: "ImportNewDatabaseDefinition", modelProperties: { - backupStorageAccessTier: { - serializedName: "backupStorageAccessTier", - required: true, + databaseName: { + serializedName: "databaseName", type: { name: "String" } }, - operationMode: { - serializedName: "operationMode", - required: true, + edition: { + serializedName: "edition", type: { name: "String" } - } - } - } -}; - -export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "CopyLongTermRetentionBackupParameters", - modelProperties: { - targetSubscriptionId: { - serializedName: "properties.targetSubscriptionId", + }, + serviceObjectiveName: { + serializedName: "serviceObjectiveName", type: { name: "String" } }, - targetResourceGroup: { - serializedName: "properties.targetResourceGroup", + maxSizeBytes: { + serializedName: "maxSizeBytes", type: { name: "String" } }, - targetServerResourceId: { - serializedName: "properties.targetServerResourceId", + storageKeyType: { + serializedName: "storageKeyType", + required: true, type: { name: "String" } }, - targetServerFullyQualifiedDomainName: { - serializedName: "properties.targetServerFullyQualifiedDomainName", + storageKey: { + serializedName: "storageKey", + required: true, type: { name: "String" } }, - targetDatabaseName: { - serializedName: "properties.targetDatabaseName", + storageUri: { + serializedName: "storageUri", + required: true, type: { name: "String" } }, - targetBackupStorageRedundancy: { - serializedName: "properties.targetBackupStorageRedundancy", + administratorLogin: { + serializedName: "administratorLogin", + required: true, type: { name: "String" } - } - } - } -}; - -export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UpdateLongTermRetentionBackupParameters", - modelProperties: { - requestedBackupStorageRedundancy: { - serializedName: "properties.requestedBackupStorageRedundancy", + }, + administratorLoginPassword: { + serializedName: "administratorLoginPassword", + required: true, + type: { + name: "String" + } + }, + authenticationType: { + serializedName: "authenticationType", type: { name: "String" } + }, + networkIsolation: { + serializedName: "networkIsolation", + type: { + name: "Composite", + className: "NetworkIsolationSettings" + } } } } }; -export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { +export const FailoverGroupListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "LongTermRetentionPolicyListResult", + className: "FailoverGroupListResult", modelProperties: { value: { serializedName: "value", @@ -9350,7 +9275,7 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "LongTermRetentionPolicy" + className: "FailoverGroup" } } } @@ -9366,60 +9291,41 @@ export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { } }; -export const CheckNameAvailabilityRequest: coreClient.CompositeMapper = { +export const FailoverGroupReadWriteEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityRequest", + className: "FailoverGroupReadWriteEndpoint", modelProperties: { - name: { - serializedName: "name", + failoverPolicy: { + serializedName: "failoverPolicy", required: true, type: { name: "String" } }, - type: { - defaultValue: "Microsoft.Sql/servers", - isConstant: true, - serializedName: "type", + failoverWithDataLossGracePeriodMinutes: { + serializedName: "failoverWithDataLossGracePeriodMinutes", type: { - name: "String" + name: "Number" } } } } }; -export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { +export const FailoverGroupReadOnlyEndpoint: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CheckNameAvailabilityResponse", + className: "FailoverGroupReadOnlyEndpoint", modelProperties: { - name: { - serializedName: "name", - readOnly: true, + failoverPolicy: { + serializedName: "failoverPolicy", type: { name: "String" } }, - available: { - serializedName: "available", - readOnly: true, - type: { - name: "Boolean" - } - }, - reason: { - serializedName: "reason", - readOnly: true, - type: { - name: "Enum", - allowedValues: ["Invalid", "AlreadyExists"] - } - }, - message: { - serializedName: "message", - readOnly: true, + targetServer: { + serializedName: "targetServer", type: { name: "String" } @@ -9428,26 +9334,27 @@ export const CheckNameAvailabilityResponse: coreClient.CompositeMapper = { } }; -export const ServerListResult: coreClient.CompositeMapper = { +export const PartnerInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerListResult", + className: "PartnerInfo", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + required: true, + type: { + name: "String" + } + }, + location: { + serializedName: "location", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Server" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", + replicationRole: { + serializedName: "replicationRole", readOnly: true, type: { name: "String" @@ -9457,84 +9364,98 @@ export const ServerListResult: coreClient.CompositeMapper = { } }; -export const ServerPrivateEndpointConnection: coreClient.CompositeMapper = { +export const FailoverGroupUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerPrivateEndpointConnection", + className: "FailoverGroupUpdate", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { type: { name: "String" } } } }, - properties: { - serializedName: "properties", + readWriteEndpoint: { + serializedName: "properties.readWriteEndpoint", type: { name: "Composite", - className: "PrivateEndpointConnectionProperties" - } - } - } - } -}; - -export const ServerExternalAdministrator: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerExternalAdministrator", - modelProperties: { - administratorType: { - serializedName: "administratorType", - type: { - name: "String" + className: "FailoverGroupReadWriteEndpoint" } }, - principalType: { - serializedName: "principalType", + readOnlyEndpoint: { + serializedName: "properties.readOnlyEndpoint", type: { - name: "String" + name: "Composite", + className: "FailoverGroupReadOnlyEndpoint" } }, - login: { - serializedName: "login", + databases: { + serializedName: "properties.databases", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - sid: { - serializedName: "sid", + partnerServers: { + serializedName: "properties.partnerServers", type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartnerInfo" + } + } } - }, - tenantId: { - serializedName: "tenantId", + } + } + } +}; + +export const InstancePoolListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePoolListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "Uuid" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InstancePool" + } + } } }, - azureADOnlyAuthentication: { - serializedName: "azureADOnlyAuthentication", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Boolean" + name: "String" } } } } }; -export const ServerUpdate: coreClient.CompositeMapper = { +export const InstancePoolUpdate: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerUpdate", + className: "InstancePoolUpdate", modelProperties: { - identity: { - serializedName: "identity", + sku: { + serializedName: "sku", type: { name: "Composite", - className: "ResourceIdentity" + className: "Sku" } }, tags: { @@ -9544,193 +9465,272 @@ export const ServerUpdate: coreClient.CompositeMapper = { value: { type: { name: "String" } } } }, - administratorLogin: { - serializedName: "properties.administratorLogin", + subnetId: { + serializedName: "properties.subnetId", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "properties.administratorLoginPassword", + vCores: { + serializedName: "properties.vCores", type: { - name: "String" + name: "Number" } }, - version: { - serializedName: "properties.version", + licenseType: { + serializedName: "properties.licenseType", type: { name: "String" } }, - state: { - serializedName: "properties.state", + dnsZone: { + serializedName: "properties.dnsZone", readOnly: true, type: { name: "String" } }, - fullyQualifiedDomainName: { - serializedName: "properties.fullyQualifiedDomainName", - readOnly: true, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", type: { name: "String" } - }, - privateEndpointConnections: { - serializedName: "properties.privateEndpointConnections", + } + } + } +}; + +export const LongTermRetentionBackupListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionBackupListResult", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ServerPrivateEndpointConnection" + className: "LongTermRetentionBackup" } } } }, - minimalTlsVersion: { - serializedName: "properties.minimalTlsVersion", - type: { - name: "String" - } - }, - publicNetworkAccess: { - serializedName: "properties.publicNetworkAccess", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String" } - }, - workspaceFeature: { - serializedName: "properties.workspaceFeature", - readOnly: true, + } + } + } +}; + +export const ChangeLongTermRetentionBackupAccessTierParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ChangeLongTermRetentionBackupAccessTierParameters", + modelProperties: { + backupStorageAccessTier: { + serializedName: "backupStorageAccessTier", + required: true, type: { name: "String" } }, - primaryUserAssignedIdentityId: { - serializedName: "properties.primaryUserAssignedIdentityId", + operationMode: { + serializedName: "operationMode", + required: true, type: { name: "String" } - }, - federatedClientId: { - serializedName: "properties.federatedClientId", + } + } + } +}; + +export const ErrorResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponse", + modelProperties: { + error: { + serializedName: "error", type: { - name: "Uuid" + name: "Composite", + className: "ErrorDetail" } - }, - keyId: { - serializedName: "properties.keyId", + } + } + } +}; + +export const ErrorDetail: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetail", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - administrators: { - serializedName: "properties.administrators", + message: { + serializedName: "message", + readOnly: true, type: { - name: "Composite", - className: "ServerExternalAdministrator" + name: "String" } }, - restrictOutboundNetworkAccess: { - serializedName: "properties.restrictOutboundNetworkAccess", + target: { + serializedName: "target", + readOnly: true, type: { name: "String" } }, - isIPv6Enabled: { - serializedName: "properties.isIPv6Enabled", + details: { + serializedName: "details", + readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetail" + } + } } }, - externalGovernanceStatus: { - serializedName: "properties.externalGovernanceStatus", + additionalInfo: { + serializedName: "additionalInfo", readOnly: true, type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } } } } } }; -export const ImportNewDatabaseDefinition: coreClient.CompositeMapper = { +export const ErrorAdditionalInfo: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ImportNewDatabaseDefinition", + className: "ErrorAdditionalInfo", modelProperties: { - databaseName: { - serializedName: "databaseName", - type: { - name: "String" - } - }, - edition: { - serializedName: "edition", + type: { + serializedName: "type", + readOnly: true, type: { name: "String" } }, - serviceObjectiveName: { - serializedName: "serviceObjectiveName", + info: { + serializedName: "info", + readOnly: true, type: { - name: "String" + name: "Dictionary", + value: { type: { name: "any" } } } - }, - maxSizeBytes: { - serializedName: "maxSizeBytes", + } + } + } +}; + +export const CopyLongTermRetentionBackupParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CopyLongTermRetentionBackupParameters", + modelProperties: { + targetSubscriptionId: { + serializedName: "properties.targetSubscriptionId", type: { name: "String" } }, - storageKeyType: { - serializedName: "storageKeyType", - required: true, + targetResourceGroup: { + serializedName: "properties.targetResourceGroup", type: { name: "String" } }, - storageKey: { - serializedName: "storageKey", - required: true, + targetServerResourceId: { + serializedName: "properties.targetServerResourceId", type: { name: "String" } }, - storageUri: { - serializedName: "storageUri", - required: true, + targetServerFullyQualifiedDomainName: { + serializedName: "properties.targetServerFullyQualifiedDomainName", type: { name: "String" } }, - administratorLogin: { - serializedName: "administratorLogin", - required: true, + targetDatabaseName: { + serializedName: "properties.targetDatabaseName", type: { name: "String" } }, - administratorLoginPassword: { - serializedName: "administratorLoginPassword", - required: true, + targetBackupStorageRedundancy: { + serializedName: "properties.targetBackupStorageRedundancy", type: { name: "String" } - }, - authenticationType: { - serializedName: "authenticationType", + } + } + } +}; + +export const UpdateLongTermRetentionBackupParameters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateLongTermRetentionBackupParameters", + modelProperties: { + requestedBackupStorageRedundancy: { + serializedName: "properties.requestedBackupStorageRedundancy", type: { name: "String" } + } + } + } +}; + +export const LongTermRetentionPolicyListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "LongTermRetentionPolicyListResult", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "LongTermRetentionPolicy" + } + } + } }, - networkIsolation: { - serializedName: "networkIsolation", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Composite", - className: "NetworkIsolationSettings" + name: "String" } } } @@ -15853,6 +15853,58 @@ export const SqlVulnerabilityAssessment: coreClient.CompositeMapper = { } }; +export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RefreshExternalGovernanceStatusOperationResult", + modelProperties: { + ...ProxyResource.type.modelProperties, + requestId: { + serializedName: "properties.requestId", + readOnly: true, + type: { + name: "Uuid" + } + }, + requestType: { + serializedName: "properties.requestType", + readOnly: true, + type: { + name: "String" + } + }, + queuedTime: { + serializedName: "properties.queuedTime", + readOnly: true, + type: { + name: "String" + } + }, + serverName: { + serializedName: "properties.serverName", + readOnly: true, + type: { + name: "String" + } + }, + status: { + serializedName: "properties.status", + readOnly: true, + type: { + name: "String" + } + }, + errorMessage: { + serializedName: "properties.errorMessage", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + export const FailoverGroup: coreClient.CompositeMapper = { type: { name: "Composite", @@ -16071,18 +16123,6 @@ export const LongTermRetentionPolicy: coreClient.CompositeMapper = { className: "LongTermRetentionPolicy", modelProperties: { ...ProxyResource.type.modelProperties, - makeBackupsImmutable: { - serializedName: "properties.makeBackupsImmutable", - type: { - name: "Boolean" - } - }, - backupStorageAccessTier: { - serializedName: "properties.backupStorageAccessTier", - type: { - name: "String" - } - }, weeklyRetention: { serializedName: "properties.weeklyRetention", type: { @@ -16111,58 +16151,6 @@ export const LongTermRetentionPolicy: coreClient.CompositeMapper = { } }; -export const RefreshExternalGovernanceStatusOperationResult: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RefreshExternalGovernanceStatusOperationResult", - modelProperties: { - ...ProxyResource.type.modelProperties, - requestId: { - serializedName: "properties.requestId", - readOnly: true, - type: { - name: "Uuid" - } - }, - requestType: { - serializedName: "properties.requestType", - readOnly: true, - type: { - name: "String" - } - }, - queuedTime: { - serializedName: "properties.queuedTime", - readOnly: true, - type: { - name: "String" - } - }, - serverName: { - serializedName: "properties.serverName", - readOnly: true, - type: { - name: "String" - } - }, - status: { - serializedName: "properties.status", - readOnly: true, - type: { - name: "String" - } - }, - errorMessage: { - serializedName: "properties.errorMessage", - readOnly: true, - type: { - name: "String" - } - } - } - } -}; - export const JobAgent: coreClient.CompositeMapper = { type: { name: "Composite", @@ -17060,54 +17048,6 @@ export const ManagedInstance: coreClient.CompositeMapper = { } }; -export const InstancePool: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "InstancePool", - modelProperties: { - ...TrackedResource.type.modelProperties, - sku: { - serializedName: "sku", - type: { - name: "Composite", - className: "Sku" - } - }, - subnetId: { - serializedName: "properties.subnetId", - type: { - name: "String" - } - }, - vCores: { - serializedName: "properties.vCores", - type: { - name: "Number" - } - }, - licenseType: { - serializedName: "properties.licenseType", - type: { - name: "String" - } - }, - dnsZone: { - serializedName: "properties.dnsZone", - readOnly: true, - type: { - name: "String" - } - }, - maintenanceConfigurationId: { - serializedName: "properties.maintenanceConfigurationId", - type: { - name: "String" - } - } - } - } -}; - export const Server: coreClient.CompositeMapper = { type: { name: "Composite", @@ -17240,6 +17180,54 @@ export const Server: coreClient.CompositeMapper = { } }; +export const InstancePool: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InstancePool", + modelProperties: { + ...TrackedResource.type.modelProperties, + sku: { + serializedName: "sku", + type: { + name: "Composite", + className: "Sku" + } + }, + subnetId: { + serializedName: "properties.subnetId", + type: { + name: "String" + } + }, + vCores: { + serializedName: "properties.vCores", + type: { + name: "Number" + } + }, + licenseType: { + serializedName: "properties.licenseType", + type: { + name: "String" + } + }, + dnsZone: { + serializedName: "properties.dnsZone", + readOnly: true, + type: { + name: "String" + } + }, + maintenanceConfigurationId: { + serializedName: "properties.maintenanceConfigurationId", + type: { + name: "String" + } + } + } + } +}; + export const FirewallRule: coreClient.CompositeMapper = { type: { name: "Composite", diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 5b6ab465914e..42fb6f4aca04 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -108,6 +108,10 @@ import { DatabaseSqlVulnerabilityAssessmentRuleBaselineListInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineListInputMapper, DatabaseSqlVulnerabilityAssessmentRuleBaselineInput as DatabaseSqlVulnerabilityAssessmentRuleBaselineInputMapper, SqlVulnerabilityAssessment as SqlVulnerabilityAssessmentMapper, + CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, + Server as ServerMapper, + ServerUpdate as ServerUpdateMapper, + ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper, FailoverGroup as FailoverGroupMapper, FailoverGroupUpdate as FailoverGroupUpdateMapper, InstancePool as InstancePoolMapper, @@ -115,11 +119,7 @@ import { ChangeLongTermRetentionBackupAccessTierParameters as ChangeLongTermRetentionBackupAccessTierParametersMapper, CopyLongTermRetentionBackupParameters as CopyLongTermRetentionBackupParametersMapper, UpdateLongTermRetentionBackupParameters as UpdateLongTermRetentionBackupParametersMapper, - LongTermRetentionPolicy as LongTermRetentionPolicyMapper, - CheckNameAvailabilityRequest as CheckNameAvailabilityRequestMapper, - Server as ServerMapper, - ServerUpdate as ServerUpdateMapper, - ImportNewDatabaseDefinition as ImportNewDatabaseDefinitionMapper + LongTermRetentionPolicy as LongTermRetentionPolicyMapper } from "../models/mappers"; export const contentType: OperationParameter = { @@ -2138,20 +2138,40 @@ export const parameters95: OperationParameter = { export const parameters96: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupMapper + mapper: CheckNameAvailabilityRequestMapper }; export const parameters97: OperationParameter = { parameterPath: "parameters", - mapper: FailoverGroupUpdateMapper + mapper: ServerMapper }; export const parameters98: OperationParameter = { parameterPath: "parameters", - mapper: InstancePoolMapper + mapper: ServerUpdateMapper }; export const parameters99: OperationParameter = { + parameterPath: "parameters", + mapper: ImportNewDatabaseDefinitionMapper +}; + +export const parameters100: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupMapper +}; + +export const parameters101: OperationParameter = { + parameterPath: "parameters", + mapper: FailoverGroupUpdateMapper +}; + +export const parameters102: OperationParameter = { + parameterPath: "parameters", + mapper: InstancePoolMapper +}; + +export const parameters103: OperationParameter = { parameterPath: "parameters", mapper: InstancePoolUpdateMapper }; @@ -2178,17 +2198,17 @@ export const longTermRetentionDatabaseName: OperationURLParameter = { } }; -export const parameters100: OperationParameter = { +export const parameters104: OperationParameter = { parameterPath: "parameters", mapper: ChangeLongTermRetentionBackupAccessTierParametersMapper }; -export const parameters101: OperationParameter = { +export const parameters105: OperationParameter = { parameterPath: "parameters", mapper: CopyLongTermRetentionBackupParametersMapper }; -export const parameters102: OperationParameter = { +export const parameters106: OperationParameter = { parameterPath: "parameters", mapper: UpdateLongTermRetentionBackupParametersMapper }; @@ -2204,27 +2224,7 @@ export const policyName3: OperationURLParameter = { } }; -export const parameters103: OperationParameter = { - parameterPath: "parameters", - mapper: LongTermRetentionPolicyMapper -}; - -export const parameters104: OperationParameter = { - parameterPath: "parameters", - mapper: CheckNameAvailabilityRequestMapper -}; - -export const parameters105: OperationParameter = { - parameterPath: "parameters", - mapper: ServerMapper -}; - -export const parameters106: OperationParameter = { - parameterPath: "parameters", - mapper: ServerUpdateMapper -}; - export const parameters107: OperationParameter = { parameterPath: "parameters", - mapper: ImportNewDatabaseDefinitionMapper + mapper: LongTermRetentionPolicyMapper }; diff --git a/sdk/sql/arm-sql/src/operations/failoverGroups.ts b/sdk/sql/arm-sql/src/operations/failoverGroups.ts index 9b41344b2ff8..f4fb9c0aff6e 100644 --- a/sdk/sql/arm-sql/src/operations/failoverGroups.ts +++ b/sdk/sql/arm-sql/src/operations/failoverGroups.ts @@ -855,7 +855,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters96, + requestBody: Parameters.parameters100, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, @@ -902,7 +902,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters97, + requestBody: Parameters.parameters101, queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index f73d8bbbdfc7..63635c99ab9f 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -151,8 +151,8 @@ export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; export * from "./databaseSqlVulnerabilityAssessmentScanResult"; export * from "./databaseSqlVulnerabilityAssessmentScans"; export * from "./databaseSqlVulnerabilityAssessmentsSettings"; +export * from "./servers"; export * from "./failoverGroups"; export * from "./instancePools"; export * from "./longTermRetentionBackups"; export * from "./longTermRetentionPolicies"; -export * from "./servers"; diff --git a/sdk/sql/arm-sql/src/operations/instancePools.ts b/sdk/sql/arm-sql/src/operations/instancePools.ts index b733ab50cd81..b6802f219d21 100644 --- a/sdk/sql/arm-sql/src/operations/instancePools.ts +++ b/sdk/sql/arm-sql/src/operations/instancePools.ts @@ -606,7 +606,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters98, + requestBody: Parameters.parameters102, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -651,7 +651,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, default: {} }, - requestBody: Parameters.parameters99, + requestBody: Parameters.parameters103, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts index c82fae96d38a..d06a1d59a970 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionBackups.ts @@ -1849,9 +1849,7 @@ const listByLocationOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [ Parameters.apiVersion4, @@ -1874,9 +1872,7 @@ const listByServerOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [ Parameters.apiVersion4, @@ -1900,9 +1896,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [ Parameters.apiVersion4, @@ -1927,9 +1921,7 @@ const getOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackup }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -1947,15 +1939,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -1965,7 +1949,6 @@ const deleteOperationSpec: coreClient.OperationSpec = { Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName ], - headerParameters: [Parameters.accept], serializer }; const changeAccessTierOperationSpec: coreClient.OperationSpec = { @@ -1989,7 +1972,7 @@ const changeAccessTierOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters100, + requestBody: Parameters.parameters104, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2020,11 +2003,9 @@ const copyOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters101, + requestBody: Parameters.parameters105, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2055,11 +2036,9 @@ const updateOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters102, + requestBody: Parameters.parameters106, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2081,9 +2060,7 @@ const listByResourceGroupLocationOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [ Parameters.apiVersion4, @@ -2107,9 +2084,7 @@ const listByResourceGroupServerOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [ Parameters.apiVersion4, @@ -2134,9 +2109,7 @@ const listByResourceGroupDatabaseOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [ Parameters.apiVersion4, @@ -2162,9 +2135,7 @@ const getByResourceGroupOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackup }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -2183,15 +2154,7 @@ const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/locations/{locationName}/longTermRetentionServers/{longTermRetentionServerName}/longTermRetentionDatabases/{longTermRetentionDatabaseName}/longTermRetentionBackups/{backupName}", httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2202,7 +2165,6 @@ const deleteByResourceGroupOperationSpec: coreClient.OperationSpec = { Parameters.longTermRetentionServerName, Parameters.longTermRetentionDatabaseName ], - headerParameters: [Parameters.accept], serializer }; const changeAccessTierByResourceGroupOperationSpec: coreClient.OperationSpec = { @@ -2226,7 +2188,7 @@ const changeAccessTierByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - requestBody: Parameters.parameters100, + requestBody: Parameters.parameters104, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2258,11 +2220,9 @@ const copyByResourceGroupOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters101, + requestBody: Parameters.parameters105, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2294,11 +2254,9 @@ const updateByResourceGroupOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.LongTermRetentionBackupOperationResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters102, + requestBody: Parameters.parameters106, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -2320,9 +2278,7 @@ const listByLocationNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, @@ -2340,9 +2296,7 @@ const listByServerNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, @@ -2361,9 +2315,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, @@ -2383,9 +2335,7 @@ const listByResourceGroupLocationNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, @@ -2404,9 +2354,7 @@ const listByResourceGroupServerNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, @@ -2426,9 +2374,7 @@ const listByResourceGroupDatabaseNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionBackupListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts index 212cb197e4dc..31edad55b770 100644 --- a/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operations/longTermRetentionPolicies.ts @@ -183,7 +183,7 @@ export class LongTermRetentionPoliciesImpl } /** - * Set or update a database's long term retention policy. + * Sets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -268,7 +268,7 @@ export class LongTermRetentionPoliciesImpl } /** - * Set or update a database's long term retention policy. + * Sets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -329,9 +329,7 @@ const listByDatabaseOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionPolicyListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -352,9 +350,7 @@ const getOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionPolicy }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, queryParameters: [Parameters.apiVersion4], urlParameters: [ @@ -385,11 +381,9 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.LongTermRetentionPolicy }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters103, + requestBody: Parameters.parameters107, queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, @@ -410,9 +404,7 @@ const listByDatabaseNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.LongTermRetentionPolicyListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operations/servers.ts b/sdk/sql/arm-sql/src/operations/servers.ts index d9cee85dce34..0c15ddba2e5e 100644 --- a/sdk/sql/arm-sql/src/operations/servers.ts +++ b/sdk/sql/arm-sql/src/operations/servers.ts @@ -755,12 +755,10 @@ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.CheckNameAvailabilityResponse }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters104, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters96, + queryParameters: [Parameters.apiVersion1], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.contentType, Parameters.accept], mediaType: "json", @@ -773,11 +771,9 @@ const listOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.ServerListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion1, Parameters.expand], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -790,11 +786,9 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.ServerListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion1, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -811,11 +805,9 @@ const getOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.Server }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - queryParameters: [Parameters.expand, Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion1, Parameters.expand], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -842,12 +834,10 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.Server }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters105, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters97, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -862,23 +852,14 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/servers/{serverName}", httpMethod: "DELETE", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.ErrorResponse - } - }, - queryParameters: [Parameters.apiVersion4], + responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName, Parameters.serverName ], - headerParameters: [Parameters.accept], serializer }; const updateOperationSpec: coreClient.OperationSpec = { @@ -898,12 +879,10 @@ const updateOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.Server }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters106, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters98, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -931,12 +910,10 @@ const importDatabaseOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.ImportExportOperationResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - requestBody: Parameters.parameters107, - queryParameters: [Parameters.apiVersion4], + requestBody: Parameters.parameters99, + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -964,11 +941,9 @@ const refreshStatusOperationSpec: coreClient.OperationSpec = { 204: { bodyMapper: Mappers.RefreshExternalGovernanceStatusOperationResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion1], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -985,9 +960,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.ServerListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, @@ -1004,9 +977,7 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { 200: { bodyMapper: Mappers.ServerListResult }, - default: { - bodyMapper: Mappers.ErrorResponse - } + default: {} }, urlParameters: [ Parameters.$host, diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts index f73d8bbbdfc7..63635c99ab9f 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/index.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/index.ts @@ -151,8 +151,8 @@ export * from "./databaseSqlVulnerabilityAssessmentRuleBaselines"; export * from "./databaseSqlVulnerabilityAssessmentScanResult"; export * from "./databaseSqlVulnerabilityAssessmentScans"; export * from "./databaseSqlVulnerabilityAssessmentsSettings"; +export * from "./servers"; export * from "./failoverGroups"; export * from "./instancePools"; export * from "./longTermRetentionBackups"; export * from "./longTermRetentionPolicies"; -export * from "./servers"; diff --git a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts index 1d79592030d9..10a0d7c5aa26 100644 --- a/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts +++ b/sdk/sql/arm-sql/src/operationsInterfaces/longTermRetentionPolicies.ts @@ -52,7 +52,7 @@ export interface LongTermRetentionPolicies { options?: LongTermRetentionPoliciesGetOptionalParams ): Promise; /** - * Set or update a database's long term retention policy. + * Sets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. @@ -75,7 +75,7 @@ export interface LongTermRetentionPolicies { > >; /** - * Set or update a database's long term retention policy. + * Sets a database's long term retention policy. * @param resourceGroupName The name of the resource group that contains the resource. You can obtain * this value from the Azure Resource Manager API or the portal. * @param serverName The name of the server. diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 3997800e702d..8abe164d07a4 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -155,11 +155,11 @@ import { DatabaseSqlVulnerabilityAssessmentScanResultImpl, DatabaseSqlVulnerabilityAssessmentScansImpl, DatabaseSqlVulnerabilityAssessmentsSettingsImpl, + ServersImpl, FailoverGroupsImpl, InstancePoolsImpl, LongTermRetentionBackupsImpl, - LongTermRetentionPoliciesImpl, - ServersImpl + LongTermRetentionPoliciesImpl } from "./operations"; import { DataMaskingPolicies, @@ -307,11 +307,11 @@ import { DatabaseSqlVulnerabilityAssessmentScanResult, DatabaseSqlVulnerabilityAssessmentScans, DatabaseSqlVulnerabilityAssessmentsSettings, + Servers, FailoverGroups, InstancePools, LongTermRetentionBackups, - LongTermRetentionPolicies, - Servers + LongTermRetentionPolicies } from "./operationsInterfaces"; import { SqlManagementClientOptionalParams } from "./models"; @@ -680,11 +680,11 @@ export class SqlManagementClient extends coreClient.ServiceClient { this.databaseSqlVulnerabilityAssessmentsSettings = new DatabaseSqlVulnerabilityAssessmentsSettingsImpl( this ); + this.servers = new ServersImpl(this); this.failoverGroups = new FailoverGroupsImpl(this); this.instancePools = new InstancePoolsImpl(this); this.longTermRetentionBackups = new LongTermRetentionBackupsImpl(this); this.longTermRetentionPolicies = new LongTermRetentionPoliciesImpl(this); - this.servers = new ServersImpl(this); } dataMaskingPolicies: DataMaskingPolicies; @@ -832,9 +832,9 @@ export class SqlManagementClient extends coreClient.ServiceClient { databaseSqlVulnerabilityAssessmentScanResult: DatabaseSqlVulnerabilityAssessmentScanResult; databaseSqlVulnerabilityAssessmentScans: DatabaseSqlVulnerabilityAssessmentScans; databaseSqlVulnerabilityAssessmentsSettings: DatabaseSqlVulnerabilityAssessmentsSettings; + servers: Servers; failoverGroups: FailoverGroups; instancePools: InstancePools; longTermRetentionBackups: LongTermRetentionBackups; longTermRetentionPolicies: LongTermRetentionPolicies; - servers: Servers; } diff --git a/sdk/sql/arm-sql/test/sampleTest.ts b/sdk/sql/arm-sql/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/sql/arm-sql/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/sql/arm-sql/tsconfig.json b/sdk/sql/arm-sql/tsconfig.json index c6da67f236cf..3e6ae96443f3 100644 --- a/sdk/sql/arm-sql/tsconfig.json +++ b/sdk/sql/arm-sql/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-sql": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"