Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest

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

Overview

Request for ReportConsentChange method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest

Returns a new instance of GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest.



8454
8455
8456
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8454

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

Instance Attribute Details

Required. Whether customer decides to accept or decline service term. At this moment, only accept action is supported. Corresponds to the JSON property consentChangeAction

Returns:

  • (String)


8439
8440
8441
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8439

def consent_change_action
  @consent_change_action
end

#service_term_idString

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

Returns:

  • (String)


8447
8448
8449
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8447

def service_term_id
  @service_term_id
end

#service_term_versionString

Required. The version string of the terms of service to update. Corresponds to the JSON property serviceTermVersion

Returns:

  • (String)


8452
8453
8454
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8452

def service_term_version
  @service_term_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8459
8460
8461
8462
8463
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 8459

def update!(**args)
  @consent_change_action = args[:consent_change_action] if args.key?(:consent_change_action)
  @service_term_id = args[:service_term_id] if args.key?(:service_term_id)
  @service_term_version = args[:service_term_version] if args.key?(:service_term_version)
end