Merge pull request #1181 from veronicagg/storage-17_10_01
Preparing release of azure_mgmt_storage to include api-version 2017-10-01
This commit is contained in:
Коммит
e7bfbc5c67
|
@ -1,3 +1,7 @@
|
|||
## 2017.12.12 - Azure ARM Storage release version 0.15.2
|
||||
|
||||
* Updated azure_mgmt_storage to include latest API version 2017-10-01, sdk using [Autorest.2.0.4215](https://www.npmjs.com/package/autorest) (core) and Autorest Ruby 3.1.26.
|
||||
|
||||
## 2017.12.06
|
||||
|
||||
* Regened azure_mgmt_consumption, version 0.15.2, sdk using [Autorest.2.0.4215](https://www.npmjs.com/package/autorest)(core) and [Autorest.Ruby.3.0.20](https://www.npmjs.com/package/@microsoft.azure/autorest.ruby). The azure_mgmt_consumption sdk includes the new version of 2017-11-30.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"management": [
|
||||
"azure_mgmt_consumption"
|
||||
"azure_mgmt_storage"
|
||||
]
|
||||
}
|
|
@ -55,7 +55,7 @@
|
|||
"azure_mgmt_service_fabric": "0.15.1",
|
||||
"azure_mgmt_sql": "0.15.1",
|
||||
"azure_mgmt_stor_simple8000_series": "0.15.1",
|
||||
"azure_mgmt_storage": "0.15.1",
|
||||
"azure_mgmt_storage": "0.15.2",
|
||||
"azure_mgmt_stream_analytics": "0.15.1",
|
||||
"azure_mgmt_subscriptions": "0.15.1",
|
||||
"azure_mgmt_traffic_manager": "0.15.1",
|
||||
|
|
|
@ -6,69 +6,69 @@ require 'azure_mgmt_storage'
|
|||
|
||||
module Azure::Profiles::Latest
|
||||
module Storage::Mgmt
|
||||
Operations = Azure::Storage::Mgmt::V2017_06_01::Operations
|
||||
Skus = Azure::Storage::Mgmt::V2017_06_01::Skus
|
||||
StorageAccounts = Azure::Storage::Mgmt::V2017_06_01::StorageAccounts
|
||||
UsageOperations = Azure::Storage::Mgmt::V2017_06_01::UsageOperations
|
||||
Operations = Azure::Storage::Mgmt::V2017_10_01::Operations
|
||||
Skus = Azure::Storage::Mgmt::V2017_10_01::Skus
|
||||
StorageAccounts = Azure::Storage::Mgmt::V2017_10_01::StorageAccounts
|
||||
UsageOperations = Azure::Storage::Mgmt::V2017_10_01::UsageOperations
|
||||
|
||||
module Models
|
||||
IPRule = Azure::Storage::Mgmt::V2017_06_01::Models::IPRule
|
||||
NetworkRuleSet = Azure::Storage::Mgmt::V2017_06_01::Models::NetworkRuleSet
|
||||
Dimension = Azure::Storage::Mgmt::V2017_06_01::Models::Dimension
|
||||
Identity = Azure::Storage::Mgmt::V2017_06_01::Models::Identity
|
||||
ServiceSpecification = Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSpecification
|
||||
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCreateParameters
|
||||
OperationListResult = Azure::Storage::Mgmt::V2017_06_01::Models::OperationListResult
|
||||
Endpoints = Azure::Storage::Mgmt::V2017_06_01::Models::Endpoints
|
||||
SKUCapability = Azure::Storage::Mgmt::V2017_06_01::Models::SKUCapability
|
||||
Restriction = Azure::Storage::Mgmt::V2017_06_01::Models::Restriction
|
||||
StorageSkuListResult = Azure::Storage::Mgmt::V2017_06_01::Models::StorageSkuListResult
|
||||
StorageAccountKey = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountKey
|
||||
CustomDomain = Azure::Storage::Mgmt::V2017_06_01::Models::CustomDomain
|
||||
StorageAccountListResult = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListResult
|
||||
EncryptionServices = Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionServices
|
||||
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListKeysResult
|
||||
Encryption = Azure::Storage::Mgmt::V2017_06_01::Models::Encryption
|
||||
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountRegenerateKeyParameters
|
||||
OperationDisplay = Azure::Storage::Mgmt::V2017_06_01::Models::OperationDisplay
|
||||
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountUpdateParameters
|
||||
Operation = Azure::Storage::Mgmt::V2017_06_01::Models::Operation
|
||||
UsageName = Azure::Storage::Mgmt::V2017_06_01::Models::UsageName
|
||||
Sku = Azure::Storage::Mgmt::V2017_06_01::Models::Sku
|
||||
Usage = Azure::Storage::Mgmt::V2017_06_01::Models::Usage
|
||||
EncryptionService = Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionService
|
||||
UsageListResult = Azure::Storage::Mgmt::V2017_06_01::Models::UsageListResult
|
||||
VirtualNetworkRule = Azure::Storage::Mgmt::V2017_06_01::Models::VirtualNetworkRule
|
||||
Resource = Azure::Storage::Mgmt::V2017_06_01::Models::Resource
|
||||
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
AccountSasParameters = Azure::Storage::Mgmt::V2017_06_01::Models::AccountSasParameters
|
||||
KeyVaultProperties = Azure::Storage::Mgmt::V2017_06_01::Models::KeyVaultProperties
|
||||
ListAccountSasResponse = Azure::Storage::Mgmt::V2017_06_01::Models::ListAccountSasResponse
|
||||
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2017_06_01::Models::CheckNameAvailabilityResult
|
||||
ServiceSasParameters = Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSasParameters
|
||||
MetricSpecification = Azure::Storage::Mgmt::V2017_06_01::Models::MetricSpecification
|
||||
ListServiceSasResponse = Azure::Storage::Mgmt::V2017_06_01::Models::ListServiceSasResponse
|
||||
StorageAccount = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccount
|
||||
ReasonCode = Azure::Storage::Mgmt::V2017_06_01::Models::ReasonCode
|
||||
SkuName = Azure::Storage::Mgmt::V2017_06_01::Models::SkuName
|
||||
SkuTier = Azure::Storage::Mgmt::V2017_06_01::Models::SkuTier
|
||||
Kind = Azure::Storage::Mgmt::V2017_06_01::Models::Kind
|
||||
Reason = Azure::Storage::Mgmt::V2017_06_01::Models::Reason
|
||||
KeySource = Azure::Storage::Mgmt::V2017_06_01::Models::KeySource
|
||||
Action = Azure::Storage::Mgmt::V2017_06_01::Models::Action
|
||||
State = Azure::Storage::Mgmt::V2017_06_01::Models::State
|
||||
Bypass = Azure::Storage::Mgmt::V2017_06_01::Models::Bypass
|
||||
DefaultAction = Azure::Storage::Mgmt::V2017_06_01::Models::DefaultAction
|
||||
AccessTier = Azure::Storage::Mgmt::V2017_06_01::Models::AccessTier
|
||||
ProvisioningState = Azure::Storage::Mgmt::V2017_06_01::Models::ProvisioningState
|
||||
AccountStatus = Azure::Storage::Mgmt::V2017_06_01::Models::AccountStatus
|
||||
KeyPermission = Azure::Storage::Mgmt::V2017_06_01::Models::KeyPermission
|
||||
UsageUnit = Azure::Storage::Mgmt::V2017_06_01::Models::UsageUnit
|
||||
Services = Azure::Storage::Mgmt::V2017_06_01::Models::Services
|
||||
SignedResourceTypes = Azure::Storage::Mgmt::V2017_06_01::Models::SignedResourceTypes
|
||||
Permissions = Azure::Storage::Mgmt::V2017_06_01::Models::Permissions
|
||||
HttpProtocol = Azure::Storage::Mgmt::V2017_06_01::Models::HttpProtocol
|
||||
SignedResource = Azure::Storage::Mgmt::V2017_06_01::Models::SignedResource
|
||||
IPRule = Azure::Storage::Mgmt::V2017_10_01::Models::IPRule
|
||||
NetworkRuleSet = Azure::Storage::Mgmt::V2017_10_01::Models::NetworkRuleSet
|
||||
Dimension = Azure::Storage::Mgmt::V2017_10_01::Models::Dimension
|
||||
Identity = Azure::Storage::Mgmt::V2017_10_01::Models::Identity
|
||||
ServiceSpecification = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSpecification
|
||||
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters
|
||||
OperationListResult = Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult
|
||||
Endpoints = Azure::Storage::Mgmt::V2017_10_01::Models::Endpoints
|
||||
SKUCapability = Azure::Storage::Mgmt::V2017_10_01::Models::SKUCapability
|
||||
Restriction = Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
|
||||
StorageSkuListResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult
|
||||
StorageAccountKey = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountKey
|
||||
CustomDomain = Azure::Storage::Mgmt::V2017_10_01::Models::CustomDomain
|
||||
StorageAccountListResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListResult
|
||||
EncryptionServices = Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionServices
|
||||
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListKeysResult
|
||||
Encryption = Azure::Storage::Mgmt::V2017_10_01::Models::Encryption
|
||||
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters
|
||||
OperationDisplay = Azure::Storage::Mgmt::V2017_10_01::Models::OperationDisplay
|
||||
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters
|
||||
Operation = Azure::Storage::Mgmt::V2017_10_01::Models::Operation
|
||||
UsageName = Azure::Storage::Mgmt::V2017_10_01::Models::UsageName
|
||||
Sku = Azure::Storage::Mgmt::V2017_10_01::Models::Sku
|
||||
Usage = Azure::Storage::Mgmt::V2017_10_01::Models::Usage
|
||||
EncryptionService = Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService
|
||||
UsageListResult = Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult
|
||||
VirtualNetworkRule = Azure::Storage::Mgmt::V2017_10_01::Models::VirtualNetworkRule
|
||||
Resource = Azure::Storage::Mgmt::V2017_10_01::Models::Resource
|
||||
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
AccountSasParameters = Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters
|
||||
KeyVaultProperties = Azure::Storage::Mgmt::V2017_10_01::Models::KeyVaultProperties
|
||||
ListAccountSasResponse = Azure::Storage::Mgmt::V2017_10_01::Models::ListAccountSasResponse
|
||||
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2017_10_01::Models::CheckNameAvailabilityResult
|
||||
ServiceSasParameters = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters
|
||||
MetricSpecification = Azure::Storage::Mgmt::V2017_10_01::Models::MetricSpecification
|
||||
ListServiceSasResponse = Azure::Storage::Mgmt::V2017_10_01::Models::ListServiceSasResponse
|
||||
StorageAccount = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccount
|
||||
ReasonCode = Azure::Storage::Mgmt::V2017_10_01::Models::ReasonCode
|
||||
SkuName = Azure::Storage::Mgmt::V2017_10_01::Models::SkuName
|
||||
SkuTier = Azure::Storage::Mgmt::V2017_10_01::Models::SkuTier
|
||||
Kind = Azure::Storage::Mgmt::V2017_10_01::Models::Kind
|
||||
Reason = Azure::Storage::Mgmt::V2017_10_01::Models::Reason
|
||||
KeySource = Azure::Storage::Mgmt::V2017_10_01::Models::KeySource
|
||||
Action = Azure::Storage::Mgmt::V2017_10_01::Models::Action
|
||||
State = Azure::Storage::Mgmt::V2017_10_01::Models::State
|
||||
Bypass = Azure::Storage::Mgmt::V2017_10_01::Models::Bypass
|
||||
DefaultAction = Azure::Storage::Mgmt::V2017_10_01::Models::DefaultAction
|
||||
AccessTier = Azure::Storage::Mgmt::V2017_10_01::Models::AccessTier
|
||||
ProvisioningState = Azure::Storage::Mgmt::V2017_10_01::Models::ProvisioningState
|
||||
AccountStatus = Azure::Storage::Mgmt::V2017_10_01::Models::AccountStatus
|
||||
KeyPermission = Azure::Storage::Mgmt::V2017_10_01::Models::KeyPermission
|
||||
UsageUnit = Azure::Storage::Mgmt::V2017_10_01::Models::UsageUnit
|
||||
Services = Azure::Storage::Mgmt::V2017_10_01::Models::Services
|
||||
SignedResourceTypes = Azure::Storage::Mgmt::V2017_10_01::Models::SignedResourceTypes
|
||||
Permissions = Azure::Storage::Mgmt::V2017_10_01::Models::Permissions
|
||||
HttpProtocol = Azure::Storage::Mgmt::V2017_10_01::Models::HttpProtocol
|
||||
SignedResource = Azure::Storage::Mgmt::V2017_10_01::Models::SignedResource
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -80,7 +80,7 @@ module Azure::Profiles::Latest
|
|||
def initialize(configurable, base_url=nil, options=nil)
|
||||
@configurable, @base_url, @options = configurable, base_url, options
|
||||
|
||||
client_0 = Azure::Storage::Mgmt::V2017_06_01::StorageManagementClient.new(configurable.credentials, base_url, options)
|
||||
client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(client_0.respond_to?(:subscription_id))
|
||||
client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
|
@ -94,175 +94,175 @@ module Azure::Profiles::Latest
|
|||
|
||||
class ModelClasses
|
||||
def iprule
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::IPRule
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::IPRule
|
||||
end
|
||||
def network_rule_set
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::NetworkRuleSet
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::NetworkRuleSet
|
||||
end
|
||||
def dimension
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Dimension
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Dimension
|
||||
end
|
||||
def identity
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Identity
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Identity
|
||||
end
|
||||
def service_specification
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSpecification
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSpecification
|
||||
end
|
||||
def storage_account_create_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCreateParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::OperationListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult
|
||||
end
|
||||
def endpoints
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Endpoints
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Endpoints
|
||||
end
|
||||
def skucapability
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SKUCapability
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SKUCapability
|
||||
end
|
||||
def restriction
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Restriction
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
|
||||
end
|
||||
def storage_sku_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageSkuListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult
|
||||
end
|
||||
def storage_account_key
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountKey
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountKey
|
||||
end
|
||||
def custom_domain
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::CustomDomain
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::CustomDomain
|
||||
end
|
||||
def storage_account_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListResult
|
||||
end
|
||||
def encryption_services
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionServices
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionServices
|
||||
end
|
||||
def storage_account_list_keys_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListKeysResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListKeysResult
|
||||
end
|
||||
def encryption
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Encryption
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Encryption
|
||||
end
|
||||
def storage_account_regenerate_key_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountRegenerateKeyParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters
|
||||
end
|
||||
def operation_display
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::OperationDisplay
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::OperationDisplay
|
||||
end
|
||||
def storage_account_update_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountUpdateParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters
|
||||
end
|
||||
def operation
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Operation
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Operation
|
||||
end
|
||||
def usage_name
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::UsageName
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::UsageName
|
||||
end
|
||||
def sku
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Sku
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Sku
|
||||
end
|
||||
def usage
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Usage
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Usage
|
||||
end
|
||||
def encryption_service
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionService
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService
|
||||
end
|
||||
def usage_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::UsageListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult
|
||||
end
|
||||
def virtual_network_rule
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::VirtualNetworkRule
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::VirtualNetworkRule
|
||||
end
|
||||
def resource
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Resource
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Resource
|
||||
end
|
||||
def storage_account_check_name_availability_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
end
|
||||
def account_sas_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::AccountSasParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters
|
||||
end
|
||||
def key_vault_properties
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::KeyVaultProperties
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::KeyVaultProperties
|
||||
end
|
||||
def list_account_sas_response
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ListAccountSasResponse
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ListAccountSasResponse
|
||||
end
|
||||
def check_name_availability_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::CheckNameAvailabilityResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::CheckNameAvailabilityResult
|
||||
end
|
||||
def service_sas_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSasParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters
|
||||
end
|
||||
def metric_specification
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::MetricSpecification
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::MetricSpecification
|
||||
end
|
||||
def list_service_sas_response
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ListServiceSasResponse
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ListServiceSasResponse
|
||||
end
|
||||
def storage_account
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccount
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccount
|
||||
end
|
||||
def reason_code
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ReasonCode
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ReasonCode
|
||||
end
|
||||
def sku_name
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SkuName
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SkuName
|
||||
end
|
||||
def sku_tier
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SkuTier
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SkuTier
|
||||
end
|
||||
def kind
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Kind
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Kind
|
||||
end
|
||||
def reason
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Reason
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Reason
|
||||
end
|
||||
def key_source
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::KeySource
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::KeySource
|
||||
end
|
||||
def action
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Action
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Action
|
||||
end
|
||||
def state
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::State
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::State
|
||||
end
|
||||
def bypass
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Bypass
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Bypass
|
||||
end
|
||||
def default_action
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::DefaultAction
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::DefaultAction
|
||||
end
|
||||
def access_tier
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::AccessTier
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::AccessTier
|
||||
end
|
||||
def provisioning_state
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ProvisioningState
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ProvisioningState
|
||||
end
|
||||
def account_status
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::AccountStatus
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::AccountStatus
|
||||
end
|
||||
def key_permission
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::KeyPermission
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::KeyPermission
|
||||
end
|
||||
def usage_unit
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::UsageUnit
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::UsageUnit
|
||||
end
|
||||
def services
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Services
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Services
|
||||
end
|
||||
def signed_resource_types
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SignedResourceTypes
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SignedResourceTypes
|
||||
end
|
||||
def permissions
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Permissions
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Permissions
|
||||
end
|
||||
def http_protocol
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::HttpProtocol
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::HttpProtocol
|
||||
end
|
||||
def signed_resource
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SignedResource
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SignedResource
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -685,6 +685,11 @@
|
|||
}
|
||||
},
|
||||
"azure_mgmt_storage": {
|
||||
"azure_mgmt_storage_2017_10_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/9cd7dcd35d27b4dd6b5a7344bd0a6a2124ac36f5/specification/storage/resource-manager/readme.md",
|
||||
"namespace": "Azure::Storage::Mgmt::V2017_10_01",
|
||||
"tag": "package-2017-10"
|
||||
},
|
||||
"azure_mgmt_storage_2017_06_01": {
|
||||
"markdown": "https://raw.githubusercontent.com/Azure/azure-rest-api-specs/7aa3a5247895ba34d6cfec73e036bb66dc907d20/specification/storage/resource-manager/readme.md",
|
||||
"namespace": "Azure::Storage::Mgmt::V2017_06_01",
|
||||
|
|
|
@ -126,7 +126,7 @@ module Azure::Storage::Mgmt::V2015_05_01_preview
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_storage'
|
||||
sdk_information = "#{sdk_information}/0.15.1"
|
||||
sdk_information = "#{sdk_information}/0.15.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -126,7 +126,7 @@ module Azure::Storage::Mgmt::V2015_06_15
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_storage'
|
||||
sdk_information = "#{sdk_information}/0.15.1"
|
||||
sdk_information = "#{sdk_information}/0.15.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -126,7 +126,7 @@ module Azure::Storage::Mgmt::V2016_01_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_storage'
|
||||
sdk_information = "#{sdk_information}/0.15.1"
|
||||
sdk_information = "#{sdk_information}/0.15.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -126,7 +126,7 @@ module Azure::Storage::Mgmt::V2016_12_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_storage'
|
||||
sdk_information = "#{sdk_information}/0.15.1"
|
||||
sdk_information = "#{sdk_information}/0.15.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -134,7 +134,7 @@ module Azure::Storage::Mgmt::V2017_06_01
|
|||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_storage'
|
||||
sdk_information = "#{sdk_information}/0.15.1"
|
||||
sdk_information = "#{sdk_information}/0.15.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -0,0 +1,88 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
require 'uri'
|
||||
require 'cgi'
|
||||
require 'date'
|
||||
require 'json'
|
||||
require 'base64'
|
||||
require 'erb'
|
||||
require 'securerandom'
|
||||
require 'time'
|
||||
require 'timeliness'
|
||||
require 'faraday'
|
||||
require 'faraday-cookie_jar'
|
||||
require 'concurrent'
|
||||
require 'ms_rest'
|
||||
require '2017-10-01/generated/azure_mgmt_storage/module_definition'
|
||||
require 'ms_rest_azure'
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
autoload :Operations, '2017-10-01/generated/azure_mgmt_storage/operations.rb'
|
||||
autoload :Skus, '2017-10-01/generated/azure_mgmt_storage/skus.rb'
|
||||
autoload :StorageAccounts, '2017-10-01/generated/azure_mgmt_storage/storage_accounts.rb'
|
||||
autoload :UsageOperations, '2017-10-01/generated/azure_mgmt_storage/usage_operations.rb'
|
||||
autoload :StorageManagementClient, '2017-10-01/generated/azure_mgmt_storage/storage_management_client.rb'
|
||||
|
||||
module Models
|
||||
autoload :IPRule, '2017-10-01/generated/azure_mgmt_storage/models/iprule.rb'
|
||||
autoload :NetworkRuleSet, '2017-10-01/generated/azure_mgmt_storage/models/network_rule_set.rb'
|
||||
autoload :Dimension, '2017-10-01/generated/azure_mgmt_storage/models/dimension.rb'
|
||||
autoload :Identity, '2017-10-01/generated/azure_mgmt_storage/models/identity.rb'
|
||||
autoload :ServiceSpecification, '2017-10-01/generated/azure_mgmt_storage/models/service_specification.rb'
|
||||
autoload :StorageAccountCreateParameters, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb'
|
||||
autoload :OperationListResult, '2017-10-01/generated/azure_mgmt_storage/models/operation_list_result.rb'
|
||||
autoload :Endpoints, '2017-10-01/generated/azure_mgmt_storage/models/endpoints.rb'
|
||||
autoload :SKUCapability, '2017-10-01/generated/azure_mgmt_storage/models/skucapability.rb'
|
||||
autoload :Restriction, '2017-10-01/generated/azure_mgmt_storage/models/restriction.rb'
|
||||
autoload :StorageSkuListResult, '2017-10-01/generated/azure_mgmt_storage/models/storage_sku_list_result.rb'
|
||||
autoload :StorageAccountKey, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_key.rb'
|
||||
autoload :CustomDomain, '2017-10-01/generated/azure_mgmt_storage/models/custom_domain.rb'
|
||||
autoload :StorageAccountListResult, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_result.rb'
|
||||
autoload :EncryptionServices, '2017-10-01/generated/azure_mgmt_storage/models/encryption_services.rb'
|
||||
autoload :StorageAccountListKeysResult, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb'
|
||||
autoload :Encryption, '2017-10-01/generated/azure_mgmt_storage/models/encryption.rb'
|
||||
autoload :StorageAccountRegenerateKeyParameters, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
|
||||
autoload :OperationDisplay, '2017-10-01/generated/azure_mgmt_storage/models/operation_display.rb'
|
||||
autoload :StorageAccountUpdateParameters, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
|
||||
autoload :Operation, '2017-10-01/generated/azure_mgmt_storage/models/operation.rb'
|
||||
autoload :UsageName, '2017-10-01/generated/azure_mgmt_storage/models/usage_name.rb'
|
||||
autoload :Sku, '2017-10-01/generated/azure_mgmt_storage/models/sku.rb'
|
||||
autoload :Usage, '2017-10-01/generated/azure_mgmt_storage/models/usage.rb'
|
||||
autoload :EncryptionService, '2017-10-01/generated/azure_mgmt_storage/models/encryption_service.rb'
|
||||
autoload :UsageListResult, '2017-10-01/generated/azure_mgmt_storage/models/usage_list_result.rb'
|
||||
autoload :VirtualNetworkRule, '2017-10-01/generated/azure_mgmt_storage/models/virtual_network_rule.rb'
|
||||
autoload :Resource, '2017-10-01/generated/azure_mgmt_storage/models/resource.rb'
|
||||
autoload :StorageAccountCheckNameAvailabilityParameters, '2017-10-01/generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
|
||||
autoload :AccountSasParameters, '2017-10-01/generated/azure_mgmt_storage/models/account_sas_parameters.rb'
|
||||
autoload :KeyVaultProperties, '2017-10-01/generated/azure_mgmt_storage/models/key_vault_properties.rb'
|
||||
autoload :ListAccountSasResponse, '2017-10-01/generated/azure_mgmt_storage/models/list_account_sas_response.rb'
|
||||
autoload :CheckNameAvailabilityResult, '2017-10-01/generated/azure_mgmt_storage/models/check_name_availability_result.rb'
|
||||
autoload :ServiceSasParameters, '2017-10-01/generated/azure_mgmt_storage/models/service_sas_parameters.rb'
|
||||
autoload :MetricSpecification, '2017-10-01/generated/azure_mgmt_storage/models/metric_specification.rb'
|
||||
autoload :ListServiceSasResponse, '2017-10-01/generated/azure_mgmt_storage/models/list_service_sas_response.rb'
|
||||
autoload :StorageAccount, '2017-10-01/generated/azure_mgmt_storage/models/storage_account.rb'
|
||||
autoload :ReasonCode, '2017-10-01/generated/azure_mgmt_storage/models/reason_code.rb'
|
||||
autoload :SkuName, '2017-10-01/generated/azure_mgmt_storage/models/sku_name.rb'
|
||||
autoload :SkuTier, '2017-10-01/generated/azure_mgmt_storage/models/sku_tier.rb'
|
||||
autoload :Kind, '2017-10-01/generated/azure_mgmt_storage/models/kind.rb'
|
||||
autoload :Reason, '2017-10-01/generated/azure_mgmt_storage/models/reason.rb'
|
||||
autoload :KeySource, '2017-10-01/generated/azure_mgmt_storage/models/key_source.rb'
|
||||
autoload :Action, '2017-10-01/generated/azure_mgmt_storage/models/action.rb'
|
||||
autoload :State, '2017-10-01/generated/azure_mgmt_storage/models/state.rb'
|
||||
autoload :Bypass, '2017-10-01/generated/azure_mgmt_storage/models/bypass.rb'
|
||||
autoload :DefaultAction, '2017-10-01/generated/azure_mgmt_storage/models/default_action.rb'
|
||||
autoload :AccessTier, '2017-10-01/generated/azure_mgmt_storage/models/access_tier.rb'
|
||||
autoload :ProvisioningState, '2017-10-01/generated/azure_mgmt_storage/models/provisioning_state.rb'
|
||||
autoload :AccountStatus, '2017-10-01/generated/azure_mgmt_storage/models/account_status.rb'
|
||||
autoload :KeyPermission, '2017-10-01/generated/azure_mgmt_storage/models/key_permission.rb'
|
||||
autoload :UsageUnit, '2017-10-01/generated/azure_mgmt_storage/models/usage_unit.rb'
|
||||
autoload :Services, '2017-10-01/generated/azure_mgmt_storage/models/services.rb'
|
||||
autoload :SignedResourceTypes, '2017-10-01/generated/azure_mgmt_storage/models/signed_resource_types.rb'
|
||||
autoload :Permissions, '2017-10-01/generated/azure_mgmt_storage/models/permissions.rb'
|
||||
autoload :HttpProtocol, '2017-10-01/generated/azure_mgmt_storage/models/http_protocol.rb'
|
||||
autoload :SignedResource, '2017-10-01/generated/azure_mgmt_storage/models/signed_resource.rb'
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for AccessTier
|
||||
#
|
||||
module AccessTier
|
||||
Hot = "Hot"
|
||||
Cool = "Cool"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,136 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The parameters to list SAS credentials of a storage account.
|
||||
#
|
||||
class AccountSasParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Services] The signed services accessible with the account SAS.
|
||||
# Possible values include: Blob (b), Queue (q), Table (t), File (f).
|
||||
# Possible values include: 'b', 'q', 't', 'f'
|
||||
attr_accessor :services
|
||||
|
||||
# @return [SignedResourceTypes] The signed resource types that are
|
||||
# accessible with the account SAS. Service (s): Access to service-level
|
||||
# APIs; Container (c): Access to container-level APIs; Object (o): Access
|
||||
# to object-level APIs for blobs, queue messages, table entities, and
|
||||
# files. Possible values include: 's', 'c', 'o'
|
||||
attr_accessor :resource_types
|
||||
|
||||
# @return [Permissions] The signed permissions for the account 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', 'd', 'w', 'l', 'a', 'c', 'u', 'p'
|
||||
attr_accessor :permissions
|
||||
|
||||
# @return [String] An IP address or a range of IP addresses from which to
|
||||
# accept requests.
|
||||
attr_accessor :ipaddress_or_range
|
||||
|
||||
# @return [HttpProtocol] The protocol permitted for a request made with
|
||||
# the account SAS. Possible values include: 'https,http', 'https'
|
||||
attr_accessor :protocols
|
||||
|
||||
# @return [DateTime] The time at which the SAS becomes valid.
|
||||
attr_accessor :shared_access_start_time
|
||||
|
||||
# @return [DateTime] The time at which the shared access signature
|
||||
# becomes invalid.
|
||||
attr_accessor :shared_access_expiry_time
|
||||
|
||||
# @return [String] The key to sign the account SAS token with.
|
||||
attr_accessor :key_to_sign
|
||||
|
||||
|
||||
#
|
||||
# Mapper for AccountSasParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'AccountSasParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'AccountSasParameters',
|
||||
model_properties: {
|
||||
services: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'signedServices',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_types: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'signedResourceTypes',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
permissions: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'signedPermission',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ipaddress_or_range: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedIp',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protocols: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedProtocol',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'HttpProtocol'
|
||||
}
|
||||
},
|
||||
shared_access_start_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedStart',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
shared_access_expiry_time: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'signedExpiry',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
key_to_sign: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'keyToSign',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for AccountStatus
|
||||
#
|
||||
module AccountStatus
|
||||
Available = "available"
|
||||
Unavailable = "unavailable"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,15 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for Action
|
||||
#
|
||||
module Action
|
||||
Allow = "Allow"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,18 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for Bypass
|
||||
#
|
||||
module Bypass
|
||||
None = "None"
|
||||
Logging = "Logging"
|
||||
Metrics = "Metrics"
|
||||
AzureServices = "AzureServices"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,77 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The CheckNameAvailability operation response.
|
||||
#
|
||||
class CheckNameAvailabilityResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Boolean] Gets a boolean value that indicates whether the name
|
||||
# is available for you to use. If true, the name is available. If false,
|
||||
# the name has already been taken or is invalid and cannot be used.
|
||||
attr_accessor :name_available
|
||||
|
||||
# @return [Reason] Gets the reason that a storage account name could not
|
||||
# be used. The Reason element is only returned if NameAvailable is false.
|
||||
# Possible values include: 'AccountNameInvalid', 'AlreadyExists'
|
||||
attr_accessor :reason
|
||||
|
||||
# @return [String] Gets an error message explaining the Reason value in
|
||||
# more detail.
|
||||
attr_accessor :message
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CheckNameAvailabilityResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'CheckNameAvailabilityResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CheckNameAvailabilityResult',
|
||||
model_properties: {
|
||||
name_available: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'nameAvailable',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
reason: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'reason',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Reason'
|
||||
}
|
||||
},
|
||||
message: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'message',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,60 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The custom domain assigned to this storage account. This can be set via
|
||||
# Update.
|
||||
#
|
||||
class CustomDomain
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Gets or sets the custom domain name assigned to the
|
||||
# storage account. Name is the CNAME source.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [Boolean] Indicates whether indirect CName validation is
|
||||
# enabled. Default value is false. This should only be set on updates.
|
||||
attr_accessor :use_sub_domain
|
||||
|
||||
|
||||
#
|
||||
# Mapper for CustomDomain class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'CustomDomain',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CustomDomain',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
use_sub_domain: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'useSubDomain',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for DefaultAction
|
||||
#
|
||||
module DefaultAction
|
||||
Allow = "Allow"
|
||||
Deny = "Deny"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Dimension of blobs, possiblly be blob type or access tier.
|
||||
#
|
||||
class Dimension
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Display name of dimension.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Display name of dimension.
|
||||
attr_accessor :display_name
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Dimension class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Dimension',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Dimension',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'displayName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,74 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The encryption settings on the storage account.
|
||||
#
|
||||
class Encryption
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [EncryptionServices] List of services which support encryption.
|
||||
attr_accessor :services
|
||||
|
||||
# @return [KeySource] The encryption keySource (provider). Possible
|
||||
# values (case-insensitive): Microsoft.Storage, Microsoft.Keyvault.
|
||||
# Possible values include: 'Microsoft.Storage', 'Microsoft.Keyvault'.
|
||||
# Default value: 'Microsoft.Storage' .
|
||||
attr_accessor :key_source
|
||||
|
||||
# @return [KeyVaultProperties] Properties provided by key vault.
|
||||
attr_accessor :key_vault_properties
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Encryption class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Encryption',
|
||||
model_properties: {
|
||||
services: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'services',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionServices'
|
||||
}
|
||||
},
|
||||
key_source: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'keySource',
|
||||
default_value: 'Microsoft.Storage',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
key_vault_properties: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'keyvaultproperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'KeyVaultProperties'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,62 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# A service that allows server-side encryption to be used.
|
||||
#
|
||||
class EncryptionService
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Boolean] A boolean indicating whether or not the service
|
||||
# encrypts the data as it is stored.
|
||||
attr_accessor :enabled
|
||||
|
||||
# @return [DateTime] Gets a rough estimate of the date/time when the
|
||||
# encryption was last enabled by the user. Only returned when encryption
|
||||
# is enabled. There might be some unencrypted blobs which were written
|
||||
# after this time, as it is just a rough estimate.
|
||||
attr_accessor :last_enabled_time
|
||||
|
||||
|
||||
#
|
||||
# Mapper for EncryptionService class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'EncryptionService',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionService',
|
||||
model_properties: {
|
||||
enabled: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'enabled',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
last_enabled_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'lastEnabledTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,89 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# A list of services that support encryption.
|
||||
#
|
||||
class EncryptionServices
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [EncryptionService] The encryption function of the blob storage
|
||||
# service.
|
||||
attr_accessor :blob
|
||||
|
||||
# @return [EncryptionService] The encryption function of the file storage
|
||||
# service.
|
||||
attr_accessor :file
|
||||
|
||||
# @return [EncryptionService] The encryption function of the table
|
||||
# storage service.
|
||||
attr_accessor :table
|
||||
|
||||
# @return [EncryptionService] The encryption function of the queue
|
||||
# storage service.
|
||||
attr_accessor :queue
|
||||
|
||||
|
||||
#
|
||||
# Mapper for EncryptionServices class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'EncryptionServices',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionServices',
|
||||
model_properties: {
|
||||
blob: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'blob',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionService'
|
||||
}
|
||||
},
|
||||
file: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'file',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionService'
|
||||
}
|
||||
},
|
||||
table: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'table',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionService'
|
||||
}
|
||||
},
|
||||
queue: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'queue',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'EncryptionService'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,84 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The URIs that are used to perform a retrieval of a public blob, queue, or
|
||||
# table object.
|
||||
#
|
||||
class Endpoints
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Gets the blob endpoint.
|
||||
attr_accessor :blob
|
||||
|
||||
# @return [String] Gets the queue endpoint.
|
||||
attr_accessor :queue
|
||||
|
||||
# @return [String] Gets the table endpoint.
|
||||
attr_accessor :table
|
||||
|
||||
# @return [String] Gets the file endpoint.
|
||||
attr_accessor :file
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Endpoints class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Endpoints',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Endpoints',
|
||||
model_properties: {
|
||||
blob: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'blob',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
queue: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'queue',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
table: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'table',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
file: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'file',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for HttpProtocol
|
||||
#
|
||||
module HttpProtocol
|
||||
Httpshttp = "https,http"
|
||||
Https = "https"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,72 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Identity for the resource.
|
||||
#
|
||||
class Identity
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The principal ID of resource identity.
|
||||
attr_accessor :principal_id
|
||||
|
||||
# @return [String] The tenant ID of resource.
|
||||
attr_accessor :tenant_id
|
||||
|
||||
# @return [String] The identity type. Default value: 'SystemAssigned' .
|
||||
attr_accessor :type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Identity class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Identity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Identity',
|
||||
model_properties: {
|
||||
principal_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'principalId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tenant_id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'tenantId',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
is_constant: true,
|
||||
serialized_name: 'type',
|
||||
default_value: 'SystemAssigned',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,61 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# IP rule with specific IP or IP range in CIDR format.
|
||||
#
|
||||
class IPRule
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Specifies the IP or IP range in CIDR format. Only IPV4
|
||||
# address is allowed.
|
||||
attr_accessor :ipaddress_or_range
|
||||
|
||||
# @return [Action] The action of IP ACL rule. Possible values include:
|
||||
# 'Allow'. Default value: 'Allow' .
|
||||
attr_accessor :action
|
||||
|
||||
|
||||
#
|
||||
# Mapper for IPRule class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'IPRule',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'IPRule',
|
||||
model_properties: {
|
||||
ipaddress_or_range: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
action: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'action',
|
||||
default_value: 'Allow',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Action'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for KeyPermission
|
||||
#
|
||||
module KeyPermission
|
||||
Read = "Read"
|
||||
Full = "Full"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for KeySource
|
||||
#
|
||||
module KeySource
|
||||
MicrosoftStorage = "Microsoft.Storage"
|
||||
MicrosoftKeyvault = "Microsoft.Keyvault"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,68 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Properties of key vault.
|
||||
#
|
||||
class KeyVaultProperties
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The name of KeyVault key.
|
||||
attr_accessor :key_name
|
||||
|
||||
# @return [String] The version of KeyVault key.
|
||||
attr_accessor :key_version
|
||||
|
||||
# @return [String] The Uri of KeyVault.
|
||||
attr_accessor :key_vault_uri
|
||||
|
||||
|
||||
#
|
||||
# Mapper for KeyVaultProperties class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'KeyVaultProperties',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'KeyVaultProperties',
|
||||
model_properties: {
|
||||
key_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'keyname',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
key_version: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'keyversion',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
key_vault_uri: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'keyvaulturi',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for Kind
|
||||
#
|
||||
module Kind
|
||||
Storage = "Storage"
|
||||
StorageV2 = "StorageV2"
|
||||
BlobStorage = "BlobStorage"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,47 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The List SAS credentials operation response.
|
||||
#
|
||||
class ListAccountSasResponse
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] List SAS credentials of storage account.
|
||||
attr_accessor :account_sas_token
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ListAccountSasResponse class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ListAccountSasResponse',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ListAccountSasResponse',
|
||||
model_properties: {
|
||||
account_sas_token: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'accountSasToken',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,47 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The List service SAS credentials operation response.
|
||||
#
|
||||
class ListServiceSasResponse
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] List service SAS credentials of speicific resource.
|
||||
attr_accessor :service_sas_token
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ListServiceSasResponse class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ListServiceSasResponse',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ListServiceSasResponse',
|
||||
model_properties: {
|
||||
service_sas_token: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'serviceSasToken',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,145 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Metric specification of operation.
|
||||
#
|
||||
class MetricSpecification
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Name of metric specification.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Display name of metric specification.
|
||||
attr_accessor :display_name
|
||||
|
||||
# @return [String] Display description of metric specification.
|
||||
attr_accessor :display_description
|
||||
|
||||
# @return [String] Unit could be Bytes or Count.
|
||||
attr_accessor :unit
|
||||
|
||||
# @return [Array<Dimension>] Dimensions of blobs, including blob type and
|
||||
# access tier.
|
||||
attr_accessor :dimensions
|
||||
|
||||
# @return [String] Aggregation type could be Average.
|
||||
attr_accessor :aggregation_type
|
||||
|
||||
# @return [Boolean] The property to decide fill gap with zero or not.
|
||||
attr_accessor :fill_gap_with_zero
|
||||
|
||||
# @return [String] The category this metric specification belong to,
|
||||
# could be Capacity.
|
||||
attr_accessor :category
|
||||
|
||||
# @return [String] Account Resource Id.
|
||||
attr_accessor :resource_id_dimension_name_override
|
||||
|
||||
|
||||
#
|
||||
# Mapper for MetricSpecification class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'MetricSpecification',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MetricSpecification',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'displayName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display_description: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'displayDescription',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
unit: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'unit',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
dimensions: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'dimensions',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'DimensionElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Dimension'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
aggregation_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'aggregationType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
fill_gap_with_zero: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'fillGapWithZero',
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
category: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'category',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource_id_dimension_name_override: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'resourceIdDimensionNameOverride',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,106 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Network rule set
|
||||
#
|
||||
class NetworkRuleSet
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Bypass] Specifies whether traffic is bypassed for
|
||||
# Logging/Metrics/AzureServices. Possible values are any combination of
|
||||
# Logging|Metrics|AzureServices (For example, "Logging, Metrics"), or
|
||||
# None to bypass none of those traffics. Possible values include: 'None',
|
||||
# 'Logging', 'Metrics', 'AzureServices'. Default value: 'AzureServices' .
|
||||
attr_accessor :bypass
|
||||
|
||||
# @return [Array<VirtualNetworkRule>] Sets the virtual network rules
|
||||
attr_accessor :virtual_network_rules
|
||||
|
||||
# @return [Array<IPRule>] Sets the IP ACL rules
|
||||
attr_accessor :ip_rules
|
||||
|
||||
# @return [DefaultAction] Specifies the default action of allow or deny
|
||||
# when no other rules match. Possible values include: 'Allow', 'Deny'.
|
||||
# Default value: 'Allow' .
|
||||
attr_accessor :default_action
|
||||
|
||||
|
||||
#
|
||||
# Mapper for NetworkRuleSet class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'NetworkRuleSet',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetworkRuleSet',
|
||||
model_properties: {
|
||||
bypass: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'bypass',
|
||||
default_value: 'AzureServices',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
virtual_network_rules: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'virtualNetworkRules',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'VirtualNetworkRuleElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VirtualNetworkRule'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
ip_rules: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ipRules',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'IPRuleElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'IPRule'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
default_action: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'defaultAction',
|
||||
default_value: 'Allow',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'DefaultAction'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,83 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Storage REST API operation definition.
|
||||
#
|
||||
class Operation
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Operation name: {provider}/{resource}/{operation}
|
||||
attr_accessor :name
|
||||
|
||||
# @return [OperationDisplay] Display metadata associated with the
|
||||
# operation.
|
||||
attr_accessor :display
|
||||
|
||||
# @return [String] The origin of operations.
|
||||
attr_accessor :origin
|
||||
|
||||
# @return [ServiceSpecification] One property of operation, include
|
||||
# metric specifications.
|
||||
attr_accessor :service_specification
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Operation class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Operation',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Operation',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
display: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationDisplay'
|
||||
}
|
||||
},
|
||||
origin: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'origin',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
service_specification: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.serviceSpecification',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServiceSpecification'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,68 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Display metadata associated with the operation.
|
||||
#
|
||||
class OperationDisplay
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Service provider: Microsoft Storage.
|
||||
attr_accessor :provider
|
||||
|
||||
# @return [String] Resource on which the operation is performed etc.
|
||||
attr_accessor :resource
|
||||
|
||||
# @return [String] Type of operation: get, read, delete, etc.
|
||||
attr_accessor :operation
|
||||
|
||||
|
||||
#
|
||||
# Mapper for OperationDisplay class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Operation_display',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationDisplay',
|
||||
model_properties: {
|
||||
provider: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'provider',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'resource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
operation: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'operation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Result of the request to list Storage operations. It contains a list of
|
||||
# operations and a URL link to get the next set of results.
|
||||
#
|
||||
class OperationListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Operation>] List of Storage operations supported by the
|
||||
# Storage resource provider.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for OperationListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'OperationListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'OperationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Operation'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,22 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for Permissions
|
||||
#
|
||||
module Permissions
|
||||
R = "r"
|
||||
D = "d"
|
||||
W = "w"
|
||||
L = "l"
|
||||
A = "a"
|
||||
C = "c"
|
||||
U = "u"
|
||||
P = "p"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ProvisioningState
|
||||
#
|
||||
module ProvisioningState
|
||||
Creating = "Creating"
|
||||
ResolvingDNS = "ResolvingDNS"
|
||||
Succeeded = "Succeeded"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for Reason
|
||||
#
|
||||
module Reason
|
||||
AccountNameInvalid = "AccountNameInvalid"
|
||||
AlreadyExists = "AlreadyExists"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for ReasonCode
|
||||
#
|
||||
module ReasonCode
|
||||
QuotaId = "QuotaId"
|
||||
NotAvailableForSubscription = "NotAvailableForSubscription"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,102 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Describes a storage resource.
|
||||
#
|
||||
class Resource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource Id
|
||||
attr_accessor :id
|
||||
|
||||
# @return [String] Resource name
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] Resource type
|
||||
attr_accessor :type
|
||||
|
||||
# @return [String] Resource location
|
||||
attr_accessor :location
|
||||
|
||||
# @return [Hash{String => String}] Tags assigned to a resource; can be
|
||||
# used for viewing and grouping a resource (across resource groups).
|
||||
attr_accessor :tags
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Resource class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Resource',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Resource',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,85 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The restriction because of which SKU cannot be used.
|
||||
#
|
||||
class Restriction
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The type of restrictions. As of now only possible
|
||||
# value for this is location.
|
||||
attr_accessor :type
|
||||
|
||||
# @return [Array<String>] The value of restrictions. If the restriction
|
||||
# type is set to location. This would be different locations where the
|
||||
# SKU is restricted.
|
||||
attr_accessor :values
|
||||
|
||||
# @return [ReasonCode] The reason for the restriction. As of now this can
|
||||
# be “QuotaId” or “NotAvailableForSubscription”. Quota Id is set when the
|
||||
# SKU has requiredQuotas parameter as the subscription does not belong to
|
||||
# that quota. The “NotAvailableForSubscription” is related to capacity at
|
||||
# DC. Possible values include: 'QuotaId', 'NotAvailableForSubscription'
|
||||
attr_accessor :reason_code
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Restriction class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Restriction',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Restriction',
|
||||
model_properties: {
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
values: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'values',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
reason_code: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'reasonCode',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,247 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The parameters to list service SAS credentials of a speicific resource.
|
||||
#
|
||||
class ServiceSasParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The canonical path to the signed resource.
|
||||
attr_accessor :canonicalized_resource
|
||||
|
||||
# @return [SignedResource] 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'
|
||||
attr_accessor :resource
|
||||
|
||||
# @return [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', 'd', 'w', 'l', 'a', 'c', 'u', 'p'
|
||||
attr_accessor :permissions
|
||||
|
||||
# @return [String] An IP address or a range of IP addresses from which to
|
||||
# accept requests.
|
||||
attr_accessor :ipaddress_or_range
|
||||
|
||||
# @return [HttpProtocol] The protocol permitted for a request made with
|
||||
# the account SAS. Possible values include: 'https,http', 'https'
|
||||
attr_accessor :protocols
|
||||
|
||||
# @return [DateTime] The time at which the SAS becomes valid.
|
||||
attr_accessor :shared_access_start_time
|
||||
|
||||
# @return [DateTime] The time at which the shared access signature
|
||||
# becomes invalid.
|
||||
attr_accessor :shared_access_expiry_time
|
||||
|
||||
# @return [String] A unique value up to 64 characters in length that
|
||||
# correlates to an access policy specified for the container, queue, or
|
||||
# table.
|
||||
attr_accessor :identifier
|
||||
|
||||
# @return [String] The start of partition key.
|
||||
attr_accessor :partition_key_start
|
||||
|
||||
# @return [String] The end of partition key.
|
||||
attr_accessor :partition_key_end
|
||||
|
||||
# @return [String] The start of row key.
|
||||
attr_accessor :row_key_start
|
||||
|
||||
# @return [String] The end of row key.
|
||||
attr_accessor :row_key_end
|
||||
|
||||
# @return [String] The key to sign the account SAS token with.
|
||||
attr_accessor :key_to_sign
|
||||
|
||||
# @return [String] The response header override for cache control.
|
||||
attr_accessor :cache_control
|
||||
|
||||
# @return [String] The response header override for content disposition.
|
||||
attr_accessor :content_disposition
|
||||
|
||||
# @return [String] The response header override for content encoding.
|
||||
attr_accessor :content_encoding
|
||||
|
||||
# @return [String] The response header override for content language.
|
||||
attr_accessor :content_language
|
||||
|
||||
# @return [String] The response header override for content type.
|
||||
attr_accessor :content_type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServiceSasParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServiceSasParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServiceSasParameters',
|
||||
model_properties: {
|
||||
canonicalized_resource: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'canonicalizedResource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
resource: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'signedResource',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
permissions: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedPermission',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
ipaddress_or_range: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedIp',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
protocols: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedProtocol',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'HttpProtocol'
|
||||
}
|
||||
},
|
||||
shared_access_start_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedStart',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
shared_access_expiry_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedExpiry',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
identifier: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'signedIdentifier',
|
||||
constraints: {
|
||||
MaxLength: 64
|
||||
},
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
partition_key_start: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'startPk',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
partition_key_end: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'endPk',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
row_key_start: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'startRk',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
row_key_end: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'endRk',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
key_to_sign: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'keyToSign',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
cache_control: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rscc',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
content_disposition: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rscd',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
content_encoding: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rsce',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
content_language: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rscl',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
content_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'rsct',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,56 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# One property of operation, include metric specifications.
|
||||
#
|
||||
class ServiceSpecification
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<MetricSpecification>] Metric specifications of
|
||||
# operation.
|
||||
attr_accessor :metric_specifications
|
||||
|
||||
|
||||
#
|
||||
# Mapper for ServiceSpecification class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'ServiceSpecification',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'ServiceSpecification',
|
||||
model_properties: {
|
||||
metric_specifications: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'metricSpecifications',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'MetricSpecificationElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'MetricSpecification'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,18 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for Services
|
||||
#
|
||||
module Services
|
||||
B = "b"
|
||||
Q = "q"
|
||||
T = "t"
|
||||
F = "f"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,18 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for SignedResource
|
||||
#
|
||||
module SignedResource
|
||||
B = "b"
|
||||
C = "c"
|
||||
F = "f"
|
||||
S = "s"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,17 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for SignedResourceTypes
|
||||
#
|
||||
module SignedResourceTypes
|
||||
S = "s"
|
||||
C = "c"
|
||||
O = "o"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,157 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The SKU of the storage account.
|
||||
#
|
||||
class Sku
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [SkuName] Gets or sets the sku name. Required for account
|
||||
# creation; optional for update. Note that in older versions, sku name
|
||||
# was called accountType. Possible values include: 'Standard_LRS',
|
||||
# 'Standard_GRS', 'Standard_RAGRS', 'Standard_ZRS', 'Premium_LRS'
|
||||
attr_accessor :name
|
||||
|
||||
# @return [SkuTier] Gets the sku tier. This is based on the SKU name.
|
||||
# Possible values include: 'Standard', 'Premium'
|
||||
attr_accessor :tier
|
||||
|
||||
# @return [String] The type of the resource, usually it is
|
||||
# 'storageAccounts'.
|
||||
attr_accessor :resource_type
|
||||
|
||||
# @return [Kind] Indicates the type of storage account. Possible values
|
||||
# include: 'Storage', 'StorageV2', 'BlobStorage'
|
||||
attr_accessor :kind
|
||||
|
||||
# @return [Array<String>] The set of locations that the SKU is available.
|
||||
# This will be supported and registered Azure Geo Regions (e.g. West US,
|
||||
# East US, Southeast Asia, etc.).
|
||||
attr_accessor :locations
|
||||
|
||||
# @return [Array<SKUCapability>] The capability information in the
|
||||
# specified sku, including file encryption, network acls, change
|
||||
# notification, etc.
|
||||
attr_accessor :capabilities
|
||||
|
||||
# @return [Array<Restriction>] The restrictions because of which SKU
|
||||
# cannot be used. This is empty if there are no restrictions.
|
||||
attr_accessor :restrictions
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Sku class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SkuName'
|
||||
}
|
||||
},
|
||||
tier: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'tier',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'SkuTier'
|
||||
}
|
||||
},
|
||||
resource_type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'resourceType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'kind',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Kind'
|
||||
}
|
||||
},
|
||||
locations: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'locations',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
capabilities: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'capabilities',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SKUCapabilityElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SKUCapability'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
restrictions: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'restrictions',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'RestrictionElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Restriction'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,19 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for SkuName
|
||||
#
|
||||
module SkuName
|
||||
StandardLRS = "Standard_LRS"
|
||||
StandardGRS = "Standard_GRS"
|
||||
StandardRAGRS = "Standard_RAGRS"
|
||||
StandardZRS = "Standard_ZRS"
|
||||
PremiumLRS = "Premium_LRS"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,16 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for SkuTier
|
||||
#
|
||||
module SkuTier
|
||||
Standard = "Standard"
|
||||
Premium = "Premium"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,63 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The capability information in the specified sku, including file
|
||||
# encryption, network acls, change notification, etc.
|
||||
#
|
||||
class SKUCapability
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The name of capability, The capability information in
|
||||
# the specified sku, including file encryption, network acls, change
|
||||
# notification, etc.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] A string value to indicate states of given capability.
|
||||
# Possibly 'true' or 'false'.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for SKUCapability class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SKUCapability',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'SKUCapability',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,19 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for State
|
||||
#
|
||||
module State
|
||||
Provisioning = "provisioning"
|
||||
Deprovisioning = "deprovisioning"
|
||||
Succeeded = "succeeded"
|
||||
Failed = "failed"
|
||||
NetworkSourceDeleted = "networkSourceDeleted"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,326 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The storage account.
|
||||
#
|
||||
class StorageAccount < Resource
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Sku] Gets the SKU.
|
||||
attr_accessor :sku
|
||||
|
||||
# @return [Kind] Gets the Kind. Possible values include: 'Storage',
|
||||
# 'StorageV2', 'BlobStorage'
|
||||
attr_accessor :kind
|
||||
|
||||
# @return [Identity] The identity of the resource.
|
||||
attr_accessor :identity
|
||||
|
||||
# @return [ProvisioningState] Gets the status of the storage account at
|
||||
# the time the operation was called. Possible values include: 'Creating',
|
||||
# 'ResolvingDNS', 'Succeeded'
|
||||
attr_accessor :provisioning_state
|
||||
|
||||
# @return [Endpoints] Gets the URLs that are used to perform a retrieval
|
||||
# of a public blob, queue, or table object. Note that Standard_ZRS and
|
||||
# Premium_LRS accounts only return the blob endpoint.
|
||||
attr_accessor :primary_endpoints
|
||||
|
||||
# @return [String] Gets the location of the primary data center for the
|
||||
# storage account.
|
||||
attr_accessor :primary_location
|
||||
|
||||
# @return [AccountStatus] Gets the status indicating whether the primary
|
||||
# location of the storage account is available or unavailable. Possible
|
||||
# values include: 'available', 'unavailable'
|
||||
attr_accessor :status_of_primary
|
||||
|
||||
# @return [DateTime] Gets the timestamp of the most recent instance of a
|
||||
# failover to the secondary location. Only the most recent timestamp is
|
||||
# retained. This element is not returned if there has never been a
|
||||
# failover instance. Only available if the accountType is Standard_GRS or
|
||||
# Standard_RAGRS.
|
||||
attr_accessor :last_geo_failover_time
|
||||
|
||||
# @return [String] Gets the location of the geo-replicated secondary for
|
||||
# the storage account. Only available if the accountType is Standard_GRS
|
||||
# or Standard_RAGRS.
|
||||
attr_accessor :secondary_location
|
||||
|
||||
# @return [AccountStatus] Gets the status indicating whether the
|
||||
# secondary location of the storage account is available or unavailable.
|
||||
# Only available if the SKU name is Standard_GRS or Standard_RAGRS.
|
||||
# Possible values include: 'available', 'unavailable'
|
||||
attr_accessor :status_of_secondary
|
||||
|
||||
# @return [DateTime] Gets the creation date and time of the storage
|
||||
# account in UTC.
|
||||
attr_accessor :creation_time
|
||||
|
||||
# @return [CustomDomain] Gets the custom domain the user assigned to this
|
||||
# storage account.
|
||||
attr_accessor :custom_domain
|
||||
|
||||
# @return [Endpoints] 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 Standard_RAGRS.
|
||||
attr_accessor :secondary_endpoints
|
||||
|
||||
# @return [Encryption] Gets the encryption settings on the account. If
|
||||
# unspecified, the account is unencrypted.
|
||||
attr_accessor :encryption
|
||||
|
||||
# @return [AccessTier] Required for storage accounts where kind =
|
||||
# BlobStorage. The access tier used for billing. Possible values include:
|
||||
# 'Hot', 'Cool'
|
||||
attr_accessor :access_tier
|
||||
|
||||
# @return [Boolean] Allows https traffic only to storage service if sets
|
||||
# to true. Default value: false .
|
||||
attr_accessor :enable_https_traffic_only
|
||||
|
||||
# @return [NetworkRuleSet] Network rule set
|
||||
attr_accessor :network_rule_set
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccount class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccount',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccount',
|
||||
model_properties: {
|
||||
id: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'type',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
sku: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'kind',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Kind'
|
||||
}
|
||||
},
|
||||
identity: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'identity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Identity'
|
||||
}
|
||||
},
|
||||
provisioning_state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.provisioningState',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'ProvisioningState'
|
||||
}
|
||||
},
|
||||
primary_endpoints: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.primaryEndpoints',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Endpoints'
|
||||
}
|
||||
},
|
||||
primary_location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.primaryLocation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status_of_primary: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.statusOfPrimary',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'AccountStatus'
|
||||
}
|
||||
},
|
||||
last_geo_failover_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.lastGeoFailoverTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
secondary_location: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.secondaryLocation',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
status_of_secondary: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.statusOfSecondary',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'AccountStatus'
|
||||
}
|
||||
},
|
||||
creation_time: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.creationTime',
|
||||
type: {
|
||||
name: 'DateTime'
|
||||
}
|
||||
},
|
||||
custom_domain: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.customDomain',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CustomDomain'
|
||||
}
|
||||
},
|
||||
secondary_endpoints: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.secondaryEndpoints',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Endpoints'
|
||||
}
|
||||
},
|
||||
encryption: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Encryption'
|
||||
}
|
||||
},
|
||||
access_tier: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.accessTier',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'AccessTier'
|
||||
}
|
||||
},
|
||||
enable_https_traffic_only: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.supportsHttpsTrafficOnly',
|
||||
default_value: false,
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
network_rule_set: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'properties.networkAcls',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetworkRuleSet'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,62 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The parameters used to check the availabity of the storage account name.
|
||||
#
|
||||
class StorageAccountCheckNameAvailabilityParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The storage account name.
|
||||
attr_accessor :name
|
||||
|
||||
# @return [String] The type of resource,
|
||||
# Microsoft.Storage/storageAccounts. Default value:
|
||||
# 'Microsoft.Storage/storageAccounts' .
|
||||
attr_accessor :type
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountCheckNameAvailabilityParameters class as Ruby
|
||||
# Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountCheckNameAvailabilityParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountCheckNameAvailabilityParameters',
|
||||
model_properties: {
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
type: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
is_constant: true,
|
||||
serialized_name: 'type',
|
||||
default_value: 'Microsoft.Storage/storageAccounts',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,179 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The parameters used when creating a storage account.
|
||||
#
|
||||
class StorageAccountCreateParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Sku] Required. Gets or sets the sku name.
|
||||
attr_accessor :sku
|
||||
|
||||
# @return [Kind] Required. Indicates the type of storage account.
|
||||
# Possible values include: 'Storage', 'StorageV2', 'BlobStorage'
|
||||
attr_accessor :kind
|
||||
|
||||
# @return [String] Required. Gets or sets the location of the resource.
|
||||
# This will be one of the supported and registered Azure Geo Regions
|
||||
# (e.g. West US, East US, Southeast Asia, etc.). The geo region of a
|
||||
# resource cannot be changed once it is created, but if an identical geo
|
||||
# region is specified on update, the request will succeed.
|
||||
attr_accessor :location
|
||||
|
||||
# @return [Hash{String => String}] Gets or sets a list of key value pairs
|
||||
# that describe the resource. These tags can be used for viewing and
|
||||
# grouping this resource (across resource groups). A maximum of 15 tags
|
||||
# can be provided for a resource. Each tag must have a key with a length
|
||||
# no greater than 128 characters and a value with a length no greater
|
||||
# than 256 characters.
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [Identity] The identity of the resource.
|
||||
attr_accessor :identity
|
||||
|
||||
# @return [CustomDomain] 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 empty string for the custom domain name property.
|
||||
attr_accessor :custom_domain
|
||||
|
||||
# @return [Encryption] Provides the encryption settings on the account.
|
||||
# If left unspecified the account encryption settings will remain the
|
||||
# same. The default setting is unencrypted.
|
||||
attr_accessor :encryption
|
||||
|
||||
# @return [NetworkRuleSet] Network rule set
|
||||
attr_accessor :network_rule_set
|
||||
|
||||
# @return [AccessTier] Required for storage accounts where kind =
|
||||
# BlobStorage. The access tier used for billing. Possible values include:
|
||||
# 'Hot', 'Cool'
|
||||
attr_accessor :access_tier
|
||||
|
||||
# @return [Boolean] Allows https traffic only to storage service if sets
|
||||
# to true. Default value: false .
|
||||
attr_accessor :enable_https_traffic_only
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountCreateParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountCreateParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountCreateParameters',
|
||||
model_properties: {
|
||||
sku: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'kind',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Kind'
|
||||
}
|
||||
},
|
||||
location: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'location',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
identity: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'identity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Identity'
|
||||
}
|
||||
},
|
||||
custom_domain: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.customDomain',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CustomDomain'
|
||||
}
|
||||
},
|
||||
encryption: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Encryption'
|
||||
}
|
||||
},
|
||||
network_rule_set: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.networkAcls',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetworkRuleSet'
|
||||
}
|
||||
},
|
||||
access_tier: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.accessTier',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'AccessTier'
|
||||
}
|
||||
},
|
||||
enable_https_traffic_only: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.supportsHttpsTrafficOnly',
|
||||
default_value: false,
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,73 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# An access key for the storage account.
|
||||
#
|
||||
class StorageAccountKey
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Name of the key.
|
||||
attr_accessor :key_name
|
||||
|
||||
# @return [String] Base 64-encoded value of the key.
|
||||
attr_accessor :value
|
||||
|
||||
# @return [KeyPermission] Permissions for the key -- read-only or full
|
||||
# permissions. Possible values include: 'Read', 'Full'
|
||||
attr_accessor :permissions
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountKey class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountKey',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountKey',
|
||||
model_properties: {
|
||||
key_name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'keyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
permissions: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'permissions',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'KeyPermission'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The response from the ListKeys operation.
|
||||
#
|
||||
class StorageAccountListKeysResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<StorageAccountKey>] Gets the list of storage account
|
||||
# keys and their properties for the specified storage account.
|
||||
attr_accessor :keys
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountListKeysResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountListKeysResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountListKeysResult',
|
||||
model_properties: {
|
||||
keys: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'keys',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountKeyElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountKey'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The response from the List Storage Accounts operation.
|
||||
#
|
||||
class StorageAccountListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<StorageAccount>] Gets the list of storage accounts and
|
||||
# their properties.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccount'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,47 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The parameters used to regenerate the storage account key.
|
||||
#
|
||||
class StorageAccountRegenerateKeyParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] The name of storage keys that want to be regenerated,
|
||||
# possible vaules are key1, key2.
|
||||
attr_accessor :key_name
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountRegenerateKeyParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountRegenerateKeyParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountRegenerateKeyParameters',
|
||||
model_properties: {
|
||||
key_name: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'keyName',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,167 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The parameters that can be provided when updating the storage account
|
||||
# properties.
|
||||
#
|
||||
class StorageAccountUpdateParameters
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Sku] Gets or sets the SKU name. Note that the SKU name cannot
|
||||
# be updated to Standard_ZRS or Premium_LRS, nor can accounts of those
|
||||
# sku names be updated to any other value.
|
||||
attr_accessor :sku
|
||||
|
||||
# @return [Hash{String => String}] Gets or sets a list of key value pairs
|
||||
# that describe the resource. These tags can be used in viewing and
|
||||
# grouping this resource (across resource groups). A maximum of 15 tags
|
||||
# can be provided for a resource. Each tag must have a key no greater in
|
||||
# length than 128 characters and a value no greater in length than 256
|
||||
# characters.
|
||||
attr_accessor :tags
|
||||
|
||||
# @return [Identity] The identity of the resource.
|
||||
attr_accessor :identity
|
||||
|
||||
# @return [CustomDomain] Custom domain assigned to the storage account by
|
||||
# the user. 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 empty string for the custom domain name property.
|
||||
attr_accessor :custom_domain
|
||||
|
||||
# @return [Encryption] Provides the encryption settings on the account.
|
||||
# The default setting is unencrypted.
|
||||
attr_accessor :encryption
|
||||
|
||||
# @return [AccessTier] Required for storage accounts where kind =
|
||||
# BlobStorage. The access tier used for billing. Possible values include:
|
||||
# 'Hot', 'Cool'
|
||||
attr_accessor :access_tier
|
||||
|
||||
# @return [Boolean] Allows https traffic only to storage service if sets
|
||||
# to true. Default value: false .
|
||||
attr_accessor :enable_https_traffic_only
|
||||
|
||||
# @return [NetworkRuleSet] Network rule set
|
||||
attr_accessor :network_rule_set
|
||||
|
||||
# @return [Kind] Optional. Indicates the type of storage account.
|
||||
# Currently only StorageV2 value supported by server. Possible values
|
||||
# include: 'Storage', 'StorageV2', 'BlobStorage'
|
||||
attr_accessor :kind
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageAccountUpdateParameters class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageAccountUpdateParameters',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageAccountUpdateParameters',
|
||||
model_properties: {
|
||||
sku: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'sku',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku'
|
||||
}
|
||||
},
|
||||
tags: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'tags',
|
||||
type: {
|
||||
name: 'Dictionary',
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StringElementType',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
identity: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'identity',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Identity'
|
||||
}
|
||||
},
|
||||
custom_domain: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.customDomain',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'CustomDomain'
|
||||
}
|
||||
},
|
||||
encryption: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.encryption',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Encryption'
|
||||
}
|
||||
},
|
||||
access_tier: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.accessTier',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'AccessTier'
|
||||
}
|
||||
},
|
||||
enable_https_traffic_only: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.supportsHttpsTrafficOnly',
|
||||
default_value: false,
|
||||
type: {
|
||||
name: 'Boolean'
|
||||
}
|
||||
},
|
||||
network_rule_set: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'properties.networkAcls',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'NetworkRuleSet'
|
||||
}
|
||||
},
|
||||
kind: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'kind',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Kind'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,57 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The response from the List Storage SKUs operation.
|
||||
#
|
||||
class StorageSkuListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Sku>] Get the list result of storage SKUs and their
|
||||
# properties.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for StorageSkuListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'StorageSkuListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'StorageSkuListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'SkuElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Sku'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,89 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Describes Storage Resource Usage.
|
||||
#
|
||||
class Usage
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [UsageUnit] Gets the unit of measurement. Possible values
|
||||
# include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountsPerSecond',
|
||||
# 'BytesPerSecond'
|
||||
attr_accessor :unit
|
||||
|
||||
# @return [Integer] Gets the current count of the allocated resources in
|
||||
# the subscription.
|
||||
attr_accessor :current_value
|
||||
|
||||
# @return [Integer] Gets the maximum count of the resources that can be
|
||||
# allocated in the subscription.
|
||||
attr_accessor :limit
|
||||
|
||||
# @return [UsageName] Gets the name of the type of usage.
|
||||
attr_accessor :name
|
||||
|
||||
|
||||
#
|
||||
# Mapper for Usage class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'Usage',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Usage',
|
||||
model_properties: {
|
||||
unit: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'unit',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'UsageUnit'
|
||||
}
|
||||
},
|
||||
current_value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'currentValue',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
limit: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'limit',
|
||||
type: {
|
||||
name: 'Number'
|
||||
}
|
||||
},
|
||||
name: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'name',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'UsageName'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,56 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The response from the List Usages operation.
|
||||
#
|
||||
class UsageListResult
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [Array<Usage>] Gets or sets the list of Storage Resource
|
||||
# Usages.
|
||||
attr_accessor :value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for UsageListResult class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'UsageListResult',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'UsageListResult',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'Sequence',
|
||||
element: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'UsageElementType',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'Usage'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,59 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# The usage names that can be used; currently limited to StorageAccount.
|
||||
#
|
||||
class UsageName
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Gets a string describing the resource name.
|
||||
attr_accessor :value
|
||||
|
||||
# @return [String] Gets a localized string describing the resource name.
|
||||
attr_accessor :localized_value
|
||||
|
||||
|
||||
#
|
||||
# Mapper for UsageName class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'UsageName',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'UsageName',
|
||||
model_properties: {
|
||||
value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'value',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
localized_value: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
read_only: true,
|
||||
serialized_name: 'localizedValue',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,20 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Defines values for UsageUnit
|
||||
#
|
||||
module UsageUnit
|
||||
Count = "Count"
|
||||
Bytes = "Bytes"
|
||||
Seconds = "Seconds"
|
||||
Percent = "Percent"
|
||||
CountsPerSecond = "CountsPerSecond"
|
||||
BytesPerSecond = "BytesPerSecond"
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,75 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
module Models
|
||||
#
|
||||
# Virtual Network rule.
|
||||
#
|
||||
class VirtualNetworkRule
|
||||
|
||||
include MsRestAzure
|
||||
|
||||
# @return [String] Resource ID of a subnet, for example:
|
||||
# /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}/subnets/{subnetName}.
|
||||
attr_accessor :virtual_network_resource_id
|
||||
|
||||
# @return [Action] The action of virtual network rule. Possible values
|
||||
# include: 'Allow'. Default value: 'Allow' .
|
||||
attr_accessor :action
|
||||
|
||||
# @return [State] Gets the state of virtual network rule. Possible values
|
||||
# include: 'provisioning', 'deprovisioning', 'succeeded', 'failed',
|
||||
# 'networkSourceDeleted'
|
||||
attr_accessor :state
|
||||
|
||||
|
||||
#
|
||||
# Mapper for VirtualNetworkRule class as Ruby Hash.
|
||||
# This will be used for serialization/deserialization.
|
||||
#
|
||||
def self.mapper()
|
||||
{
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'VirtualNetworkRule',
|
||||
type: {
|
||||
name: 'Composite',
|
||||
class_name: 'VirtualNetworkRule',
|
||||
model_properties: {
|
||||
virtual_network_resource_id: {
|
||||
client_side_validation: true,
|
||||
required: true,
|
||||
serialized_name: 'id',
|
||||
type: {
|
||||
name: 'String'
|
||||
}
|
||||
},
|
||||
action: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'action',
|
||||
default_value: 'Allow',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'Action'
|
||||
}
|
||||
},
|
||||
state: {
|
||||
client_side_validation: true,
|
||||
required: false,
|
||||
serialized_name: 'state',
|
||||
type: {
|
||||
name: 'Enum',
|
||||
module: 'State'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure end
|
||||
module Azure::Storage end
|
||||
module Azure::Storage::Mgmt end
|
||||
module Azure::Storage::Mgmt::V2017_10_01 end
|
|
@ -0,0 +1,106 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
#
|
||||
# The Azure Storage Management API.
|
||||
#
|
||||
class Operations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Operations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [StorageManagementClient] reference to the StorageManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Lists all of the available Storage Rest API operations.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [OperationListResult] operation results.
|
||||
#
|
||||
def list(custom_headers = nil)
|
||||
response = list_async(custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Lists all of the available Storage Rest API operations.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(custom_headers = nil)
|
||||
list_async(custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Lists all of the available Storage Rest API operations.
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(custom_headers = nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'providers/Microsoft.Storage/operations'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -0,0 +1,111 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
#
|
||||
# The Azure Storage Management API.
|
||||
#
|
||||
class Skus
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the Skus class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [StorageManagementClient] reference to the StorageManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Lists the available SKUs supported by Microsoft.Storage for given
|
||||
# subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [StorageSkuListResult] operation results.
|
||||
#
|
||||
def list(custom_headers = nil)
|
||||
response = list_async(custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Lists the available SKUs supported by Microsoft.Storage for given
|
||||
# subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(custom_headers = nil)
|
||||
list_async(custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Lists the available SKUs supported by Microsoft.Storage for given
|
||||
# subscription.
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(custom_headers = nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/skus'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -0,0 +1,141 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
#
|
||||
# A service client - single point of access to the REST API.
|
||||
#
|
||||
class StorageManagementClient < MsRestAzure::AzureServiceClient
|
||||
include MsRestAzure
|
||||
include MsRestAzure::Serialization
|
||||
|
||||
# @return [String] the base URI of the service.
|
||||
attr_accessor :base_url
|
||||
|
||||
# @return Credentials needed for the client to connect to Azure.
|
||||
attr_reader :credentials
|
||||
|
||||
# @return [String] Gets subscription credentials which uniquely identify
|
||||
# the Microsoft Azure subscription. The subscription ID forms part of the
|
||||
# URI for every service call.
|
||||
attr_accessor :subscription_id
|
||||
|
||||
# @return [String] Client Api Version.
|
||||
attr_reader :api_version
|
||||
|
||||
# @return [String] Gets or sets the preferred language for the response.
|
||||
attr_accessor :accept_language
|
||||
|
||||
# @return [Integer] Gets or sets the retry timeout in seconds for Long
|
||||
# Running Operations. Default value is 30.
|
||||
attr_accessor :long_running_operation_retry_timeout
|
||||
|
||||
# @return [Boolean] When set to true a unique x-ms-client-request-id value
|
||||
# is generated and included in each request. Default is true.
|
||||
attr_accessor :generate_client_request_id
|
||||
|
||||
# @return [Operations] operations
|
||||
attr_reader :operations
|
||||
|
||||
# @return [Skus] skus
|
||||
attr_reader :skus
|
||||
|
||||
# @return [StorageAccounts] storage_accounts
|
||||
attr_reader :storage_accounts
|
||||
|
||||
# @return [UsageOperations] usage_operations
|
||||
attr_reader :usage_operations
|
||||
|
||||
#
|
||||
# Creates initializes a new instance of the StorageManagementClient class.
|
||||
# @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
||||
# @param base_url [String] the base URI of the service.
|
||||
# @param options [Array] filters to be applied to the HTTP requests.
|
||||
#
|
||||
def initialize(credentials = nil, base_url = nil, options = nil)
|
||||
super(credentials, options)
|
||||
@base_url = base_url || 'https://management.azure.com'
|
||||
|
||||
fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
|
||||
@credentials = credentials
|
||||
|
||||
@operations = Operations.new(self)
|
||||
@skus = Skus.new(self)
|
||||
@storage_accounts = StorageAccounts.new(self)
|
||||
@usage_operations = UsageOperations.new(self)
|
||||
@api_version = '2017-10-01'
|
||||
@accept_language = 'en-US'
|
||||
@long_running_operation_retry_timeout = 30
|
||||
@generate_client_request_id = true
|
||||
add_telemetry
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the body of the response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Hash{String=>String}] containing the body of the response.
|
||||
# Example:
|
||||
#
|
||||
# request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
|
||||
# path = "/path"
|
||||
# options = {
|
||||
# body: request_content,
|
||||
# query_params: {'api-version' => '2016-02-01'}
|
||||
# }
|
||||
# result = @client.make_request(:put, path, options)
|
||||
#
|
||||
def make_request(method, path, options = {})
|
||||
result = make_request_with_http_info(method, path, options)
|
||||
result.body unless result.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request and returns the operation response.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
|
||||
#
|
||||
def make_request_with_http_info(method, path, options = {})
|
||||
result = make_request_async(method, path, options).value!
|
||||
result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
|
||||
result
|
||||
end
|
||||
|
||||
#
|
||||
# Makes a request asynchronously.
|
||||
# @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
|
||||
# @param path [String] the path, relative to {base_url}.
|
||||
# @param options [Hash{String=>String}] specifying any request options like :body.
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def make_request_async(method, path, options = {})
|
||||
fail ArgumentError, 'method is nil' if method.nil?
|
||||
fail ArgumentError, 'path is nil' if path.nil?
|
||||
|
||||
request_url = options[:base_url] || @base_url
|
||||
|
||||
request_headers = @request_headers
|
||||
request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
|
||||
options.merge!({headers: request_headers.merge(options[:headers] || {})})
|
||||
options.merge!({credentials: @credentials}) unless @credentials.nil?
|
||||
|
||||
super(request_url, method, path, options)
|
||||
end
|
||||
|
||||
|
||||
private
|
||||
#
|
||||
# Adds telemetry information.
|
||||
#
|
||||
def add_telemetry
|
||||
sdk_information = 'azure_mgmt_storage'
|
||||
sdk_information = "#{sdk_information}/0.15.2"
|
||||
add_user_agent_information(sdk_information)
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,111 @@
|
|||
# encoding: utf-8
|
||||
# Code generated by Microsoft (R) AutoRest Code Generator.
|
||||
# Changes may cause incorrect behavior and will be lost if the code is
|
||||
# regenerated.
|
||||
|
||||
module Azure::Storage::Mgmt::V2017_10_01
|
||||
#
|
||||
# The Azure Storage Management API.
|
||||
#
|
||||
class UsageOperations
|
||||
include MsRestAzure
|
||||
|
||||
#
|
||||
# Creates and initializes a new instance of the UsageOperations class.
|
||||
# @param client service class for accessing basic functionality.
|
||||
#
|
||||
def initialize(client)
|
||||
@client = client
|
||||
end
|
||||
|
||||
# @return [StorageManagementClient] reference to the StorageManagementClient
|
||||
attr_reader :client
|
||||
|
||||
#
|
||||
# Gets the current usage count and the limit for the resources under the
|
||||
# subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [UsageListResult] operation results.
|
||||
#
|
||||
def list(custom_headers = nil)
|
||||
response = list_async(custom_headers).value!
|
||||
response.body unless response.nil?
|
||||
end
|
||||
|
||||
#
|
||||
# Gets the current usage count and the limit for the resources under the
|
||||
# subscription.
|
||||
#
|
||||
# @param custom_headers [Hash{String => String}] A hash of custom headers that
|
||||
# will be added to the HTTP request.
|
||||
#
|
||||
# @return [MsRestAzure::AzureOperationResponse] HTTP response information.
|
||||
#
|
||||
def list_with_http_info(custom_headers = nil)
|
||||
list_async(custom_headers).value!
|
||||
end
|
||||
|
||||
#
|
||||
# Gets the current usage count and the limit for the resources under the
|
||||
# subscription.
|
||||
#
|
||||
# @param [Hash{String => String}] A hash of custom headers that will be added
|
||||
# to the HTTP request.
|
||||
#
|
||||
# @return [Concurrent::Promise] Promise object which holds the HTTP response.
|
||||
#
|
||||
def list_async(custom_headers = nil)
|
||||
fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
|
||||
fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
|
||||
|
||||
|
||||
request_headers = {}
|
||||
|
||||
# Set Headers
|
||||
request_headers['x-ms-client-request-id'] = SecureRandom.uuid
|
||||
request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
|
||||
path_template = 'subscriptions/{subscriptionId}/providers/Microsoft.Storage/usages'
|
||||
|
||||
request_url = @base_url || @client.base_url
|
||||
|
||||
options = {
|
||||
middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
|
||||
path_params: {'subscriptionId' => @client.subscription_id},
|
||||
query_params: {'api-version' => @client.api_version},
|
||||
headers: request_headers.merge(custom_headers || {}),
|
||||
base_url: request_url
|
||||
}
|
||||
promise = @client.make_request_async(:get, path_template, options)
|
||||
|
||||
promise = promise.then do |result|
|
||||
http_response = result.response
|
||||
status_code = http_response.status
|
||||
response_content = http_response.body
|
||||
unless status_code == 200
|
||||
error_model = JSON.load(response_content)
|
||||
fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
|
||||
end
|
||||
|
||||
result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
|
||||
# Deserialize Response
|
||||
if status_code == 200
|
||||
begin
|
||||
parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
|
||||
result_mapper = Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult.mapper()
|
||||
result.body = @client.deserialize(result_mapper, parsed_response)
|
||||
rescue Exception => e
|
||||
fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
|
||||
end
|
||||
end
|
||||
|
||||
result
|
||||
end
|
||||
|
||||
promise.execute
|
||||
end
|
||||
|
||||
end
|
||||
end
|
|
@ -7,5 +7,6 @@ require '2015-06-15/generated/azure_mgmt_storage'
|
|||
require '2016-01-01/generated/azure_mgmt_storage'
|
||||
require '2016-12-01/generated/azure_mgmt_storage'
|
||||
require '2017-06-01/generated/azure_mgmt_storage'
|
||||
require '2017-10-01/generated/azure_mgmt_storage'
|
||||
require 'profiles/latest/storage_latest_profile_client'
|
||||
require 'profiles/v2017_03_09/storage_v2017_03_09_profile_client'
|
||||
|
|
|
@ -5,69 +5,69 @@
|
|||
require 'azure_mgmt_storage'
|
||||
|
||||
module Azure::Storage::Profiles::Latest::Mgmt
|
||||
Operations = Azure::Storage::Mgmt::V2017_06_01::Operations
|
||||
Skus = Azure::Storage::Mgmt::V2017_06_01::Skus
|
||||
StorageAccounts = Azure::Storage::Mgmt::V2017_06_01::StorageAccounts
|
||||
UsageOperations = Azure::Storage::Mgmt::V2017_06_01::UsageOperations
|
||||
Operations = Azure::Storage::Mgmt::V2017_10_01::Operations
|
||||
Skus = Azure::Storage::Mgmt::V2017_10_01::Skus
|
||||
StorageAccounts = Azure::Storage::Mgmt::V2017_10_01::StorageAccounts
|
||||
UsageOperations = Azure::Storage::Mgmt::V2017_10_01::UsageOperations
|
||||
|
||||
module Models
|
||||
IPRule = Azure::Storage::Mgmt::V2017_06_01::Models::IPRule
|
||||
NetworkRuleSet = Azure::Storage::Mgmt::V2017_06_01::Models::NetworkRuleSet
|
||||
Dimension = Azure::Storage::Mgmt::V2017_06_01::Models::Dimension
|
||||
Identity = Azure::Storage::Mgmt::V2017_06_01::Models::Identity
|
||||
ServiceSpecification = Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSpecification
|
||||
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCreateParameters
|
||||
OperationListResult = Azure::Storage::Mgmt::V2017_06_01::Models::OperationListResult
|
||||
Endpoints = Azure::Storage::Mgmt::V2017_06_01::Models::Endpoints
|
||||
SKUCapability = Azure::Storage::Mgmt::V2017_06_01::Models::SKUCapability
|
||||
Restriction = Azure::Storage::Mgmt::V2017_06_01::Models::Restriction
|
||||
StorageSkuListResult = Azure::Storage::Mgmt::V2017_06_01::Models::StorageSkuListResult
|
||||
StorageAccountKey = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountKey
|
||||
CustomDomain = Azure::Storage::Mgmt::V2017_06_01::Models::CustomDomain
|
||||
StorageAccountListResult = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListResult
|
||||
EncryptionServices = Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionServices
|
||||
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListKeysResult
|
||||
Encryption = Azure::Storage::Mgmt::V2017_06_01::Models::Encryption
|
||||
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountRegenerateKeyParameters
|
||||
OperationDisplay = Azure::Storage::Mgmt::V2017_06_01::Models::OperationDisplay
|
||||
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountUpdateParameters
|
||||
Operation = Azure::Storage::Mgmt::V2017_06_01::Models::Operation
|
||||
UsageName = Azure::Storage::Mgmt::V2017_06_01::Models::UsageName
|
||||
Sku = Azure::Storage::Mgmt::V2017_06_01::Models::Sku
|
||||
Usage = Azure::Storage::Mgmt::V2017_06_01::Models::Usage
|
||||
EncryptionService = Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionService
|
||||
UsageListResult = Azure::Storage::Mgmt::V2017_06_01::Models::UsageListResult
|
||||
VirtualNetworkRule = Azure::Storage::Mgmt::V2017_06_01::Models::VirtualNetworkRule
|
||||
Resource = Azure::Storage::Mgmt::V2017_06_01::Models::Resource
|
||||
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
AccountSasParameters = Azure::Storage::Mgmt::V2017_06_01::Models::AccountSasParameters
|
||||
KeyVaultProperties = Azure::Storage::Mgmt::V2017_06_01::Models::KeyVaultProperties
|
||||
ListAccountSasResponse = Azure::Storage::Mgmt::V2017_06_01::Models::ListAccountSasResponse
|
||||
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2017_06_01::Models::CheckNameAvailabilityResult
|
||||
ServiceSasParameters = Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSasParameters
|
||||
MetricSpecification = Azure::Storage::Mgmt::V2017_06_01::Models::MetricSpecification
|
||||
ListServiceSasResponse = Azure::Storage::Mgmt::V2017_06_01::Models::ListServiceSasResponse
|
||||
StorageAccount = Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccount
|
||||
ReasonCode = Azure::Storage::Mgmt::V2017_06_01::Models::ReasonCode
|
||||
SkuName = Azure::Storage::Mgmt::V2017_06_01::Models::SkuName
|
||||
SkuTier = Azure::Storage::Mgmt::V2017_06_01::Models::SkuTier
|
||||
Kind = Azure::Storage::Mgmt::V2017_06_01::Models::Kind
|
||||
Reason = Azure::Storage::Mgmt::V2017_06_01::Models::Reason
|
||||
KeySource = Azure::Storage::Mgmt::V2017_06_01::Models::KeySource
|
||||
Action = Azure::Storage::Mgmt::V2017_06_01::Models::Action
|
||||
State = Azure::Storage::Mgmt::V2017_06_01::Models::State
|
||||
Bypass = Azure::Storage::Mgmt::V2017_06_01::Models::Bypass
|
||||
DefaultAction = Azure::Storage::Mgmt::V2017_06_01::Models::DefaultAction
|
||||
AccessTier = Azure::Storage::Mgmt::V2017_06_01::Models::AccessTier
|
||||
ProvisioningState = Azure::Storage::Mgmt::V2017_06_01::Models::ProvisioningState
|
||||
AccountStatus = Azure::Storage::Mgmt::V2017_06_01::Models::AccountStatus
|
||||
KeyPermission = Azure::Storage::Mgmt::V2017_06_01::Models::KeyPermission
|
||||
UsageUnit = Azure::Storage::Mgmt::V2017_06_01::Models::UsageUnit
|
||||
Services = Azure::Storage::Mgmt::V2017_06_01::Models::Services
|
||||
SignedResourceTypes = Azure::Storage::Mgmt::V2017_06_01::Models::SignedResourceTypes
|
||||
Permissions = Azure::Storage::Mgmt::V2017_06_01::Models::Permissions
|
||||
HttpProtocol = Azure::Storage::Mgmt::V2017_06_01::Models::HttpProtocol
|
||||
SignedResource = Azure::Storage::Mgmt::V2017_06_01::Models::SignedResource
|
||||
IPRule = Azure::Storage::Mgmt::V2017_10_01::Models::IPRule
|
||||
NetworkRuleSet = Azure::Storage::Mgmt::V2017_10_01::Models::NetworkRuleSet
|
||||
Dimension = Azure::Storage::Mgmt::V2017_10_01::Models::Dimension
|
||||
Identity = Azure::Storage::Mgmt::V2017_10_01::Models::Identity
|
||||
ServiceSpecification = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSpecification
|
||||
StorageAccountCreateParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters
|
||||
OperationListResult = Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult
|
||||
Endpoints = Azure::Storage::Mgmt::V2017_10_01::Models::Endpoints
|
||||
SKUCapability = Azure::Storage::Mgmt::V2017_10_01::Models::SKUCapability
|
||||
Restriction = Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
|
||||
StorageSkuListResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult
|
||||
StorageAccountKey = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountKey
|
||||
CustomDomain = Azure::Storage::Mgmt::V2017_10_01::Models::CustomDomain
|
||||
StorageAccountListResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListResult
|
||||
EncryptionServices = Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionServices
|
||||
StorageAccountListKeysResult = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListKeysResult
|
||||
Encryption = Azure::Storage::Mgmt::V2017_10_01::Models::Encryption
|
||||
StorageAccountRegenerateKeyParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters
|
||||
OperationDisplay = Azure::Storage::Mgmt::V2017_10_01::Models::OperationDisplay
|
||||
StorageAccountUpdateParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters
|
||||
Operation = Azure::Storage::Mgmt::V2017_10_01::Models::Operation
|
||||
UsageName = Azure::Storage::Mgmt::V2017_10_01::Models::UsageName
|
||||
Sku = Azure::Storage::Mgmt::V2017_10_01::Models::Sku
|
||||
Usage = Azure::Storage::Mgmt::V2017_10_01::Models::Usage
|
||||
EncryptionService = Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService
|
||||
UsageListResult = Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult
|
||||
VirtualNetworkRule = Azure::Storage::Mgmt::V2017_10_01::Models::VirtualNetworkRule
|
||||
Resource = Azure::Storage::Mgmt::V2017_10_01::Models::Resource
|
||||
StorageAccountCheckNameAvailabilityParameters = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
AccountSasParameters = Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters
|
||||
KeyVaultProperties = Azure::Storage::Mgmt::V2017_10_01::Models::KeyVaultProperties
|
||||
ListAccountSasResponse = Azure::Storage::Mgmt::V2017_10_01::Models::ListAccountSasResponse
|
||||
CheckNameAvailabilityResult = Azure::Storage::Mgmt::V2017_10_01::Models::CheckNameAvailabilityResult
|
||||
ServiceSasParameters = Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters
|
||||
MetricSpecification = Azure::Storage::Mgmt::V2017_10_01::Models::MetricSpecification
|
||||
ListServiceSasResponse = Azure::Storage::Mgmt::V2017_10_01::Models::ListServiceSasResponse
|
||||
StorageAccount = Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccount
|
||||
ReasonCode = Azure::Storage::Mgmt::V2017_10_01::Models::ReasonCode
|
||||
SkuName = Azure::Storage::Mgmt::V2017_10_01::Models::SkuName
|
||||
SkuTier = Azure::Storage::Mgmt::V2017_10_01::Models::SkuTier
|
||||
Kind = Azure::Storage::Mgmt::V2017_10_01::Models::Kind
|
||||
Reason = Azure::Storage::Mgmt::V2017_10_01::Models::Reason
|
||||
KeySource = Azure::Storage::Mgmt::V2017_10_01::Models::KeySource
|
||||
Action = Azure::Storage::Mgmt::V2017_10_01::Models::Action
|
||||
State = Azure::Storage::Mgmt::V2017_10_01::Models::State
|
||||
Bypass = Azure::Storage::Mgmt::V2017_10_01::Models::Bypass
|
||||
DefaultAction = Azure::Storage::Mgmt::V2017_10_01::Models::DefaultAction
|
||||
AccessTier = Azure::Storage::Mgmt::V2017_10_01::Models::AccessTier
|
||||
ProvisioningState = Azure::Storage::Mgmt::V2017_10_01::Models::ProvisioningState
|
||||
AccountStatus = Azure::Storage::Mgmt::V2017_10_01::Models::AccountStatus
|
||||
KeyPermission = Azure::Storage::Mgmt::V2017_10_01::Models::KeyPermission
|
||||
UsageUnit = Azure::Storage::Mgmt::V2017_10_01::Models::UsageUnit
|
||||
Services = Azure::Storage::Mgmt::V2017_10_01::Models::Services
|
||||
SignedResourceTypes = Azure::Storage::Mgmt::V2017_10_01::Models::SignedResourceTypes
|
||||
Permissions = Azure::Storage::Mgmt::V2017_10_01::Models::Permissions
|
||||
HttpProtocol = Azure::Storage::Mgmt::V2017_10_01::Models::HttpProtocol
|
||||
SignedResource = Azure::Storage::Mgmt::V2017_10_01::Models::SignedResource
|
||||
end
|
||||
|
||||
#
|
||||
|
@ -87,7 +87,7 @@ module Azure::Storage::Profiles::Latest::Mgmt
|
|||
|
||||
@configurable, @base_url, @options = self, nil, nil
|
||||
|
||||
client_0 = Azure::Storage::Mgmt::V2017_06_01::StorageManagementClient.new(configurable.credentials, base_url, options)
|
||||
client_0 = Azure::Storage::Mgmt::V2017_10_01::StorageManagementClient.new(configurable.credentials, base_url, options)
|
||||
if(client_0.respond_to?(:subscription_id))
|
||||
client_0.subscription_id = configurable.subscription_id
|
||||
end
|
||||
|
@ -101,175 +101,175 @@ module Azure::Storage::Profiles::Latest::Mgmt
|
|||
|
||||
class ModelClasses
|
||||
def iprule
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::IPRule
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::IPRule
|
||||
end
|
||||
def network_rule_set
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::NetworkRuleSet
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::NetworkRuleSet
|
||||
end
|
||||
def dimension
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Dimension
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Dimension
|
||||
end
|
||||
def identity
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Identity
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Identity
|
||||
end
|
||||
def service_specification
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSpecification
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSpecification
|
||||
end
|
||||
def storage_account_create_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCreateParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCreateParameters
|
||||
end
|
||||
def operation_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::OperationListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::OperationListResult
|
||||
end
|
||||
def endpoints
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Endpoints
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Endpoints
|
||||
end
|
||||
def skucapability
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SKUCapability
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SKUCapability
|
||||
end
|
||||
def restriction
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Restriction
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Restriction
|
||||
end
|
||||
def storage_sku_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageSkuListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageSkuListResult
|
||||
end
|
||||
def storage_account_key
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountKey
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountKey
|
||||
end
|
||||
def custom_domain
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::CustomDomain
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::CustomDomain
|
||||
end
|
||||
def storage_account_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListResult
|
||||
end
|
||||
def encryption_services
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionServices
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionServices
|
||||
end
|
||||
def storage_account_list_keys_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountListKeysResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountListKeysResult
|
||||
end
|
||||
def encryption
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Encryption
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Encryption
|
||||
end
|
||||
def storage_account_regenerate_key_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountRegenerateKeyParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountRegenerateKeyParameters
|
||||
end
|
||||
def operation_display
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::OperationDisplay
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::OperationDisplay
|
||||
end
|
||||
def storage_account_update_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountUpdateParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountUpdateParameters
|
||||
end
|
||||
def operation
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Operation
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Operation
|
||||
end
|
||||
def usage_name
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::UsageName
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::UsageName
|
||||
end
|
||||
def sku
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Sku
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Sku
|
||||
end
|
||||
def usage
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Usage
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Usage
|
||||
end
|
||||
def encryption_service
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::EncryptionService
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::EncryptionService
|
||||
end
|
||||
def usage_list_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::UsageListResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::UsageListResult
|
||||
end
|
||||
def virtual_network_rule
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::VirtualNetworkRule
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::VirtualNetworkRule
|
||||
end
|
||||
def resource
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Resource
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Resource
|
||||
end
|
||||
def storage_account_check_name_availability_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccountCheckNameAvailabilityParameters
|
||||
end
|
||||
def account_sas_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::AccountSasParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::AccountSasParameters
|
||||
end
|
||||
def key_vault_properties
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::KeyVaultProperties
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::KeyVaultProperties
|
||||
end
|
||||
def list_account_sas_response
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ListAccountSasResponse
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ListAccountSasResponse
|
||||
end
|
||||
def check_name_availability_result
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::CheckNameAvailabilityResult
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::CheckNameAvailabilityResult
|
||||
end
|
||||
def service_sas_parameters
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ServiceSasParameters
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ServiceSasParameters
|
||||
end
|
||||
def metric_specification
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::MetricSpecification
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::MetricSpecification
|
||||
end
|
||||
def list_service_sas_response
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ListServiceSasResponse
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ListServiceSasResponse
|
||||
end
|
||||
def storage_account
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::StorageAccount
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::StorageAccount
|
||||
end
|
||||
def reason_code
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ReasonCode
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ReasonCode
|
||||
end
|
||||
def sku_name
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SkuName
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SkuName
|
||||
end
|
||||
def sku_tier
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SkuTier
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SkuTier
|
||||
end
|
||||
def kind
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Kind
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Kind
|
||||
end
|
||||
def reason
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Reason
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Reason
|
||||
end
|
||||
def key_source
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::KeySource
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::KeySource
|
||||
end
|
||||
def action
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Action
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Action
|
||||
end
|
||||
def state
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::State
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::State
|
||||
end
|
||||
def bypass
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Bypass
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Bypass
|
||||
end
|
||||
def default_action
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::DefaultAction
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::DefaultAction
|
||||
end
|
||||
def access_tier
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::AccessTier
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::AccessTier
|
||||
end
|
||||
def provisioning_state
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::ProvisioningState
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::ProvisioningState
|
||||
end
|
||||
def account_status
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::AccountStatus
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::AccountStatus
|
||||
end
|
||||
def key_permission
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::KeyPermission
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::KeyPermission
|
||||
end
|
||||
def usage_unit
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::UsageUnit
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::UsageUnit
|
||||
end
|
||||
def services
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Services
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Services
|
||||
end
|
||||
def signed_resource_types
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SignedResourceTypes
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SignedResourceTypes
|
||||
end
|
||||
def permissions
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::Permissions
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::Permissions
|
||||
end
|
||||
def http_protocol
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::HttpProtocol
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::HttpProtocol
|
||||
end
|
||||
def signed_resource
|
||||
Azure::Storage::Mgmt::V2017_06_01::Models::SignedResource
|
||||
Azure::Storage::Mgmt::V2017_10_01::Models::SignedResource
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,5 +3,5 @@
|
|||
# Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
|
||||
module Azure::Storage::Mgmt
|
||||
VERSION = '0.15.1'
|
||||
VERSION = '0.15.2'
|
||||
end
|
||||
|
|
|
@ -204,7 +204,7 @@
|
|||
"2017-06-01": ["*"]
|
||||
},
|
||||
"Microsoft.Storage": {
|
||||
"2017-06-01": ["*"]
|
||||
"2017-10-01": ["*"]
|
||||
},
|
||||
"Microsoft.StreamAnalytics": {
|
||||
"2016-03-01": ["*"]
|
||||
|
@ -948,7 +948,7 @@
|
|||
"name": "Latest",
|
||||
"resourceTypes": {
|
||||
"Microsoft.Storage" : {
|
||||
"2017-06-01": ["*"]
|
||||
"2017-10-01": ["*"]
|
||||
}
|
||||
},
|
||||
"output_dir": "management/azure_mgmt_storage/lib/profiles",
|
||||
|
|
|
@ -1303,6 +1303,18 @@
|
|||
"generated_relative_base_directory": "2017-06-01",
|
||||
"build_dir": "management/azure_mgmt_stor_simple8000_series/lib/2017-06-01"
|
||||
},
|
||||
"azure_mgmt_storage_2017_10_01": {
|
||||
"markdown": "specification/storage/resource-manager/readme.md",
|
||||
"autorest_options": {
|
||||
"namespace": "Azure::Storage::Mgmt::V2017_10_01",
|
||||
"package-version": "0.15.2",
|
||||
"package-name": "azure_mgmt_storage",
|
||||
"tag": "package-2017-10"
|
||||
},
|
||||
"output_dir": "management/azure_mgmt_storage/lib/2017-10-01",
|
||||
"generated_relative_base_directory": "2017-10-01",
|
||||
"build_dir": "management/azure_mgmt_storage/lib/2017-10-01"
|
||||
},
|
||||
"azure_mgmt_storage_2017_06_01": {
|
||||
"markdown": "specification/storage/resource-manager/readme.md",
|
||||
"autorest_options": {
|
||||
|
|
Загрузка…
Ссылка в новой задаче