Class: Google::Apis::SecuritycenterV1::Secret

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Secret

Returns a new instance of Secret.



12466
12467
12468
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12466

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

Instance Attribute Details

#environment_variableGoogle::Apis::SecuritycenterV1::SecretEnvironmentVariable

Corresponds to the JSON property environmentVariable



12449
12450
12451
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12449

def environment_variable
  @environment_variable
end

#file_pathGoogle::Apis::SecuritycenterV1::SecretFilePath

Corresponds to the JSON property filePath



12454
12455
12456
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12454

def file_path
  @file_path
end

#statusGoogle::Apis::SecuritycenterV1::SecretStatus

Corresponds to the JSON property status



12459
12460
12461
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12459

def status
  @status
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


12464
12465
12466
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12464

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12471
12472
12473
12474
12475
12476
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 12471

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