Skip to content
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
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class ManagementGroupsAPIContext extends msRestAzure.AzureServiceClient {

super(credentials, options);

this.apiVersion = '2020-02-01';
this.apiVersion = '2020-05-01';
this.acceptLanguage = 'en-US';
this.longRunningOperationRetryTimeout = 30;
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export {
CreateManagementGroupRequest,
CreateOrUpdateSettingsRequest,
CreateParentGroupInfo,
DescendantParentGroupInfo,
EntityHierarchyItem,
ErrorDetails,
ErrorResponse,
Expand All @@ -23,5 +24,6 @@ export {
ManagementGroupChildInfo,
ManagementGroupDetails,
ManagementGroupPathElement,
ParentGroupInfo
ParentGroupInfo,
SubscriptionUnderManagementGroup
} from "../models/mappers";
190 changes: 157 additions & 33 deletions sdk/managementgroups/arm-managementgroups/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,56 @@ export interface ManagementGroupInfo {
displayName?: string;
}

/**
* The ID of the parent management group.
*/
export interface DescendantParentGroupInfo {
/**
* The fully qualified ID for the parent management group. For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
*/
id?: string;
}

/**
* The details of subscription under management group.
*/
export interface SubscriptionUnderManagementGroup extends BaseResource {
/**
* The fully qualified ID for the subscription. For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000/subscriptions/0000000-0000-0000-0000-000000000001
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly id?: string;
/**
* The type of the resource. For example, Microsoft.Management/managementGroups/subscriptions
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: string;
/**
* The stringified id of the subscription. For example, 00000000-0000-0000-0000-000000000000
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly name?: string;
/**
* The AAD Tenant ID associated with the subscription. For example,
* 00000000-0000-0000-0000-000000000000
*/
tenant?: string;
/**
* The friendly name of the subscription.
*/
displayName?: string;
/**
* Parent.
*/
parent?: DescendantParentGroupInfo;
/**
* The state of the subscription.
*/
state?: string;
}

/**
* (Optional) The ID of the parent management group.
*/
Expand Down Expand Up @@ -221,10 +271,6 @@ export interface ManagementGroupChildInfo {
* The friendly name of the child resource.
*/
displayName?: string;
/**
* The roles definitions associated with the management group.
*/
roles?: string[];
/**
* The list of children.
*/
Expand Down Expand Up @@ -274,10 +320,6 @@ export interface ManagementGroup extends BaseResource {
* The friendly name of the management group.
*/
displayName?: string;
/**
* The role definitions associated with the management group.
*/
roles?: string[];
/**
* Details.
*/
Expand Down Expand Up @@ -471,17 +513,6 @@ export interface CreateOrUpdateSettingsRequest extends BaseResource {
defaultManagementGroup?: string;
}

/**
* The ID of the parent management group.
*/
export interface DescendantParentGroupInfo {
/**
* The fully qualified ID for the parent management group. For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
*/
id?: string;
}

/**
* The descendant.
*/
Expand Down Expand Up @@ -635,7 +666,7 @@ export interface PatchManagementGroupRequest {
* (Optional) The fully qualified ID for the parent management group. For example,
* /providers/Microsoft.Management/managementGroups/0000000-0000-0000-0000-000000000000
*/
parentId?: string;
parentGroupId?: string;
}

/**
Expand Down Expand Up @@ -711,11 +742,6 @@ export interface CreateManagementGroupChildInfo {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly displayName?: string;
/**
* The roles definitions associated with the management group.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly roles?: string[];
/**
* The list of children.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -753,11 +779,6 @@ export interface CreateManagementGroupRequest extends BaseResource {
* to the groupId.
*/
displayName?: string;
/**
* The roles definitions associated with the management group.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly roles?: string[];
/**
* Details.
*/
Expand All @@ -779,7 +800,7 @@ export interface CheckNameAvailabilityRequest {
name?: string;
/**
* fully qualified resource type which includes provider namespace. Possible values include:
* 'Microsoft.Management/managementGroup'
* 'Microsoft.Management/managementGroups'
*/
type?: Type;
}
Expand Down Expand Up @@ -901,6 +922,16 @@ export interface ManagementGroupSubscriptionsDeleteMethodOptionalParams extends
cacheControl?: string;
}

/**
* Optional Parameters.
*/
export interface ManagementGroupSubscriptionsGetSubscriptionOptionalParams extends msRest.RequestOptionsBase {
/**
* Indicates that the request shouldn't utilize any caches. Default value: 'no-cache'.
*/
cacheControl?: string;
}

/**
* Optional Parameters.
*/
Expand Down Expand Up @@ -1065,6 +1096,19 @@ export interface DescendantListResult extends Array<DescendantInfo> {
readonly nextLink?: string;
}

/**
* @interface
* The details of all subscriptions under management group.
* @extends Array<SubscriptionUnderManagementGroup>
*/
export interface ListSubscriptionUnderManagementGroup extends Array<SubscriptionUnderManagementGroup> {
/**
* The URL to use for getting the next set of results.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly nextLink?: string;
}

/**
* @interface
* Describes the result of the request to list Microsoft.Management operations.
Expand Down Expand Up @@ -1115,11 +1159,11 @@ export type Status = 'NotStarted' | 'NotStartedButGroupsExist' | 'Started' | 'Fa

/**
* Defines values for Type.
* Possible values include: 'Microsoft.Management/managementGroup'
* Possible values include: 'Microsoft.Management/managementGroups'
* @readonly
* @enum {string}
*/
export type Type = 'Microsoft.Management/managementGroup';
export type Type = 'Microsoft.Management/managementGroups';

/**
* Defines values for Type1.
Expand Down Expand Up @@ -1361,6 +1405,86 @@ export type ManagementGroupsGetDescendantsNextResponse = DescendantListResult &
};
};

/**
* Contains response data for the create operation.
*/
export type ManagementGroupSubscriptionsCreateResponse = SubscriptionUnderManagementGroup & {
/**
* 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: SubscriptionUnderManagementGroup;
};
};

/**
* Contains response data for the getSubscription operation.
*/
export type ManagementGroupSubscriptionsGetSubscriptionResponse = SubscriptionUnderManagementGroup & {
/**
* 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: SubscriptionUnderManagementGroup;
};
};

/**
* Contains response data for the getSubscriptionsUnderManagementGroup operation.
*/
export type ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupResponse = ListSubscriptionUnderManagementGroup & {
/**
* 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: ListSubscriptionUnderManagementGroup;
};
};

/**
* Contains response data for the getSubscriptionsUnderManagementGroupNext operation.
*/
export type ManagementGroupSubscriptionsGetSubscriptionsUnderManagementGroupNextResponse = ListSubscriptionUnderManagementGroup & {
/**
* 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: ListSubscriptionUnderManagementGroup;
};
};

/**
* Contains response data for the list operation.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,22 @@
*/

export {
BaseResource,
CreateManagementGroupChildInfo,
CreateManagementGroupDetails,
CreateManagementGroupRequest,
CreateOrUpdateSettingsRequest,
CreateParentGroupInfo,
DescendantParentGroupInfo,
EntityHierarchyItem,
ErrorDetails,
ErrorResponse
ErrorResponse,
HierarchySettings,
ListSubscriptionUnderManagementGroup,
ManagementGroup,
ManagementGroupChildInfo,
ManagementGroupDetails,
ManagementGroupPathElement,
ParentGroupInfo,
SubscriptionUnderManagementGroup
} from "../models/mappers";
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,6 @@ export {
ManagementGroupsCreateOrUpdateHeaders,
ManagementGroupsDeleteHeaders,
ParentGroupInfo,
PatchManagementGroupRequest
PatchManagementGroupRequest,
SubscriptionUnderManagementGroup
} from "../models/mappers";
Loading