Class: Google::Apis::SecuritycenterV1beta2::Secret

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/securitycenter_v1beta2/classes.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb,
lib/google/apis/securitycenter_v1beta2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Secret

Returns a new instance of Secret.



10903
10904
10905
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10903

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#environment_variableGoogle::Apis::SecuritycenterV1beta2::SecretEnvironmentVariable

Corresponds to the JSON property environmentVariable



10886
10887
10888
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10886

def environment_variable
  @environment_variable
end

#file_pathGoogle::Apis::SecuritycenterV1beta2::SecretFilePath

Corresponds to the JSON property filePath



10891
10892
10893
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10891

def file_path
  @file_path
end

#statusGoogle::Apis::SecuritycenterV1beta2::SecretStatus

Corresponds to the JSON property status



10896
10897
10898
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10896

def status
  @status
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


10901
10902
10903
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10901

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10908
10909
10910
10911
10912
10913
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10908

def update!(**args)
  @environment_variable = args[:environment_variable] if args.key?(:environment_variable)
  @file_path = args[:file_path] if args.key?(:file_path)
  @status = args[:status] if args.key?(:status)
  @type = args[:type] if args.key?(:type)
end