class Azure::BatchAI::Mgmt::V2018_03_01::Models::EnvironmentVariableWithSecretValue

A collection of environment variables with secret values to set.

Attributes

name[RW]

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

value[RW]

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

value_secret_reference[RW]

@return [KeyVaultSecretReference] Specifies the location of the Azure KeyVault secret which will be used as the environment variable value. Specifies KeyVault Store and Secret which contains the value for the environment variable. One of value or valueSecretReference must be provided.

Public Class Methods

mapper() click to toggle source

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

# File lib/2018-03-01/generated/azure_mgmt_batchai/models/environment_variable_with_secret_value.rb, line 35
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