Class: Google::Apis::ResourceviewsV1beta2::SetServiceRequest
- Inherits:
-
Object
- Object
- Google::Apis::ResourceviewsV1beta2::SetServiceRequest
- 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
-
#endpoints ⇒ Array<Google::Apis::ResourceviewsV1beta2::ServiceEndpoint>
The service information to be updated.
-
#fingerprint ⇒ String
Fingerprint of the service information; a hash of the contents.
-
#resource_name ⇒ String
The name of the resource if user wants to update the service information of the resource.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SetServiceRequest
constructor
A new instance of SetServiceRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#endpoints ⇒ Array<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 |
#fingerprint ⇒ String
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
639 640 641 |
# File 'generated/google/apis/resourceviews_v1beta2/classes.rb', line 639 def fingerprint @fingerprint end |
#resource_name ⇒ String
The name of the resource if user wants to update the service information of
the resource.
Corresponds to the JSON property resourceName
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 |