Class: Google::Apis::ServiceusageV1beta1::TermsOfService

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

Overview

TermsOfService captures the metadata about a given terms of service

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TermsOfService

Returns a new instance of TermsOfService.



4858
4859
4860
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 4858

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

Instance Attribute Details

#titleString

Title of the terms of service. Corresponds to the JSON property title

Returns:

  • (String)


4851
4852
4853
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 4851

def title
  @title
end

#uriString

URL/URI of the terms of service. Corresponds to the JSON property uri

Returns:

  • (String)


4856
4857
4858
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 4856

def uri
  @uri
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4863
4864
4865
4866
# File 'lib/google/apis/serviceusage_v1beta1/classes.rb', line 4863

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