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-subscriptions] [DO NOT MERGE] Creating Stable version from Preview version #1669

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
278 changes: 3 additions & 275 deletions sdk/subscription/arm-subscriptions/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -240,110 +240,6 @@ export interface OperationListResult {
nextLink?: string;
}

/**
* Active Directory Principal who’ll get owner access on the new subscription.
*/
export interface AdPrincipal {
/**
* Object id of the Principal
*/
objectId: string;
}

/**
* The created subscription object.
*/
export interface SubscriptionCreationResult {
/**
* The link to the new subscription. Use this link to check the status of subscription creation
* operation.
*/
subscriptionLink?: string;
}

/**
* Subscription Creation Parameters required to create a new Azure subscription.
*/
export interface SubscriptionCreationParameters {
/**
* The display name of the subscription.
*/
displayName?: string;
/**
* The Management Group Id.
*/
managementGroupId?: string;
/**
* The list of principals that should be granted Owner access on the subscription. Principals
* should be of type User, Service Principal or Security Group.
*/
owners?: AdPrincipal[];
/**
* The offer type of the subscription. For example, MS-AZR-0017P (EnterpriseAgreement) and
* MS-AZR-0148P (EnterpriseAgreement devTest) are available. Only valid when creating a
* subscription in a enrollment account scope. Possible values include: 'MS-AZR-0017P',
* 'MS-AZR-0148P'
*/
offerType?: OfferType;
/**
* Additional, untyped parameters to support custom subscription creation scenarios.
*/
additionalParameters?: { [propertyName: string]: any };
}

/**
* The parameters required to create a new subscription.
*/
export interface ModernSubscriptionCreationParameters {
/**
* The friendly name of the subscription.
*/
displayName: string;
/**
* The SKU ID of the Azure plan. Azure plan determines the pricing and service-level agreement of
* the subscription. Use 001 for Microsoft Azure Plan and 002 for Microsoft Azure Plan for
* DevTest.
*/
skuId: string;
/**
* If set, the cost center will show up on the Azure usage and charges file.
*/
costCenter?: string;
/**
* If specified, the AD principal will get owner access to the subscription, along with the user
* who is performing the create subscription operation
*/
owner?: AdPrincipal;
/**
* The identifier of the management group to which this subscription will be associated.
*/
managementGroupId?: string;
/**
* Additional, untyped parameters to support custom subscription creation scenarios.
*/
additionalParameters?: { [propertyName: string]: any };
}

/**
* The parameters required to create a new CSP subscription.
*/
export interface ModernCspSubscriptionCreationParameters {
/**
* The friendly name of the subscription.
*/
displayName: string;
/**
* The SKU ID of the Azure plan. Azure plan determines the pricing and service-level agreement of
* the subscription. Use 001 for Microsoft Azure Plan and 002 for Microsoft Azure Plan for
* DevTest.
*/
skuId: string;
/**
* Reseller ID, basically MPN Id.
*/
resellerId?: string;
}

/**
* Put subscription properties.
*/
Expand All @@ -356,7 +252,7 @@ export interface PutAliasRequestProperties {
* The workload type of the subscription. It can be either Production or DevTest. Possible values
* include: 'Production', 'DevTest'
*/
workloadType: WorkloadType;
workload: Workload;
/**
* Determines whether subscription is fieldLed, partnerLed or LegacyEA
*/
Expand Down Expand Up @@ -441,66 +337,6 @@ export interface SubscriptionClientOptions extends AzureServiceClientOptions {
baseUri?: string;
}

/**
* Defines headers for CreateSubscriptionInEnrollmentAccount operation.
*/
export interface SubscriptionCreateSubscriptionInEnrollmentAccountHeaders {
/**
* GET this URL to retrieve the status of the asynchronous operation.
*/
location: string;
/**
* The amount of delay to use while the status of the operation is checked. The value is
* expressed in seconds.
*/
retryAfter: string;
}

/**
* Defines headers for Get operation.
*/
export interface SubscriptionOperationGetHeaders {
/**
* The URL where the status of the asynchronous operation can be checked.
*/
location: string;
/**
* The amount of delay to use while the status of the operation is checked. The value is
* expressed in seconds.
*/
retryAfter: number;
}

/**
* Defines headers for CreateSubscription operation.
*/
export interface SubscriptionCreateSubscriptionHeaders {
/**
* GET this URL to retrieve the status of the asynchronous operation.
*/
location: string;
/**
* The amount of delay to use while the status of the operation is checked. The value is
* expressed in seconds.
*/
retryAfter: number;
}

/**
* Defines headers for CreateCspSubscription operation.
*/
export interface SubscriptionCreateCspSubscriptionHeaders {
/**
* GET this URL to retrieve the status of the asynchronous operation.
*/
location: string;
/**
* The amount of delay to use while the status of the operation is checked. The value is
* expressed in seconds.
*/
retryAfter: number;
}

/**
* @interface
* Location list operation response.
Expand Down Expand Up @@ -550,20 +386,12 @@ export type SubscriptionState = 'Enabled' | 'Warned' | 'PastDue' | 'Disabled' |
export type SpendingLimit = 'On' | 'Off' | 'CurrentPeriodOff';

/**
* Defines values for OfferType.
* Possible values include: 'MS-AZR-0017P', 'MS-AZR-0148P'
* @readonly
* @enum {string}
*/
export type OfferType = 'MS-AZR-0017P' | 'MS-AZR-0148P';

/**
* Defines values for WorkloadType.
* Defines values for Workload.
* Possible values include: 'Production', 'DevTest'
* @readonly
* @enum {string}
*/
export type WorkloadType = 'Production' | 'DevTest';
export type Workload = 'Production' | 'DevTest';

/**
* Defines values for ProvisioningState.
Expand Down Expand Up @@ -693,31 +521,6 @@ export type TenantsListNextResponse = TenantListResult & {
};
};

/**
* Contains response data for the createSubscriptionInEnrollmentAccount operation.
*/
export type SubscriptionCreateSubscriptionInEnrollmentAccountResponse = SubscriptionCreationResult & SubscriptionCreateSubscriptionInEnrollmentAccountHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: SubscriptionCreateSubscriptionInEnrollmentAccountHeaders;

/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SubscriptionCreationResult;
};
};

/**
* Contains response data for the cancel operation.
*/
Expand Down Expand Up @@ -778,56 +581,6 @@ export type SubscriptionEnableResponse = EnabledSubscriptionId & {
};
};

/**
* Contains response data for the createSubscription operation.
*/
export type SubscriptionCreateSubscriptionResponse = SubscriptionCreationResult & SubscriptionCreateSubscriptionHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: SubscriptionCreateSubscriptionHeaders;

/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SubscriptionCreationResult;
};
};

/**
* Contains response data for the createCspSubscription operation.
*/
export type SubscriptionCreateCspSubscriptionResponse = SubscriptionCreationResult & SubscriptionCreateCspSubscriptionHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: SubscriptionCreateCspSubscriptionHeaders;

/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SubscriptionCreationResult;
};
};

/**
* Contains response data for the createAlias operation.
*/
Expand Down Expand Up @@ -908,31 +661,6 @@ export type SubscriptionBeginCreateAliasResponse = PutAliasResponse & {
};
};

/**
* Contains response data for the get operation.
*/
export type SubscriptionOperationGetResponse = SubscriptionCreationResult & SubscriptionOperationGetHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: SubscriptionOperationGetHeaders;

/**
* The response body as text (string format)
*/
bodyAsText: string;

/**
* The response body as parsed JSON or XML
*/
parsedBody: SubscriptionCreationResult;
};
};

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