class Azure::BatchAI::Mgmt::V2018_05_01::Models::EnvironmentVariableWithSecretValue

An environment variable with secret value definition.

Attributes

name[RW]

@return [String] Name. The name of the environment variable to store the secret value.

value[RW]

@return [String] Value. The value of the environment variable. This value will never be reported back by Batch AI.

value_secret_reference[RW]

@return [KeyVaultSecretReference] KeyVault secret reference. KeyVault store and secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.

Private Class Methods

mapper() click to toggle source

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

# File lib/2018-05-01/generated/azure_mgmt_batchai/models/environment_variable_with_secret_value.rb, line 33
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'EnvironmentVariableWithSecretValue',
    type: {
      name: 'Composite',
      class_name: 'EnvironmentVariableWithSecretValue',
      model_properties: {
        name: {
          client_side_validation: true,
          required: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'value',
          type: {
            name: 'String'
          }
        },
        value_secret_reference: {
          client_side_validation: true,
          required: false,
          serialized_name: 'valueSecretReference',
          type: {
            name: 'Composite',
            class_name: 'KeyVaultSecretReference'
          }
        }
      }
    }
  }
end