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.



10118
10119
10120
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10118

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)


10103
10104
10105
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10103

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)


10111
10112
10113
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10111

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)


10116
10117
10118
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10116

def service_term_version
  @service_term_version
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10123
10124
10125
10126
10127
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10123

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