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.



7808
7809
7810
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7808

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


7791
7792
7793
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7791

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


7796
7797
7798
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7796

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7801
7802
7803
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7801

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


7806
7807
7808
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7806

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7813
7814
7815
7816
7817
7818
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7813

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