Class: Azure::Storage::Mgmt::V2018_11_01::Models::StorageAccountCreateParameters

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb

Overview

The parameters used when creating a storage account.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#access_tierAccessTier

BlobStorage. The access tier used for billing. Possible values include: ‘Hot’, ‘Cool’

Returns:

  • (AccessTier)

    Required for storage accounts where kind =



58
59
60
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 58

def access_tier
  @access_tier
end

#custom_domainCustomDomain

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.

Returns:

  • (CustomDomain)

    User domain assigned to the storage account.



45
46
47
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 45

def custom_domain
  @custom_domain
end

#enable_azure_files_aad_integrationBoolean

to true.

Returns:

  • (Boolean)

    Enables Azure Files AAD Integration for SMB if sets



62
63
64
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 62

def enable_azure_files_aad_integration
  @enable_azure_files_aad_integration
end

#enable_https_traffic_onlyBoolean

to true.

Returns:

  • (Boolean)

    Allows https traffic only to storage service if sets



66
67
68
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 66

def enable_https_traffic_only
  @enable_https_traffic_only
end

#encryptionEncryption

If left unspecified the account encryption settings will remain the same. The default setting is unencrypted.

Returns:

  • (Encryption)

    Provides the encryption settings on the account.



50
51
52
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 50

def encryption
  @encryption
end

#identityIdentity

Returns The identity of the resource.

Returns:

  • (Identity)

    The identity of the resource.



39
40
41
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 39

def identity
  @identity
end

#is_hns_enabledBoolean

true.

Returns:

  • (Boolean)

    Account HierarchicalNamespace enabled if sets to



70
71
72
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 70

def is_hns_enabled
  @is_hns_enabled
end

#kindKind

Possible values include: ‘Storage’, ‘StorageV2’, ‘BlobStorage’, ‘FileStorage’, ‘BlockBlobStorage’

Returns:

  • (Kind)

    Required. Indicates the type of storage account.



21
22
23
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 21

def kind
  @kind
end

#locationString

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.

Returns:

  • (String)

    Required. Gets or sets the location of the resource.



28
29
30
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 28

def location
  @location
end

#network_rule_setNetworkRuleSet

Returns Network rule set.

Returns:



53
54
55
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 53

def network_rule_set
  @network_rule_set
end

#skuSku

Returns Required. Gets or sets the SKU name.

Returns:

  • (Sku)

    Required. Gets or sets the SKU name.



16
17
18
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 16

def sku
  @sku
end

#tagsHash{String => String}

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.

Returns:

  • (Hash{String => String})

    Gets or sets a list of key value pairs



36
37
38
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 36

def tags
  @tags
end

Class Method Details

.mapperObject

Mapper for StorageAccountCreateParameters class as Ruby Hash. This will be used for serialization/deserialization.



77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
# File 'lib/2018-11-01/generated/azure_mgmt_storage/models/storage_account_create_parameters.rb', line 77

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_azure_files_aad_integration: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.azureFilesAadIntegration',
          type: {
            name: 'Boolean'
          }
        },
        enable_https_traffic_only: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.supportsHttpsTrafficOnly',
          type: {
            name: 'Boolean'
          }
        },
        is_hns_enabled: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.isHnsEnabled',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end