Class: Google::Apis::SecuritycenterV1beta1::GoogleCloudSecuritycenterV2Job

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2Job

Returns a new instance of GoogleCloudSecuritycenterV2Job.



8001
8002
8003
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8001

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

Instance Attribute Details

#error_codeFixnum

Corresponds to the JSON property errorCode

Returns:

  • (Fixnum)


7984
7985
7986
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7984

def error_code
  @error_code
end

#locationString

Corresponds to the JSON property location

Returns:

  • (String)


7989
7990
7991
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7989

def location
  @location
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


7994
7995
7996
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7994

def name
  @name
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


7999
8000
8001
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 7999

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8006
8007
8008
8009
8010
8011
# File 'lib/google/apis/securitycenter_v1beta1/classes.rb', line 8006

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