Class: Google::Cloud::Batch::V1::Environment

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/batch/v1/task.rb

Overview

An Environment describes a collection of environment variables to set when executing Tasks.

Defined Under Namespace

Classes: KMSEnvMap, SecretVariablesEntry, VariablesEntry

Instance Attribute Summary collapse

Instance Attribute Details

#encrypted_variables::Google::Cloud::Batch::V1::Environment::KMSEnvMap

Returns An encrypted JSON dictionary where the key/value pairs correspond to environment variable names and their values.

Returns:



419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 419

class Environment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key_name
  #   @return [::String]
  #     The name of the KMS key that will be used to decrypt the cipher text.
  # @!attribute [rw] cipher_text
  #   @return [::String]
  #     The value of the cipherText response from the `encrypt` method.
  class KMSEnvMap
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class VariablesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SecretVariablesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#secret_variables::Google::Protobuf::Map{::String => ::String}

Returns A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    A map of environment variable names to Secret Manager secret names. The VM will access the named secrets to set the value of each environment variable.



419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 419

class Environment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key_name
  #   @return [::String]
  #     The name of the KMS key that will be used to decrypt the cipher text.
  # @!attribute [rw] cipher_text
  #   @return [::String]
  #     The value of the cipherText response from the `encrypt` method.
  class KMSEnvMap
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class VariablesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SecretVariablesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#variables::Google::Protobuf::Map{::String => ::String}

Returns A map of environment variable names to values.

Returns:

  • (::Google::Protobuf::Map{::String => ::String})

    A map of environment variable names to values.



419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
# File 'proto_docs/google/cloud/batch/v1/task.rb', line 419

class Environment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # @!attribute [rw] key_name
  #   @return [::String]
  #     The name of the KMS key that will be used to decrypt the cipher text.
  # @!attribute [rw] cipher_text
  #   @return [::String]
  #     The value of the cipherText response from the `encrypt` method.
  class KMSEnvMap
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class VariablesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # @!attribute [rw] key
  #   @return [::String]
  # @!attribute [rw] value
  #   @return [::String]
  class SecretVariablesEntry
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end