Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-postgresql-flexible] Changed FSPG RestartParameter.failoverMode from string to enum for API 2021-06-01, 2021-06-01-preview, and 2021-06-15-privatepreview #5910

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/postgresql/arm-postgresql-flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"rollup-plugin-sourcemaps": "^0.4.2",
"uglify-js": "^3.6.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/postgresql/arm-postgresql-flexible/",
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/postgresql/arm-postgresql-flexible/",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ export {
ErrorResponse,
FirewallRule,
HighAvailability,
Identity,
MaintenanceWindow,
Network,
Plan,
ProxyResource,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Server,
Sku,
Storage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ export {
ErrorResponse,
FirewallRule,
HighAvailability,
Identity,
MaintenanceWindow,
Network,
Plan,
ProxyResource,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Server,
Sku,
Storage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,10 @@ export {
FirewallRule,
FirewallRuleListResult,
HighAvailability,
Identity,
MaintenanceWindow,
Network,
Plan,
ProxyResource,
Resource,
ResourceModelWithAllowedPropertySet,
ResourceModelWithAllowedPropertySetIdentity,
ResourceModelWithAllowedPropertySetPlan,
ResourceModelWithAllowedPropertySetSku,
Server,
Sku,
Storage,
Expand Down
149 changes: 12 additions & 137 deletions sdk/postgresql/arm-postgresql-flexible/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -352,26 +352,6 @@ export interface MaintenanceWindow {
dayOfWeek?: number;
}

/**
* Identity for the resource.
*/
export interface Identity {
/**
* The principal ID of resource identity.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly principalId?: string;
/**
* The tenant ID of resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
/**
* The identity type. Possible values include: 'SystemAssigned'
*/
type?: ResourceIdentityType;
}

/**
* Sku information related properties of a server.
*/
Expand Down Expand Up @@ -463,10 +443,6 @@ export interface TrackedResource extends Resource {
* Represents a server.
*/
export interface Server extends TrackedResource {
/**
* The Azure Active Directory identity of the server.
*/
identity?: Identity;
/**
* The SKU (pricing tier) of the server.
*/
Expand Down Expand Up @@ -776,9 +752,10 @@ export interface RestartParameter {
*/
restartWithFailover?: boolean;
/**
* Failover mode.
* Failover mode. Possible values include: 'PlannedFailover', 'ForcedFailover',
* 'PlannedSwitchover', 'ForcedSwitchover'
*/
failoverMode?: string;
failoverMode?: FailoverMode;
}

/**
Expand Down Expand Up @@ -842,109 +819,6 @@ export interface AzureEntityResource extends Resource {
readonly etag?: string;
}

/**
* An interface representing ResourceModelWithAllowedPropertySetIdentity.
*/
export interface ResourceModelWithAllowedPropertySetIdentity extends Identity {
}

/**
* An interface representing ResourceModelWithAllowedPropertySetSku.
*/
export interface ResourceModelWithAllowedPropertySetSku extends Sku {
}

/**
* Plan for the resource.
*/
export interface Plan {
/**
* A user defined name of the 3rd Party Artifact that is being procured.
*/
name: string;
/**
* The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic
*/
publisher: string;
/**
* The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID
* specified for the artifact at the time of Data Market onboarding.
*/
product: string;
/**
* A publisher provided promotion code as provisioned in Data Market for the said
* product/artifact.
*/
promotionCode?: string;
/**
* The version of the desired product/artifact.
*/
version?: string;
}

/**
* An interface representing ResourceModelWithAllowedPropertySetPlan.
*/
export interface ResourceModelWithAllowedPropertySetPlan extends Plan {
}

/**
* The resource model definition containing the full set of allowed properties for a resource.
* Except properties bag, there cannot be a top level property outside of this set.
*/
export interface ResourceModelWithAllowedPropertySet extends BaseResource {
/**
* Fully qualified resource ID for the resource. Ex -
* /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The name of the resource
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or
* "Microsoft.Storage/storageAccounts"
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The geo-location where the resource lives
*/
location?: string;
/**
* The fully qualified resource ID of the resource that manages this resource. Indicates if this
* resource is managed by another Azure resource. If this is present, complete mode deployment
* will not delete the resource if it is removed from the template since it is managed by another
* resource.
*/
managedBy?: string;
/**
* Metadata used by portal/tooling/etc to render different UX experiences for resources of the
* same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource
* provider must validate and persist this value.
*/
kind?: string;
/**
* The etag field is *not* required. If it is provided in the response body, it must also be
* provided as a header per the normal etag convention. Entity tags are used for comparing two
* or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag
* (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range
* (section 14.27) header fields.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly etag?: string;
/**
* Resource tags.
*/
tags?: { [propertyName: string]: string };
identity?: ResourceModelWithAllowedPropertySetIdentity;
sku?: ResourceModelWithAllowedPropertySetSku;
plan?: ResourceModelWithAllowedPropertySetPlan;
}

/**
* Represents a Database.
*/
Expand Down Expand Up @@ -1110,14 +984,6 @@ export type ServerHAState = 'NotEnabled' | 'CreatingStandby' | 'ReplicatingData'
*/
export type CreateMode = 'Default' | 'Create' | 'Update' | 'PointInTimeRestore';

/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned'
* @readonly
* @enum {string}
*/
export type ResourceIdentityType = 'SystemAssigned';

/**
* Defines values for SkuTier.
* Possible values include: 'Burstable', 'GeneralPurpose', 'MemoryOptimized'
Expand Down Expand Up @@ -1158,6 +1024,15 @@ export type ConfigurationDataType = 'Boolean' | 'Numeric' | 'Integer' | 'Enumera
*/
export type OperationOrigin = 'NotSpecified' | 'user' | 'system';

/**
* Defines values for FailoverMode.
* Possible values include: 'PlannedFailover', 'ForcedFailover', 'PlannedSwitchover',
* 'ForcedSwitchover'
* @readonly
* @enum {string}
*/
export type FailoverMode = 'PlannedFailover' | 'ForcedFailover' | 'PlannedSwitchover' | 'ForcedSwitchover';

/**
* Contains response data for the create operation.
*/
Expand Down
Loading