Skip to content

Commit

Permalink
Sdk automation/@Azure arm storage (#6896)
Browse files Browse the repository at this point in the history
* Generated from 1998d0a6549d02cceed76351dbbbfc131382fa80

Adding all files, examples (removed the readonly from encryption services for table and queue)

* Generated from 1998d0a6549d02cceed76351dbbbfc131382fa80

Adding all files, examples (removed the readonly from encryption services for table and queue)

* version change
  • Loading branch information
qiaozha authored Jan 10, 2020
1 parent 4e2852a commit bb4455f
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 15 deletions.
2 changes: 1 addition & 1 deletion sdk/storage/arm-storage/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2019 Microsoft
Copyright (c) 2020 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/storage/arm-storage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@azure/arm-storage",
"author": "Microsoft Corporation",
"description": "StorageManagementClient Library with typescript type definitions for node.js and browser.",
"version": "12.0.0",
"version": "13.0.0",
"dependencies": {
"@azure/ms-rest-azure-js": "^2.0.1",
"@azure/ms-rest-js": "^2.0.4",
Expand Down
28 changes: 20 additions & 8 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,12 @@ export interface EncryptionService {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly lastEnabledTime?: Date;
/**
* Encryption key type to be used for the encryption service. 'Account' key type implies that an
* account-scoped encryption key will be used. 'Service' key type implies that a default service
* key is used. Possible values include: 'Service', 'Account'
*/
keyType?: KeyType;
}

/**
Expand All @@ -286,14 +292,12 @@ export interface EncryptionServices {
file?: EncryptionService;
/**
* The encryption function of the table storage service.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly table?: EncryptionService;
table?: EncryptionService;
/**
* The encryption function of the queue storage service.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly queue?: EncryptionService;
queue?: EncryptionService;
}

/**
Expand Down Expand Up @@ -1887,7 +1891,7 @@ export interface FileShare extends AzureEntityResource {
metadata?: { [propertyName: string]: string };
/**
* The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to
* 5TB (5120). For Large File Shares, the maximum size is 100000.
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
}
Expand All @@ -1907,7 +1911,7 @@ export interface FileShareItem extends AzureEntityResource {
metadata?: { [propertyName: string]: string };
/**
* The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to
* 5TB (5120). For Large File Shares, the maximum size is 100000.
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
}
Expand Down Expand Up @@ -2053,7 +2057,7 @@ export interface FileSharesCreateOptionalParams extends msRest.RequestOptionsBas
metadata?: { [propertyName: string]: string };
/**
* The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to
* 5TB (5120). For Large File Shares, the maximum size is 100000.
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
}
Expand All @@ -2068,7 +2072,7 @@ export interface FileSharesUpdateOptionalParams extends msRest.RequestOptionsBas
metadata?: { [propertyName: string]: string };
/**
* The maximum size of the share, in gigabytes. Must be greater than 0, and less than or equal to
* 5TB (5120). For Large File Shares, the maximum size is 100000.
* 5TB (5120). For Large File Shares, the maximum size is 102400.
*/
shareQuota?: number;
}
Expand Down Expand Up @@ -2259,6 +2263,14 @@ export type Kind = 'Storage' | 'StorageV2' | 'BlobStorage' | 'FileStorage' | 'Bl
*/
export type Reason = 'AccountNameInvalid' | 'AlreadyExists';

/**
* Defines values for KeyType.
* Possible values include: 'Service', 'Account'
* @readonly
* @enum {string}
*/
export type KeyType = 'Service' | 'Account';

/**
* Defines values for KeySource.
* Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'
Expand Down
12 changes: 8 additions & 4 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,12 @@ export const EncryptionService: msRest.CompositeMapper = {
type: {
name: "DateTime"
}
},
keyType: {
serializedName: "keyType",
type: {
name: "String"
}
}
}
}
Expand All @@ -461,15 +467,13 @@ export const EncryptionServices: msRest.CompositeMapper = {
}
},
table: {
readOnly: true,
serializedName: "table",
type: {
name: "Composite",
className: "EncryptionService"
}
},
queue: {
readOnly: true,
serializedName: "queue",
type: {
name: "Composite",
Expand Down Expand Up @@ -3046,7 +3050,7 @@ export const FileShare: msRest.CompositeMapper = {
shareQuota: {
serializedName: "properties.shareQuota",
constraints: {
InclusiveMaximum: 100000,
InclusiveMaximum: 102400,
InclusiveMinimum: 1
},
type: {
Expand Down Expand Up @@ -3085,7 +3089,7 @@ export const FileShareItem: msRest.CompositeMapper = {
shareQuota: {
serializedName: "properties.shareQuota",
constraints: {
InclusiveMaximum: 100000,
InclusiveMaximum: 102400,
InclusiveMinimum: 1
},
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js";
import * as msRestAzure from "@azure/ms-rest-azure-js";

const packageName = "@azure/arm-storage";
const packageVersion = "12.0.0";
const packageVersion = "13.0.0";

export class StorageManagementClientContext extends msRestAzure.AzureServiceClient {
credentials: msRest.ServiceClientCredentials;
Expand Down

0 comments on commit bb4455f

Please sign in to comment.