Class: Azure::ContainerInstance::Mgmt::V2019_12_01::Models::AzureFileVolume

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb

Overview

The properties of the Azure File volume. Azure File shares are mounted as volumes.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#read_onlyBoolean

mounted as a volume is read-only.

Returns:

  • (Boolean)

    The flag indicating whether the Azure File shared



22
23
24
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb', line 22

def read_only
  @read_only
end

#share_nameString

volume.

Returns:

  • (String)

    The name of the Azure File share to be mounted as a



18
19
20
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb', line 18

def share_name
  @share_name
end

#storage_account_keyString

Azure File share.

Returns:

  • (String)

    The storage account access key used to access the



30
31
32
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb', line 30

def 
  @storage_account_key
end

#storage_account_nameString

Azure File share.

Returns:

  • (String)

    The name of the storage account that contains the



26
27
28
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb', line 26

def 
  @storage_account_name
end

Class Method Details

.mapperObject

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



37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# File 'lib/2019-12-01/generated/azure_mgmt_container_instance/models/azure_file_volume.rb', line 37

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureFileVolume',
    type: {
      name: 'Composite',
      class_name: 'AzureFileVolume',
      model_properties: {
        share_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'shareName',
          type: {
            name: 'String'
          }
        },
        read_only: {
          client_side_validation: true,
          required: false,
          serialized_name: 'readOnly',
          type: {
            name: 'Boolean'
          }
        },
        storage_account_name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'storageAccountName',
          type: {
            name: 'String'
          }
        },
        storage_account_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'storageAccountKey',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end