Class: Google::Apis::SecuritycenterV1beta2::GoogleCloudSecuritycenterV2Job

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

Returns a new instance of GoogleCloudSecuritycenterV2Job.



8211
8212
8213
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8211

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


8194
8195
8196
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8194

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


8199
8200
8201
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8199

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


8204
8205
8206
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8204

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


8209
8210
8211
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8209

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8216
8217
8218
8219
8220
8221
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 8216

def update!(**args)
  @error_code = args[:error_code] if args.key?(:error_code)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @state = args[:state] if args.key?(:state)
end