Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaProjectServiceTerms

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

Overview

Metadata about the terms of service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaProjectServiceTerms

Returns a new instance of GoogleCloudDiscoveryengineV1betaProjectServiceTerms.



10323
10324
10325
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10323

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

Instance Attribute Details

#accept_timeString

The last time when the project agreed to the terms of service. Corresponds to the JSON property acceptTime

Returns:

  • (String)


10295
10296
10297
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10295

def accept_time
  @accept_time
end

#decline_timeString

The last time when the project declined or revoked the agreement to terms of service. Corresponds to the JSON property declineTime

Returns:

  • (String)


10301
10302
10303
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10301

def decline_time
  @decline_time
end

#idString

The unique identifier of this terms of service. Available terms: * GA_DATA_USE_TERMS: Terms for data use. When using this as id, the acceptable version to provide is 2022-11-23. Corresponds to the JSON property id

Returns:

  • (String)


10309
10310
10311
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10309

def id
  @id
end

#stateString

Whether the project has accepted/rejected the service terms or it is still pending. Corresponds to the JSON property state

Returns:

  • (String)


10315
10316
10317
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10315

def state
  @state
end

#versionString

The version string of the terms of service. For acceptable values, see the comments for id above. Corresponds to the JSON property version

Returns:

  • (String)


10321
10322
10323
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10321

def version
  @version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10328
10329
10330
10331
10332
10333
10334
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 10328

def update!(**args)
  @accept_time = args[:accept_time] if args.key?(:accept_time)
  @decline_time = args[:decline_time] if args.key?(:decline_time)
  @id = args[:id] if args.key?(:id)
  @state = args[:state] if args.key?(:state)
  @version = args[:version] if args.key?(:version)
end