Class: Google::Apis::ResourceviewsV1beta2::SetServiceRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetServiceRequest

Returns a new instance of SetServiceRequest



647
648
649
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 647

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

Instance Attribute Details

#endpointsArray<Google::Apis::ResourceviewsV1beta2::ServiceEndpoint>

The service information to be updated. Corresponds to the JSON property endpoints



633
634
635
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 633

def endpoints
  @endpoints
end

#fingerprintString

Fingerprint of the service information; a hash of the contents. This field is used for optimistic locking when updating the service entries. Corresponds to the JSON property fingerprint

Returns:

  • (String)


639
640
641
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 639

def fingerprint
  @fingerprint
end

#resource_nameString

The name of the resource if user wants to update the service information of the resource. Corresponds to the JSON property resourceName

Returns:

  • (String)


645
646
647
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 645

def resource_name
  @resource_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



652
653
654
655
656
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 652

def update!(**args)
  @endpoints = args[:endpoints] if args.key?(:endpoints)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @resource_name = args[:resource_name] if args.key?(:resource_name)
end