Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-storage] storage readme t2 config #4319

Closed
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
3 changes: 3 additions & 0 deletions sdk/storage/arm-storage/src/models/blobContainersMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LeaseContainerRequest,
Expand Down Expand Up @@ -85,6 +87,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -78,6 +80,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
3 changes: 3 additions & 0 deletions sdk/storage/arm-storage/src/models/blobServicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -77,6 +79,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -78,6 +80,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -79,6 +81,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
3 changes: 3 additions & 0 deletions sdk/storage/arm-storage/src/models/fileServicesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -77,6 +79,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
3 changes: 3 additions & 0 deletions sdk/storage/arm-storage/src/models/fileSharesMappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -78,6 +80,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
64 changes: 64 additions & 0 deletions sdk/storage/arm-storage/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,34 @@ export interface CustomDomain {
useSubDomainName?: boolean;
}

/**
* SasPolicy assigned to the storage account.
*/
export interface SasPolicy {
/**
* The SAS expiration period, DD.HH:MM:SS.
*/
sasExpirationPeriod: string;
}

/**
* KeyPolicy assigned to the storage account.
*/
export interface KeyPolicy {
/**
* The key expiration period in days.
*/
keyExpirationPeriodInDays: number;
}

/**
* Storage account keys creation time.
*/
export interface KeyCreationTime {
key1?: Date;
key2?: Date;
}

/**
* A service that allows server-side encryption to be used.
*/
Expand Down Expand Up @@ -618,6 +646,14 @@ export interface StorageAccountCreateParameters {
* The identity of the resource.
*/
identity?: Identity;
/**
* SasPolicy assigned to the storage account.
*/
sasPolicy?: SasPolicy;
/**
* KeyPolicy assigned to the storage account.
*/
keyPolicy?: KeyPolicy;
/**
* User domain assigned to the storage account. Name is the CNAME source. Only one custom domain
* is supported per storage account at this time. To clear the existing custom domain, use an
Expand Down Expand Up @@ -1083,6 +1119,21 @@ export interface StorageAccount extends TrackedResource {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly customDomain?: CustomDomain;
/**
* SasPolicy assigned to the storage account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly sasPolicy?: SasPolicy;
/**
* KeyPolicy assigned to the storage account.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly keyPolicy?: KeyPolicy;
/**
* Storage account keys creation time.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly keyCreationTime?: KeyCreationTime;
/**
* Gets the URLs that are used to perform a retrieval of a public blob, queue, or table object
* from the secondary location of the storage account. Only available if the SKU name is
Expand Down Expand Up @@ -1190,6 +1241,11 @@ export interface StorageAccountKey {
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly permissions?: KeyPermission;
/**
* Creation time of the key, in round trip date format.
* **NOTE: This property will not be serialized. It can only be populated by the server.**
*/
readonly creationTime?: Date;
}

/**
Expand Down Expand Up @@ -1244,6 +1300,14 @@ export interface StorageAccountUpdateParameters {
* Provides the encryption settings on the account. The default setting is unencrypted.
*/
encryption?: Encryption;
/**
* SasPolicy assigned to the storage account.
*/
sasPolicy?: SasPolicy;
/**
* KeyPolicy assigned to the storage account.
*/
keyPolicy?: KeyPolicy;
/**
* Required for storage accounts where kind = BlobStorage. The access tier used for billing.
* Possible values include: 'Hot', 'Cool'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export {
ImmutabilityPolicy,
ImmutabilityPolicyProperties,
IPRule,
KeyCreationTime,
KeyPolicy,
KeyVaultProperties,
LastAccessTimeTrackingPolicy,
LegalHoldProperties,
Expand Down Expand Up @@ -76,6 +78,7 @@ export {
ResourceAccessRule,
RestorePolicyProperties,
RoutingPreference,
SasPolicy,
Sku,
SmbSetting,
StorageAccount,
Expand Down
124 changes: 124 additions & 0 deletions sdk/storage/arm-storage/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,71 @@ export const CustomDomain: msRest.CompositeMapper = {
}
};

export const SasPolicy: msRest.CompositeMapper = {
serializedName: "SasPolicy",
type: {
name: "Composite",
className: "SasPolicy",
modelProperties: {
sasExpirationPeriod: {
required: true,
serializedName: "sasExpirationPeriod",
type: {
name: "String"
}
},
expirationAction: {
required: true,
isConstant: true,
serializedName: "expirationAction",
defaultValue: 'Log',
type: {
name: "String"
}
}
}
}
};

export const KeyPolicy: msRest.CompositeMapper = {
serializedName: "KeyPolicy",
type: {
name: "Composite",
className: "KeyPolicy",
modelProperties: {
keyExpirationPeriodInDays: {
required: true,
serializedName: "keyExpirationPeriodInDays",
type: {
name: "Number"
}
}
}
}
};

export const KeyCreationTime: msRest.CompositeMapper = {
serializedName: "KeyCreationTime",
type: {
name: "Composite",
className: "KeyCreationTime",
modelProperties: {
key1: {
serializedName: "key1",
type: {
name: "DateTime"
}
},
key2: {
serializedName: "key2",
type: {
name: "DateTime"
}
}
}
}
};

export const EncryptionService: msRest.CompositeMapper = {
serializedName: "EncryptionService",
type: {
Expand Down Expand Up @@ -1007,6 +1072,20 @@ export const StorageAccountCreateParameters: msRest.CompositeMapper = {
className: "Identity"
}
},
sasPolicy: {
serializedName: "properties.sasPolicy",
type: {
name: "Composite",
className: "SasPolicy"
}
},
keyPolicy: {
serializedName: "properties.keyPolicy",
type: {
name: "Composite",
className: "KeyPolicy"
}
},
customDomain: {
serializedName: "properties.customDomain",
type: {
Expand Down Expand Up @@ -1686,6 +1765,30 @@ export const StorageAccount: msRest.CompositeMapper = {
className: "CustomDomain"
}
},
sasPolicy: {
readOnly: true,
serializedName: "properties.sasPolicy",
type: {
name: "Composite",
className: "SasPolicy"
}
},
keyPolicy: {
readOnly: true,
serializedName: "properties.keyPolicy",
type: {
name: "Composite",
className: "KeyPolicy"
}
},
keyCreationTime: {
readOnly: true,
serializedName: "properties.keyCreationTime",
type: {
name: "Composite",
className: "KeyCreationTime"
}
},
secondaryEndpoints: {
readOnly: true,
serializedName: "properties.secondaryEndpoints",
Expand Down Expand Up @@ -1847,6 +1950,13 @@ export const StorageAccountKey: msRest.CompositeMapper = {
"Full"
]
}
},
creationTime: {
readOnly: true,
serializedName: "creationTime",
type: {
name: "DateTime"
}
}
}
}
Expand Down Expand Up @@ -1937,6 +2047,20 @@ export const StorageAccountUpdateParameters: msRest.CompositeMapper = {
className: "Encryption"
}
},
sasPolicy: {
serializedName: "properties.sasPolicy",
type: {
name: "Composite",
className: "SasPolicy"
}
},
keyPolicy: {
serializedName: "properties.keyPolicy",
type: {
name: "Composite",
className: "KeyPolicy"
}
},
accessTier: {
serializedName: "properties.accessTier",
type: {
Expand Down
Loading