Skip to content

Commit

Permalink
Update from master
Browse files Browse the repository at this point in the history
  • Loading branch information
SDK Automation committed Jul 23, 2020
1 parent bf34ef8 commit f617261
Show file tree
Hide file tree
Showing 7 changed files with 398 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ export {
ErrorAdditionalInfo,
ErrorResponse,
HttpMessage,
StatusMessage,
TargetResource
} from "../models/mappers";
3 changes: 3 additions & 0 deletions sdk/resources/arm-resources/src/models/deploymentsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ export {
DeploymentListResult,
DeploymentProperties,
DeploymentPropertiesExtended,
DeploymentsWhatIfAtManagementGroupScopeHeaders,
DeploymentsWhatIfAtSubscriptionScopeHeaders,
DeploymentsWhatIfAtTenantScopeHeaders,
DeploymentsWhatIfHeaders,
DeploymentValidateResult,
DeploymentWhatIf,
Expand All @@ -44,6 +46,7 @@ export {
ResourceGroupProperties,
ResourceReference,
ScopedDeployment,
ScopedDeploymentWhatIf,
Sku,
SubResource,
TagCount,
Expand Down
154 changes: 141 additions & 13 deletions sdk/resources/arm-resources/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,18 @@ export interface ResourceGroupFilter {
*/
export interface TemplateLink {
/**
* The URI of the template to deploy.
* The URI of the template to deploy. Use either the uri or id property, but not both.
*/
uri: string;
uri?: string;
/**
* The resource id of a Template Spec. Use either the id or uri property, but not both.
*/
id?: string;
/**
* Applicable only if this template link references a Template Spec. This relativePath property
* can optionally be used to reference a Template Spec artifact by path.
*/
relativePath?: string;
/**
* If included, must match the ContentVersion in the template.
*/
Expand Down Expand Up @@ -238,6 +247,20 @@ export interface DeploymentWhatIf {
properties: DeploymentWhatIfProperties;
}

/**
* Deployment What-if operation parameters.
*/
export interface ScopedDeploymentWhatIf {
/**
* The location to store the deployment data.
*/
location: string;
/**
* The deployment properties.
*/
properties: DeploymentWhatIfProperties;
}

/**
* The resource management error additional info.
*/
Expand Down Expand Up @@ -483,10 +506,12 @@ export interface ResourceReference {
*/
export interface DeploymentPropertiesExtended {
/**
* The state of the provisioning.
* Denotes the state of provisioning. Possible values include: 'NotSpecified', 'Accepted',
* 'Running', 'Ready', 'Creating', 'Created', 'Deleting', 'Deleted', 'Canceled', 'Failed',
* 'Succeeded', 'Updating'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly provisioningState?: string;
readonly provisioningState?: ProvisioningState;
/**
* The correlation ID of the deployment.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -987,6 +1012,20 @@ export interface HttpMessage {
content?: any;
}

/**
* Operation status message object.
*/
export interface StatusMessage {
/**
* Status of the deployment operation.
*/
status?: string;
/**
* The error reported by the operation.
*/
error?: ErrorResponse;
}

/**
* Deployment operation properties.
*/
Expand Down Expand Up @@ -1019,15 +1058,17 @@ export interface DeploymentOperationProperties {
*/
readonly serviceRequestId?: string;
/**
* Operation status code.
* Operation status code from the resource provider. This property may not be set if a response
* has not yet been received.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly statusCode?: string;
/**
* Operation status message.
* Operation status message from the resource provider. This property is optional. It will only
* be provided if an error was received from the resource provider.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly statusMessage?: any;
readonly statusMessage?: StatusMessage;
/**
* The target resource.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
Expand Down Expand Up @@ -1140,7 +1181,7 @@ export interface OperationDisplay {
/**
* Microsoft.Resources operation
*/
export interface Operation {
export interface Operation1 {
/**
* Operation name: {provider}/{resource}/{operation}
*/
Expand Down Expand Up @@ -1252,7 +1293,7 @@ export interface TagsPatchResource {
/**
* The operation type for the patch API. Possible values include: 'Replace', 'Merge', 'Delete'
*/
operation?: OperationEnum;
operation?: Operation;
/**
* The set of tags.
*/
Expand Down Expand Up @@ -1552,6 +1593,34 @@ export interface ResourceManagementClientOptions extends AzureServiceClientOptio
baseUri?: string;
}

/**
* Defines headers for WhatIfAtTenantScope operation.
*/
export interface DeploymentsWhatIfAtTenantScopeHeaders {
/**
* URL to get status of this long-running operation.
*/
location: string;
/**
* Number of seconds to wait before polling for status.
*/
retryAfter: string;
}

/**
* Defines headers for WhatIfAtManagementGroupScope operation.
*/
export interface DeploymentsWhatIfAtManagementGroupScopeHeaders {
/**
* URL to get status of this long-running operation.
*/
location: string;
/**
* Number of seconds to wait before polling for status.
*/
retryAfter: string;
}

/**
* Defines headers for WhatIfAtSubscriptionScope operation.
*/
Expand Down Expand Up @@ -1584,9 +1653,9 @@ export interface DeploymentsWhatIfHeaders {
* @interface
* Result of the request to list Microsoft.Resources operations. It contains a list of operations
* and a URL link to get the next set of results.
* @extends Array<Operation>
* @extends Array<Operation1>
*/
export interface OperationListResult extends Array<Operation> {
export interface OperationListResult extends Array<Operation1> {
/**
* URL to get the next set of operation list results if there are any.
*/
Expand Down Expand Up @@ -1711,6 +1780,15 @@ export type AliasPatternType = 'NotSpecified' | 'Extract';
*/
export type AliasType = 'NotSpecified' | 'PlainText' | 'Mask';

/**
* Defines values for ProvisioningState.
* Possible values include: 'NotSpecified', 'Accepted', 'Running', 'Ready', 'Creating', 'Created',
* 'Deleting', 'Deleted', 'Canceled', 'Failed', 'Succeeded', 'Updating'
* @readonly
* @enum {string}
*/
export type ProvisioningState = 'NotSpecified' | 'Accepted' | 'Running' | 'Ready' | 'Creating' | 'Created' | 'Deleting' | 'Deleted' | 'Canceled' | 'Failed' | 'Succeeded' | 'Updating';

/**
* Defines values for ResourceIdentityType.
* Possible values include: 'SystemAssigned', 'UserAssigned', 'SystemAssigned, UserAssigned',
Expand Down Expand Up @@ -1747,12 +1825,12 @@ export type PropertyChangeType = 'Create' | 'Delete' | 'Modify' | 'Array';
export type ChangeType = 'Create' | 'Delete' | 'Ignore' | 'Deploy' | 'NoChange' | 'Modify';

/**
* Defines values for OperationEnum.
* Defines values for Operation.
* Possible values include: 'Replace', 'Merge', 'Delete'
* @readonly
* @enum {string}
*/
export type OperationEnum = 'Replace' | 'Merge' | 'Delete';
export type Operation = 'Replace' | 'Merge' | 'Delete';

/**
* Contains response data for the list operation.
Expand Down Expand Up @@ -2004,6 +2082,31 @@ export type DeploymentsValidateAtTenantScopeResponse = DeploymentValidateResult
};
};

/**
* Contains response data for the whatIfAtTenantScope operation.
*/
export type DeploymentsWhatIfAtTenantScopeResponse = WhatIfOperationResult & DeploymentsWhatIfAtTenantScopeHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: DeploymentsWhatIfAtTenantScopeHeaders;

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

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

/**
* Contains response data for the exportTemplateAtTenantScope operation.
*/
Expand Down Expand Up @@ -2129,6 +2232,31 @@ export type DeploymentsValidateAtManagementGroupScopeResponse = DeploymentValida
};
};

/**
* Contains response data for the whatIfAtManagementGroupScope operation.
*/
export type DeploymentsWhatIfAtManagementGroupScopeResponse = WhatIfOperationResult & DeploymentsWhatIfAtManagementGroupScopeHeaders & {
/**
* The underlying HTTP response.
*/
_response: msRest.HttpResponse & {
/**
* The parsed HTTP response headers.
*/
parsedHeaders: DeploymentsWhatIfAtManagementGroupScopeHeaders;

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

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

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

0 comments on commit f617261

Please sign in to comment.