Class: Azure::BatchAI::Mgmt::V2017_09_01_preview::Models::AzureStorageCredentialsInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb

Overview

Credentials to access Azure File Share.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#account_keyString

accountKeySecretReference must be specified.

Returns:

  • (String)

    Storage account key. One of accountKey or



17
18
19
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb', line 17

def 
  @account_key
end

#account_key_secret_referenceKeyVaultSecretReference

account key, which is a Key Vault Secret. Users can store their secrets in Azure KeyVault and pass it to the Batch AI Service to integrate with KeyVault. One of accountKey or accountKeySecretReference must be specified.

Returns:



24
25
26
# File 'lib/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb', line 24

def 
  @account_key_secret_reference
end

Class Method Details

.mapperObject

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



31
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/2017-09-01-preview/generated/azure_mgmt_batchai/models/azure_storage_credentials_info.rb', line 31

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'AzureStorageCredentialsInfo',
    type: {
      name: 'Composite',
      class_name: 'AzureStorageCredentialsInfo',
      model_properties: {
        account_key: {
          client_side_validation: true,
          required: false,
          serialized_name: 'accountKey',
          type: {
            name: 'String'
          }
        },
        account_key_secret_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'accountKeySecretReference',
          type: {
            name: 'Composite',
            class_name: 'KeyVaultSecretReference'
          }
        }
      }
    }
  }
end