Skip to content

Commit

Permalink
Generated from 121a212d58a6635c9cb7d5a137190f1dbbf30ba3
Browse files Browse the repository at this point in the history
updated examples
  • Loading branch information
SDK Automation committed Apr 22, 2020
1 parent fa0d679 commit f23efe1
Show file tree
Hide file tree
Showing 14 changed files with 988 additions and 18 deletions.
290 changes: 290 additions & 0 deletions sdk/subscription/arm-subscriptions/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@ export interface SubscriptionCreationParameters {
* 'MS-AZR-0148P'
*/
offerType?: OfferType;
/**
* Additional, untyped parameters to support custom subscription creation scenarios.
*/
additionalParameters?: { [propertyName: string]: any };
}

/**
Expand Down Expand Up @@ -189,6 +193,10 @@ export interface ModernSubscriptionCreationParameters {
* 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 };
}

/**
Expand All @@ -211,6 +219,120 @@ export interface ModernCspSubscriptionCreationParameters {
resellerId?: string;
}

/**
* Location information.
*/
export interface Location {
/**
* The fully qualified ID of the location. For example,
* /subscriptions/00000000-0000-0000-0000-000000000000/locations/westus.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The subscription ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly subscriptionId?: string;
/**
* The location name.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The display name of the location.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly displayName?: string;
/**
* The latitude of the location.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly latitude?: string;
/**
* The longitude of the location.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly longitude?: string;
}

/**
* Subscription policies.
*/
export interface SubscriptionPolicies {
/**
* The subscription location placement ID. The ID indicates which regions are visible for a
* subscription. For example, a subscription with a location placement Id of Public_2014-09-01
* has access to Azure public regions.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly locationPlacementId?: string;
/**
* The subscription quota ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly quotaId?: string;
/**
* The subscription spending limit. Possible values include: 'On', 'Off', 'CurrentPeriodOff'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly spendingLimit?: SpendingLimit;
}

/**
* Subscription information.
*/
export interface Subscription {
/**
* The fully qualified ID for the subscription. For example,
* /subscriptions/00000000-0000-0000-0000-000000000000.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The subscription ID.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly subscriptionId?: string;
/**
* The subscription display name.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly displayName?: string;
/**
* The subscription state. Possible values are Enabled, Warned, PastDue, Disabled, and Deleted.
* Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly state?: SubscriptionState;
/**
* The subscription policies.
*/
subscriptionPolicies?: SubscriptionPolicies;
/**
* The authorization source of the request. Valid values are one or more combinations of Legacy,
* RoleBased, Bypassed, Direct and Management. For example, 'Legacy, RoleBased'.
*/
authorizationSource?: string;
}

/**
* Tenant Id information.
*/
export interface TenantIdDescription {
/**
* The fully qualified ID of the tenant. For example,
* /tenants/00000000-0000-0000-0000-000000000000.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The tenant ID. For example, 00000000-0000-0000-0000-000000000000.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly tenantId?: string;
}

/**
* An interface representing SubscriptionClientOptions.
*/
Expand Down Expand Up @@ -278,6 +400,38 @@ export interface SubscriptionCreateCspSubscriptionHeaders {
retryAfter: number;
}

/**
* @interface
* Location list operation response.
* @extends Array<Location>
*/
export interface LocationListResult extends Array<Location> {
}

/**
* @interface
* Subscription list operation response.
* @extends Array<Subscription>
*/
export interface SubscriptionListResult extends Array<Subscription> {
/**
* The URL to get the next set of results.
*/
nextLink: string;
}

/**
* @interface
* Tenant Ids information.
* @extends Array<TenantIdDescription>
*/
export interface TenantListResult extends Array<TenantIdDescription> {
/**
* The URL to use for getting the next set of results.
*/
nextLink: string;
}

/**
* Defines values for OfferType.
* Possible values include: 'MS-AZR-0017P', 'MS-AZR-0148P'
Expand All @@ -286,6 +440,22 @@ export interface SubscriptionCreateCspSubscriptionHeaders {
*/
export type OfferType = 'MS-AZR-0017P' | 'MS-AZR-0148P';

/**
* Defines values for SubscriptionState.
* Possible values include: 'Enabled', 'Warned', 'PastDue', 'Disabled', 'Deleted'
* @readonly
* @enum {string}
*/
export type SubscriptionState = 'Enabled' | 'Warned' | 'PastDue' | 'Disabled' | 'Deleted';

/**
* Defines values for SpendingLimit.
* Possible values include: 'On', 'Off', 'CurrentPeriodOff'
* @readonly
* @enum {string}
*/
export type SpendingLimit = 'On' | 'Off' | 'CurrentPeriodOff';

/**
* Contains response data for the createSubscriptionInEnrollmentAccount operation.
*/
Expand Down Expand Up @@ -465,3 +635,123 @@ export type OperationsListResponse = OperationListResult & {
parsedBody: OperationListResult;
};
};

/**
* Contains response data for the listLocations operation.
*/
export type SubscriptionsListLocationsResponse = LocationListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

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

/**
* Contains response data for the get operation.
*/
export type SubscriptionsGetResponse = Subscription & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

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

/**
* Contains response data for the list operation.
*/
export type SubscriptionsListResponse = SubscriptionListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

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

/**
* Contains response data for the listNext operation.
*/
export type SubscriptionsListNextResponse = SubscriptionListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

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

/**
* Contains response data for the list operation.
*/
export type TenantsListResponse = TenantListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

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

/**
* Contains response data for the listNext operation.
*/
export type TenantsListNextResponse = TenantListResult & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The response body as text (string format)
*/
bodyAsText: string;

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

0 comments on commit f23efe1

Please sign in to comment.