Class: Azure::MediaServices::Mgmt::V2015_10_01::Models::StorageAccount

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2015-10-01/generated/azure_mgmt_media_services/models/storage_account.rb

Overview

The properties of a storage account associated with this resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idString

relies on tables and queues as well as blobs, so the primary storage account must be a Standard Storage account (either Microsoft.ClassicStorage or Microsoft.Storage). Blob only storage accounts can be added as secondary storage accounts (isPrimary false).

Returns:

  • (String)

    The id of the storage account resource. Media Services



20
21
22
# File 'lib/2015-10-01/generated/azure_mgmt_media_services/models/storage_account.rb', line 20

def id
  @id
end

#is_primaryBoolean

account for the Media Service resource. Blob only storage must set this to false.

Returns:

  • (Boolean)

    Is this storage account resource the primary storage



25
26
27
# File 'lib/2015-10-01/generated/azure_mgmt_media_services/models/storage_account.rb', line 25

def is_primary
  @is_primary
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/2015-10-01/generated/azure_mgmt_media_services/models/storage_account.rb', line 32

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: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        is_primary: {
          client_side_validation: true,
          required: true,
          serialized_name: 'isPrimary',
          type: {
            name: 'Boolean'
          }
        }
      }
    }
  }
end