Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
[AutoPR storage/resource-manager] [Storage] Set the SignedResource as…
Browse files Browse the repository at this point in the history
… optional in ListServiceSAS (#3207)

* Generated from 7882bc39a752f3adf4c47186c926094ab65cedc9

[Storage] Set the SignedResource as optional in ListServiceSAS

* Generated from b36d0991a7cc9a7185fc6b7d7ef6919f63435234

[Storage] Fix a format issue.

* Generated from b36d0991a7cc9a7185fc6b7d7ef6919f63435234

[Storage] Fix a format issue.
  • Loading branch information
AutorestCI authored Jul 31, 2018
1 parent 9107fb9 commit 5d4d90c
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 16 deletions.
7 changes: 5 additions & 2 deletions lib/services/storageManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@ export { CloudError } from 'ms-rest-azure';
* @member {string} [resource] Resource on which the operation is performed
* etc.
* @member {string} [operation] Type of operation: get, read, delete, etc.
* @member {string} [description] Description of the operation.
*/
export interface OperationDisplay {
provider?: string;
resource?: string;
operation?: string;
description?: string;
}

/**
Expand Down Expand Up @@ -104,6 +106,7 @@ export interface ServiceSpecification {
* performed etc.
* @member {string} [display.operation] Type of operation: get, read, delete,
* etc.
* @member {string} [display.description] Description of the operation.
* @member {string} [origin] The origin of operations.
* @member {object} [serviceSpecification] One property of operation, include
* metric specifications.
Expand Down Expand Up @@ -1071,7 +1074,7 @@ export interface ListAccountSasResponse {
*
* @member {string} canonicalizedResource The canonical path to the signed
* resource.
* @member {string} resource The signed services accessible with the service
* @member {string} [resource] The signed services accessible with the service
* SAS. Possible values include: Blob (b), Container (c), File (f), Share (s).
* Possible values include: 'b', 'c', 'f', 's'
* @member {string} [permissions] The signed permissions for the service SAS.
Expand Down Expand Up @@ -1107,7 +1110,7 @@ export interface ListAccountSasResponse {
*/
export interface ServiceSasParameters {
canonicalizedResource: string;
resource: string;
resource?: string;
permissions?: string;
iPAddressOrRange?: string;
protocols?: string;
Expand Down
1 change: 1 addition & 0 deletions lib/services/storageManagement2/lib/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ class Operation {
* performed etc.
* @member {string} [display.operation] Type of operation: get, read, delete,
* etc.
* @member {string} [display.description] Description of the operation.
* @member {string} [origin] The origin of operations.
* @member {object} [serviceSpecification] One property of operation, include
* metric specifications.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class OperationDisplay {
* @member {string} [resource] Resource on which the operation is performed
* etc.
* @member {string} [operation] Type of operation: get, read, delete, etc.
* @member {string} [description] Description of the operation.
*/
constructor() {
}
Expand Down Expand Up @@ -59,6 +60,13 @@ class OperationDisplay {
type: {
name: 'String'
}
},
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ServiceSasParameters {
* Create a ServiceSasParameters.
* @member {string} canonicalizedResource The canonical path to the signed
* resource.
* @member {string} resource The signed services accessible with the service
* SAS. Possible values include: Blob (b), Container (c), File (f), Share
* (s). Possible values include: 'b', 'c', 'f', 's'
* @member {string} [resource] The signed services accessible with the
* service SAS. Possible values include: Blob (b), Container (c), File (f),
* Share (s). Possible values include: 'b', 'c', 'f', 's'
* @member {string} [permissions] The signed permissions for the service SAS.
* Possible values include: Read (r), Write (w), Delete (d), List (l), Add
* (a), Create (c), Update (u) and Process (p). Possible values include: 'r',
Expand Down Expand Up @@ -78,7 +78,7 @@ class ServiceSasParameters {
}
},
resource: {
required: true,
required: false,
serializedName: 'signedResource',
type: {
name: 'String'
Expand Down
8 changes: 4 additions & 4 deletions lib/services/storageManagement2/lib/operations/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1282,8 +1282,8 @@ export interface StorageAccounts {
* @param {string} parameters.canonicalizedResource The canonical path to the
* signed resource.
*
* @param {string} parameters.resource The signed services accessible with the
* service SAS. Possible values include: Blob (b), Container (c), File (f),
* @param {string} [parameters.resource] The signed services accessible with
* the service SAS. Possible values include: Blob (b), Container (c), File (f),
* Share (s). Possible values include: 'b', 'c', 'f', 's'
*
* @param {string} [parameters.permissions] The signed permissions for the
Expand Down Expand Up @@ -1362,8 +1362,8 @@ export interface StorageAccounts {
* @param {string} parameters.canonicalizedResource The canonical path to the
* signed resource.
*
* @param {string} parameters.resource The signed services accessible with the
* service SAS. Possible values include: Blob (b), Container (c), File (f),
* @param {string} [parameters.resource] The signed services accessible with
* the service SAS. Possible values include: Blob (b), Container (c), File (f),
* Share (s). Possible values include: 'b', 'c', 'f', 's'
*
* @param {string} [parameters.permissions] The signed permissions for the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1997,8 +1997,8 @@ function _listAccountSAS(resourceGroupName, accountName, parameters, options, ca
* @param {string} parameters.canonicalizedResource The canonical path to the
* signed resource.
*
* @param {string} parameters.resource The signed services accessible with the
* service SAS. Possible values include: Blob (b), Container (c), File (f),
* @param {string} [parameters.resource] The signed services accessible with
* the service SAS. Possible values include: Blob (b), Container (c), File (f),
* Share (s). Possible values include: 'b', 'c', 'f', 's'
*
* @param {string} [parameters.permissions] The signed permissions for the
Expand Down Expand Up @@ -4554,8 +4554,8 @@ class StorageAccounts {
* @param {string} parameters.canonicalizedResource The canonical path to the
* signed resource.
*
* @param {string} parameters.resource The signed services accessible with the
* service SAS. Possible values include: Blob (b), Container (c), File (f),
* @param {string} [parameters.resource] The signed services accessible with
* the service SAS. Possible values include: Blob (b), Container (c), File (f),
* Share (s). Possible values include: 'b', 'c', 'f', 's'
*
* @param {string} [parameters.permissions] The signed permissions for the
Expand Down Expand Up @@ -4646,8 +4646,8 @@ class StorageAccounts {
* @param {string} parameters.canonicalizedResource The canonical path to the
* signed resource.
*
* @param {string} parameters.resource The signed services accessible with the
* service SAS. Possible values include: Blob (b), Container (c), File (f),
* @param {string} [parameters.resource] The signed services accessible with
* the service SAS. Possible values include: Blob (b), Container (c), File (f),
* Share (s). Possible values include: 'b', 'c', 'f', 's'
*
* @param {string} [parameters.permissions] The signed permissions for the
Expand Down

0 comments on commit 5d4d90c

Please sign in to comment.