Class: Google::Apis::SecuritycenterV1beta2::Reference

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

Returns a new instance of Reference.



10738
10739
10740
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10738

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

Instance Attribute Details

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


10731
10732
10733
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10731

def source
  @source
end

#uriString

Corresponds to the JSON property uri

Returns:

  • (String)


10736
10737
10738
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10736

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10743
10744
10745
10746
# File 'lib/google/apis/securitycenter_v1beta2/classes.rb', line 10743

def update!(**args)
  @source = args[:source] if args.key?(:source)
  @uri = args[:uri] if args.key?(:uri)
end