Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Secret

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) ⇒ GoogleCloudSecuritycenterV2Secret

Returns a new instance of GoogleCloudSecuritycenterV2Secret.



9145
9146
9147
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9145

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

Instance Attribute Details

#environment_variableGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretEnvironmentVariable

Corresponds to the JSON property environmentVariable



9128
9129
9130
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9128

def environment_variable
  @environment_variable
end

#file_pathGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretFilePath

Corresponds to the JSON property filePath



9133
9134
9135
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9133

def file_path
  @file_path
end

#statusGoogle::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2SecretStatus

Corresponds to the JSON property status



9138
9139
9140
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9138

def status
  @status
end

#typeString

Corresponds to the JSON property type

Returns:

  • (String)


9143
9144
9145
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9143

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9150
9151
9152
9153
9154
9155
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 9150

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