Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 18 additions & 13 deletions management/azure_mgmt_storage/lib/generated/azure_mgmt_storage.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -21,54 +21,59 @@

module Azure::ARM::Storage
autoload :Operations, 'generated/azure_mgmt_storage/operations.rb'
autoload :SKUs, 'generated/azure_mgmt_storage/skus.rb'
autoload :StorageAccounts, 'generated/azure_mgmt_storage/storage_accounts.rb'
autoload :UsageOperations, 'generated/azure_mgmt_storage/usage_operations.rb'
autoload :StorageManagementClient, 'generated/azure_mgmt_storage/storage_management_client.rb'

module Models
autoload :IPRule, 'generated/azure_mgmt_storage/models/iprule.rb'
autoload :NetworkRuleSet, 'generated/azure_mgmt_storage/models/network_rule_set.rb'
autoload :Dimension, 'generated/azure_mgmt_storage/models/dimension.rb'
autoload :Identity, 'generated/azure_mgmt_storage/models/identity.rb'
autoload :OperationDisplay, 'generated/azure_mgmt_storage/models/operation_display.rb'
autoload :ServiceSpecification, 'generated/azure_mgmt_storage/models/service_specification.rb'
autoload :StorageAccountCreateParameters, 'generated/azure_mgmt_storage/models/storage_account_create_parameters.rb'
autoload :MetricSpecification, 'generated/azure_mgmt_storage/models/metric_specification.rb'
autoload :Endpoints, 'generated/azure_mgmt_storage/models/endpoints.rb'
autoload :Operation, 'generated/azure_mgmt_storage/models/operation.rb'
autoload :OperationListResult, 'generated/azure_mgmt_storage/models/operation_list_result.rb'
autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_storage/models/check_name_availability_result.rb'
autoload :Endpoints, 'generated/azure_mgmt_storage/models/endpoints.rb'
autoload :SKUCapability, 'generated/azure_mgmt_storage/models/skucapability.rb'
autoload :Restriction, 'generated/azure_mgmt_storage/models/restriction.rb'
autoload :StorageSkuListResult, 'generated/azure_mgmt_storage/models/storage_sku_list_result.rb'
autoload :StorageAccountKey, 'generated/azure_mgmt_storage/models/storage_account_key.rb'
autoload :CustomDomain, 'generated/azure_mgmt_storage/models/custom_domain.rb'
autoload :StorageAccountListResult, 'generated/azure_mgmt_storage/models/storage_account_list_result.rb'
autoload :EncryptionServices, 'generated/azure_mgmt_storage/models/encryption_services.rb'
autoload :StorageAccountListKeysResult, 'generated/azure_mgmt_storage/models/storage_account_list_keys_result.rb'
autoload :Encryption, 'generated/azure_mgmt_storage/models/encryption.rb'
autoload :StorageAccountRegenerateKeyParameters, 'generated/azure_mgmt_storage/models/storage_account_regenerate_key_parameters.rb'
autoload :IPRule, 'generated/azure_mgmt_storage/models/iprule.rb'
autoload :OperationDisplay, 'generated/azure_mgmt_storage/models/operation_display.rb'
autoload :StorageAccountUpdateParameters, 'generated/azure_mgmt_storage/models/storage_account_update_parameters.rb'
autoload :Dimension, 'generated/azure_mgmt_storage/models/dimension.rb'
autoload :Operation, 'generated/azure_mgmt_storage/models/operation.rb'
autoload :UsageName, 'generated/azure_mgmt_storage/models/usage_name.rb'
autoload :StorageAccountCheckNameAvailabilityParameters, 'generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
autoload :Sku, 'generated/azure_mgmt_storage/models/sku.rb'
autoload :Usage, 'generated/azure_mgmt_storage/models/usage.rb'
autoload :EncryptionService, 'generated/azure_mgmt_storage/models/encryption_service.rb'
autoload :UsageListResult, 'generated/azure_mgmt_storage/models/usage_list_result.rb'
autoload :VirtualNetworkRule, 'generated/azure_mgmt_storage/models/virtual_network_rule.rb'
autoload :ServiceSpecification, 'generated/azure_mgmt_storage/models/service_specification.rb'
autoload :StorageAccountCheckNameAvailabilityParameters, 'generated/azure_mgmt_storage/models/storage_account_check_name_availability_parameters.rb'
autoload :AccountSasParameters, 'generated/azure_mgmt_storage/models/account_sas_parameters.rb'
autoload :KeyVaultProperties, 'generated/azure_mgmt_storage/models/key_vault_properties.rb'
autoload :ListAccountSasResponse, 'generated/azure_mgmt_storage/models/list_account_sas_response.rb'
autoload :Sku, 'generated/azure_mgmt_storage/models/sku.rb'
autoload :CheckNameAvailabilityResult, 'generated/azure_mgmt_storage/models/check_name_availability_result.rb'
autoload :ServiceSasParameters, 'generated/azure_mgmt_storage/models/service_sas_parameters.rb'
autoload :StorageNetworkAcls, 'generated/azure_mgmt_storage/models/storage_network_acls.rb'
autoload :MetricSpecification, 'generated/azure_mgmt_storage/models/metric_specification.rb'
autoload :ListServiceSasResponse, 'generated/azure_mgmt_storage/models/list_service_sas_response.rb'
autoload :StorageAccount, 'generated/azure_mgmt_storage/models/storage_account.rb'
autoload :Reason, 'generated/azure_mgmt_storage/models/reason.rb'
autoload :ReasonCode, 'generated/azure_mgmt_storage/models/reason_code.rb'
autoload :SkuName, 'generated/azure_mgmt_storage/models/sku_name.rb'
autoload :SkuTier, 'generated/azure_mgmt_storage/models/sku_tier.rb'
autoload :Kind, 'generated/azure_mgmt_storage/models/kind.rb'
autoload :Reason, 'generated/azure_mgmt_storage/models/reason.rb'
autoload :KeySource, 'generated/azure_mgmt_storage/models/key_source.rb'
autoload :Action, 'generated/azure_mgmt_storage/models/action.rb'
autoload :State, 'generated/azure_mgmt_storage/models/state.rb'
autoload :Bypass, 'generated/azure_mgmt_storage/models/bypass.rb'
autoload :DefaultAction, 'generated/azure_mgmt_storage/models/default_action.rb'
autoload :AccessTier, 'generated/azure_mgmt_storage/models/access_tier.rb'
autoload :Kind, 'generated/azure_mgmt_storage/models/kind.rb'
autoload :ProvisioningState, 'generated/azure_mgmt_storage/models/provisioning_state.rb'
autoload :AccountStatus, 'generated/azure_mgmt_storage/models/account_status.rb'
autoload :KeyPermission, 'generated/azure_mgmt_storage/models/key_permission.rb'
Expand Down
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
module Azure::ARM::Storage
module Models
#
# Dimensions.
# Dimension of blobs, possiblly be blob type or access tier.
#
class Dimension

Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ class MetricSpecification
# @return [String] Unit could be Bytes or Count.
attr_accessor :unit

