Skip to content

Commit

Permalink
Resource release (#10666)
Browse files Browse the repository at this point in the history
* Generated from d37148a2330a0852dff4e2229669fb8efeccfb5d

update java readme

* update resource version

* bump version

Co-authored-by: SDK Automation <[email protected]>
  • Loading branch information
chunyu3 and SDK Automation authored Aug 19, 2020
1 parent ea0d4ce commit f21b80d
Show file tree
Hide file tree
Showing 11 changed files with 559 additions and 17 deletions.
2 changes: 1 addition & 1 deletion sdk/resources/arm-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-resources",
"author": "Microsoft Corporation",
"description": "ResourceManagementClient Library with typescript type definitions for node.js and browser.",
"version": "3.0.0",
"version": "4.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
Expand Down
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";
5 changes: 5 additions & 0 deletions sdk/resources/arm-resources/src/models/deploymentsMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@
export {
Alias,
AliasPath,
AliasPathMetadata,
AliasPattern,
ApiProfile,
BaseResource,
BasicDependency,
CloudError,
Expand All @@ -21,7 +23,9 @@ export {
DeploymentListResult,
DeploymentProperties,
DeploymentPropertiesExtended,
DeploymentsWhatIfAtManagementGroupScopeHeaders,
DeploymentsWhatIfAtSubscriptionScopeHeaders,
DeploymentsWhatIfAtTenantScopeHeaders,
DeploymentsWhatIfHeaders,
DeploymentValidateResult,
DeploymentWhatIf,
Expand All @@ -44,6 +48,7 @@ export {
ResourceGroupProperties,
ResourceReference,
ScopedDeployment,
ScopedDeploymentWhatIf,
Sku,
SubResource,
TagCount,
Expand Down
220 changes: 210 additions & 10 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 @@ -285,6 +308,40 @@ export interface ErrorResponse {
readonly additionalInfo?: ErrorAdditionalInfo[];
}

/**
* An interface representing ApiProfile.
*/
export interface ApiProfile {
/**
* The profile version.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly profileVersion?: string;
/**
* The API version.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly apiVersion?: string;
}

/**
* An interface representing AliasPathMetadata.
*/
export interface AliasPathMetadata {
/**
* The type of the token that the alias path is referring to. Possible values include:
* 'NotSpecified', 'Any', 'String', 'Object', 'Array', 'Integer', 'Number', 'Boolean'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly type?: AliasPathTokenType;
/**
* The attributes of the token that the alias path is referring to. Possible values include:
* 'None', 'Modifiable'
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly attributes?: AliasPathAttributes;
}

/**
* The type of the pattern for an alias path.
*/
Expand Down Expand Up @@ -319,6 +376,11 @@ export interface AliasPath {
* The pattern for an alias path.
*/
pattern?: AliasPattern;
/**
* The metadata of the alias path. If missing, fall back to the default metadata of the alias.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly metadata?: AliasPathMetadata;
}

/**
Expand All @@ -345,6 +407,12 @@ export interface Alias {
* The default pattern for an alias.
*/
defaultPattern?: AliasPattern;
/**
* The default alias path metadata. Applies to the default path and to any alias path that
* doesn't have metadata
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly defaultMetadata?: AliasPathMetadata;
}

/**
Expand All @@ -367,6 +435,16 @@ export interface ProviderResourceType {
* The API version.
*/
apiVersions?: string[];
/**
* The default API version.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly defaultApiVersion?: string;
/**
* The API profiles for the resource provider.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly apiProfiles?: ApiProfile[];
/**
* The additional capabilities offered by this resource type.
*/
Expand Down Expand Up @@ -483,10 +561,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 +1067,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 +1113,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 @@ -1252,7 +1348,7 @@ export interface TagsPatchResource {
/**
* The operation type for the patch API. Possible values include: 'Replace', 'Merge', 'Delete'
*/
operation?: OperationEnum;
operation?: TagsPatchOperation;
/**
* The set of tags.
*/
Expand Down Expand Up @@ -1552,6 +1648,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 @@ -1695,6 +1819,23 @@ export type OnErrorDeploymentType = 'LastSuccessful' | 'SpecificDeployment';
*/
export type WhatIfResultFormat = 'ResourceIdOnly' | 'FullResourcePayloads';

/**
* Defines values for AliasPathTokenType.
* Possible values include: 'NotSpecified', 'Any', 'String', 'Object', 'Array', 'Integer',
* 'Number', 'Boolean'
* @readonly
* @enum {string}
*/
export type AliasPathTokenType = 'NotSpecified' | 'Any' | 'String' | 'Object' | 'Array' | 'Integer' | 'Number' | 'Boolean';

/**
* Defines values for AliasPathAttributes.
* Possible values include: 'None', 'Modifiable'
* @readonly
* @enum {string}
*/
export type AliasPathAttributes = 'None' | 'Modifiable';

/**
* Defines values for AliasPatternType.
* Possible values include: 'NotSpecified', 'Extract'
Expand All @@ -1711,6 +1852,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 +1897,12 @@ export type PropertyChangeType = 'Create' | 'Delete' | 'Modify' | 'Array';
export type ChangeType = 'Create' | 'Delete' | 'Ignore' | 'Deploy' | 'NoChange' | 'Modify';

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

/**
* Contains response data for the list operation.
Expand Down Expand Up @@ -2004,6 +2154,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 +2304,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 f21b80d

Please sign in to comment.