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 @@ -14,5 +14,6 @@ export {
ErrorAdditionalInfo,
ErrorResponse,
HttpMessage,
StatusMessage,
TargetResource
} from "../models/mappers";
58 changes: 46 additions & 12 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 @@ -483,10 +492,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 +998,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 @@ -1027,7 +1052,7 @@ export interface DeploymentOperationProperties {
* Operation status message.
* **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 @@ -1711,6 +1736,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 @@ -3447,7 +3481,7 @@ export type ResourceGroupsListNextResponse = ResourceGroupListResult & {
/**
* Contains response data for the createOrUpdateValue operation.
*/
export type TagsCreateOrUpdateValueResponse = TagValue & {
export type TagsOperationCreateOrUpdateValueResponse = TagValue & {
/**
* The underlying HTTP response.
*/
Expand All @@ -3467,7 +3501,7 @@ export type TagsCreateOrUpdateValueResponse = TagValue & {
/**
* Contains response data for the createOrUpdate operation.
*/
export type TagsCreateOrUpdateResponse = TagDetails & {
export type TagsOperationCreateOrUpdateResponse = TagDetails & {
/**
* The underlying HTTP response.
*/
Expand All @@ -3487,7 +3521,7 @@ export type TagsCreateOrUpdateResponse = TagDetails & {
/**
* Contains response data for the list operation.
*/
export type TagsListResponse = TagsListResult & {
export type TagsOperationListResponse = TagsListResult & {
/**
* The underlying HTTP response.
*/
Expand All @@ -3507,7 +3541,7 @@ export type TagsListResponse = TagsListResult & {
/**
* Contains response data for the createOrUpdateAtScope operation.
*/
export type TagsCreateOrUpdateAtScopeResponse = TagsResource & {
export type TagsOperationCreateOrUpdateAtScopeResponse = TagsResource & {
/**
* The underlying HTTP response.
*/
Expand All @@ -3527,7 +3561,7 @@ export type TagsCreateOrUpdateAtScopeResponse = TagsResource & {
/**
* Contains response data for the updateAtScope operation.
*/
export type TagsUpdateAtScopeResponse = TagsResource & {
export type TagsOperationUpdateAtScopeResponse = TagsResource & {
/**
* The underlying HTTP response.
*/
Expand All @@ -3547,7 +3581,7 @@ export type TagsUpdateAtScopeResponse = TagsResource & {
/**
* Contains response data for the getAtScope operation.
*/
export type TagsGetAtScopeResponse = TagsResource & {
export type TagsOperationGetAtScopeResponse = TagsResource & {
/**
* The underlying HTTP response.
*/
Expand All @@ -3567,7 +3601,7 @@ export type TagsGetAtScopeResponse = TagsResource & {
/**
* Contains response data for the listNext operation.
*/
export type TagsListNextResponse = TagsListResult & {
export type TagsOperationListNextResponse = TagsListResult & {
/**
* The underlying HTTP response.
*/
Expand Down
39 changes: 37 additions & 2 deletions sdk/resources/arm-resources/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,23 @@ export const TemplateLink: msRest.CompositeMapper = {
className: "TemplateLink",
modelProperties: {
uri: {
required: true,
serializedName: "uri",
type: {
name: "String"
}
},
id: {
serializedName: "id",
type: {
name: "String"
}
},
relativePath: {
serializedName: "relativePath",
type: {
name: "String"
}
},
contentVersion: {
serializedName: "contentVersion",
type: {
Expand Down Expand Up @@ -1654,6 +1665,29 @@ export const HttpMessage: msRest.CompositeMapper = {
}
};

export const StatusMessage: msRest.CompositeMapper = {
serializedName: "StatusMessage",
type: {
name: "Composite",
className: "StatusMessage",
modelProperties: {
status: {
serializedName: "status",
type: {
name: "String"
}
},
error: {
serializedName: "error",
type: {
name: "Composite",
className: "ErrorResponse"
}
}
}
}
};

export const DeploymentOperationProperties: msRest.CompositeMapper = {
serializedName: "DeploymentOperationProperties",
type: {
Expand Down Expand Up @@ -1718,7 +1752,8 @@ export const DeploymentOperationProperties: msRest.CompositeMapper = {
readOnly: true,
serializedName: "statusMessage",
type: {
name: "Object"
name: "Composite",
className: "StatusMessage"
}
},
targetResource: {
Expand Down
2 changes: 1 addition & 1 deletion sdk/resources/arm-resources/src/operations/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ export * from "./deployments";
export * from "./providers";
export * from "./resources";
export * from "./resourceGroups";
export * from "./tagsOperations";
export * from "./tagsOperation";
export * from "./deploymentOperations";
Loading