# @return [Array<Dimension>] Dimensions.
# @return [Array<Dimension>] Dimensions of blobs, including blob type and
# access tier.
attr_accessor :dimensions

# @return [String] Aggregation type could be Average.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
module Azure::ARM::Storage
module Models
#
# Network ACL
# Network rule set
#
class StorageNetworkAcls
class NetworkRuleSet

include MsRestAzure

Expand All @@ -20,7 +20,7 @@ class StorageNetworkAcls
# 'Logging', 'Metrics', 'AzureServices'. Default value: 'AzureServices' .
attr_accessor :bypass

# @return [Array<VirtualNetworkRule>] Sets the virtual network ACL rules
# @return [Array<VirtualNetworkRule>] Sets the virtual network rules
attr_accessor :virtual_network_rules

# @return [Array<IPRule>] Sets the IP ACL rules
Expand All @@ -33,16 +33,16 @@ class StorageNetworkAcls


#
# Mapper for StorageNetworkAcls class as Ruby Hash.
# Mapper for NetworkRuleSet class as Ruby Hash.
# This will be used for serialization/deserialization.
#
def self.mapper()
{
required: false,
serialized_name: 'StorageNetworkAcls',
serialized_name: 'NetworkRuleSet',
type: {
name: 'Composite',
class_name: 'StorageNetworkAcls',
class_name: 'NetworkRuleSet',
model_properties: {
bypass: {
required: false,
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Storage
module Models
#
# Defines values for ReasonCode
#
module ReasonCode
QuotaId = "QuotaId"
NotAvailableForSubscription = "NotAvailableForSubscription"
end
end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Storage
module Models
#
# The restriction because of which SKU cannot be used.
#
class Restriction

include MsRestAzure

include MsRest::JSONable
# @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()
{
required: false,
serialized_name: 'Restriction',
type: {
name: 'Composite',
class_name: 'Restriction',
model_properties: {
type: {
required: false,
read_only: true,
serialized_name: 'type',
type: {
name: 'String'
}
},
values: {
required: false,
read_only: true,
serialized_name: 'values',
type: {
name: 'Sequence',
element: {
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
reason_code: {
required: false,
serialized_name: 'reasonCode',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end
85 changes: 85 additions & 0 deletions management/azure_mgmt_storage/lib/generated/azure_mgmt_storage/models/sku.rb
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,28 @@ class Sku
# 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', '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.
Expand Down Expand Up @@ -52,6 +74,69 @@ def self.mapper()
name: 'Enum',
module: 'SkuTier'
}
},
resource_type: {
required: false,
read_only: true,
serialized_name: 'resourceType',
type: {
name: 'String'
}
},
kind: {
required: false,
read_only: true,
serialized_name: 'kind',
type: {
name: 'Enum',
module: 'Kind'
}
},
locations: {
required: false,
read_only: true,
serialized_name: 'locations',
type: {
name: 'Sequence',
element: {
required: false,
serialized_name: 'StringElementType',
type: {
name: 'String'
}
}
}
},
capabilities: {
required: false,
read_only: true,
serialized_name: 'capabilities',
type: {
name: 'Sequence',
element: {
required: false,
serialized_name: 'SKUCapabilityElementType',
type: {
name: 'Composite',
class_name: 'SKUCapability'
}
}
}
},
restrictions: {
required: false,
serialized_name: 'restrictions',
type: {
name: 'Sequence',
element: {
required: false,
serialized_name: 'RestrictionElementType',
type: {
name: 'Composite',
class_name: 'Restriction'
}
}
}
}
}
}
Expand Down
Empty file.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# encoding: utf-8
# Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.

module Azure::ARM::Storage
module Models
#
# The capability information in the specified sku, including file
# encryption, network acls, change notification, etc.
#
class SKUCapability

include MsRestAzure

include MsRest::JSONable
# @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()
{
required: false,
serialized_name: 'SKUCapability',
type: {
name: 'Composite',
class_name: 'SKUCapability',
model_properties: {
name: {
required: false,
read_only: true,
serialized_name: 'name',
type: {
name: 'String'
}
},
value: {
required: false,
read_only: true,
serialized_name: 'value',
type: {
name: 'String'
}
}
}
}
}
end
end
end
end
Loading