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.



7820
7821
7822
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7820

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


7803
7804
7805
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7803

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


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

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


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

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


7818
7819
7820
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7818

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7825
7826
7827
7828
7829
7830
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 7825

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