google-api-client 0.32.1 → 0.33.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +40 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +5 -2
- data/generated/google/apis/accessapproval_v1beta1/service.rb +3 -6
- data/generated/google/apis/admin_directory_v1.rb +4 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +4 -3
- data/generated/google/apis/admin_reports_v1.rb +2 -2
- data/generated/google/apis/admin_reports_v1/classes.rb +87 -44
- data/generated/google/apis/admin_reports_v1/service.rb +306 -63
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +6 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +1 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/service.rb +10 -6
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/appengine_v1beta/service.rb +10 -6
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +10 -18
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryconnection_v1beta1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/classes.rb +65 -36
- data/generated/google/apis/cloudbilling_v1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +5 -3
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +7 -3
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +7 -0
- data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +1 -0
- data/generated/google/apis/cloudfunctions_v1beta2/service.rb +10 -4
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/service.rb +3 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +23 -220
- data/generated/google/apis/content_v2/representations.rb +0 -115
- data/generated/google/apis/content_v2/service.rb +0 -160
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +57 -18
- data/generated/google/apis/content_v2_1/representations.rb +3 -0
- data/generated/google/apis/dataflow_v1b3.rb +1 -1
- data/generated/google/apis/dataflow_v1b3/classes.rb +6 -9
- data/generated/google/apis/dataflow_v1b3/representations.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1.rb +1 -1
- data/generated/google/apis/datafusion_v1beta1/classes.rb +156 -46
- data/generated/google/apis/datafusion_v1beta1/representations.rb +33 -0
- data/generated/google/apis/datafusion_v1beta1/service.rb +10 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +280 -0
- data/generated/google/apis/dialogflow_v2/representations.rb +115 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +280 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +115 -0
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +2 -2
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +2 -2
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +12 -0
- data/generated/google/apis/logging_v2/representations.rb +2 -0
- data/generated/google/apis/logging_v2/service.rb +10 -5
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +15 -1
- data/generated/google/apis/monitoring_v3/representations.rb +1 -0
- data/generated/google/apis/policytroubleshooter_v1beta.rb +1 -1
- data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +5 -4
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/service.rb +3 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +24 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +4 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +24 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +4 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +24 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +4 -0
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +2 -2
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +2 -2
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +63 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +30 -0
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +33 -7
- data/generated/google/apis/servicemanagement_v1/representations.rb +24 -0
- data/generated/google/apis/servicemanagement_v1/service.rb +31 -17
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +55 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +29 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +55 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +29 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +389 -0
- data/generated/google/apis/sheets_v4/representations.rb +79 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/version.rb +1 -1
- metadata +10 -21
- data/generated/google/apis/urlshortener_v1.rb +0 -34
- data/generated/google/apis/urlshortener_v1/classes.rb +0 -246
- data/generated/google/apis/urlshortener_v1/representations.rb +0 -121
- data/generated/google/apis/urlshortener_v1/service.rb +0 -169
@@ -230,6 +230,13 @@ module Google
|
|
230
230
|
# @param [String] resource
|
231
231
|
# REQUIRED: The resource for which the policy is being requested.
|
232
232
|
# See the operation documentation for the appropriate value for this field.
|
233
|
+
# @param [Fixnum] options_requested_policy_version
|
234
|
+
# Optional. The policy format version to be returned.
|
235
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
236
|
+
# rejected.
|
237
|
+
# Requests for policies with any conditional bindings must specify version 3.
|
238
|
+
# Policies without any conditional bindings may specify any valid value or
|
239
|
+
# leave the field unset.
|
233
240
|
# @param [String] fields
|
234
241
|
# Selector specifying which fields to include in a partial response.
|
235
242
|
# @param [String] quota_user
|
@@ -247,11 +254,12 @@ module Google
|
|
247
254
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
248
255
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
249
256
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
250
|
-
def get_project_location_instance_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
257
|
+
def get_project_location_instance_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
251
258
|
command = make_simple_command(:get, 'v1beta1/{+resource}:getIamPolicy', options)
|
252
259
|
command.response_representation = Google::Apis::DatafusionV1beta1::Policy::Representation
|
253
260
|
command.response_class = Google::Apis::DatafusionV1beta1::Policy
|
254
261
|
command.params['resource'] = resource unless resource.nil?
|
262
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
255
263
|
command.query['fields'] = fields unless fields.nil?
|
256
264
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
257
265
|
execute_or_queue_command(command, &block)
|
@@ -382,6 +390,7 @@ module Google
|
|
382
390
|
|
383
391
|
# Sets the access control policy on the specified resource. Replaces any
|
384
392
|
# existing policy.
|
393
|
+
# Can return Public Errors: NOT_FOUND, INVALID_ARGUMENT and PERMISSION_DENIED
|
385
394
|
# @param [String] resource
|
386
395
|
# REQUIRED: The resource for which the policy is being specified.
|
387
396
|
# See the operation documentation for the appropriate value for this field.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/dialogflow/
|
27
27
|
module DialogflowV2
|
28
28
|
VERSION = 'V2'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20191005'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -130,6 +130,60 @@ module Google
|
|
130
130
|
end
|
131
131
|
end
|
132
132
|
|
133
|
+
# Represents article answer.
|
134
|
+
class GoogleCloudDialogflowV2ArticleAnswer
|
135
|
+
include Google::Apis::Core::Hashable
|
136
|
+
|
137
|
+
# The name of answer record, in the format of
|
138
|
+
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
|
139
|
+
# Corresponds to the JSON property `answerRecord`
|
140
|
+
# @return [String]
|
141
|
+
attr_accessor :answer_record
|
142
|
+
|
143
|
+
# Article match confidence.
|
144
|
+
# The system's confidence score that this article is a good match for this
|
145
|
+
# converstation, as a value from 0.0 (completely uncertain) to 1.0
|
146
|
+
# (completely certain).
|
147
|
+
# Corresponds to the JSON property `confidence`
|
148
|
+
# @return [Float]
|
149
|
+
attr_accessor :confidence
|
150
|
+
|
151
|
+
# A map that contains metadata about the answer and the
|
152
|
+
# document from which it originates.
|
153
|
+
# Corresponds to the JSON property `metadata`
|
154
|
+
# @return [Hash<String,String>]
|
155
|
+
attr_accessor :metadata
|
156
|
+
|
157
|
+
# Article snippets.
|
158
|
+
# Corresponds to the JSON property `snippets`
|
159
|
+
# @return [Array<String>]
|
160
|
+
attr_accessor :snippets
|
161
|
+
|
162
|
+
# The article title.
|
163
|
+
# Corresponds to the JSON property `title`
|
164
|
+
# @return [String]
|
165
|
+
attr_accessor :title
|
166
|
+
|
167
|
+
# The article URI.
|
168
|
+
# Corresponds to the JSON property `uri`
|
169
|
+
# @return [String]
|
170
|
+
attr_accessor :uri
|
171
|
+
|
172
|
+
def initialize(**args)
|
173
|
+
update!(**args)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Update properties of this object
|
177
|
+
def update!(**args)
|
178
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
179
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
180
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
181
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
182
|
+
@title = args[:title] if args.key?(:title)
|
183
|
+
@uri = args[:uri] if args.key?(:uri)
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
133
187
|
# The request message for EntityTypes.BatchCreateEntities.
|
134
188
|
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
|
135
189
|
include Google::Apis::Core::Hashable
|
@@ -738,6 +792,101 @@ module Google
|
|
738
792
|
end
|
739
793
|
end
|
740
794
|
|
795
|
+
# Represents answer from "frequently asked questions".
|
796
|
+
class GoogleCloudDialogflowV2FaqAnswer
|
797
|
+
include Google::Apis::Core::Hashable
|
798
|
+
|
799
|
+
# The piece of text from the `source` knowledge base document.
|
800
|
+
# Corresponds to the JSON property `answer`
|
801
|
+
# @return [String]
|
802
|
+
attr_accessor :answer
|
803
|
+
|
804
|
+
# The name of answer record, in the format of
|
805
|
+
# "projects/<Project ID>/answerRecords/<Answer Record ID>"
|
806
|
+
# Corresponds to the JSON property `answerRecord`
|
807
|
+
# @return [String]
|
808
|
+
attr_accessor :answer_record
|
809
|
+
|
810
|
+
# The system's confidence score that this Knowledge answer is a good match
|
811
|
+
# for this conversational query, range from 0.0 (completely uncertain)
|
812
|
+
# to 1.0 (completely certain).
|
813
|
+
# Corresponds to the JSON property `confidence`
|
814
|
+
# @return [Float]
|
815
|
+
attr_accessor :confidence
|
816
|
+
|
817
|
+
# A map that contains metadata about the answer and the
|
818
|
+
# document from which it originates.
|
819
|
+
# Corresponds to the JSON property `metadata`
|
820
|
+
# @return [Hash<String,String>]
|
821
|
+
attr_accessor :metadata
|
822
|
+
|
823
|
+
# The corresponding FAQ question.
|
824
|
+
# Corresponds to the JSON property `question`
|
825
|
+
# @return [String]
|
826
|
+
attr_accessor :question
|
827
|
+
|
828
|
+
# Indicates which Knowledge Document this answer was extracted
|
829
|
+
# from.
|
830
|
+
# Format: `projects/<Project ID>/agent/knowledgeBases/<Knowledge Base
|
831
|
+
# ID>/documents/<Document ID>`.
|
832
|
+
# Corresponds to the JSON property `source`
|
833
|
+
# @return [String]
|
834
|
+
attr_accessor :source
|
835
|
+
|
836
|
+
def initialize(**args)
|
837
|
+
update!(**args)
|
838
|
+
end
|
839
|
+
|
840
|
+
# Update properties of this object
|
841
|
+
def update!(**args)
|
842
|
+
@answer = args[:answer] if args.key?(:answer)
|
843
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
844
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
845
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
846
|
+
@question = args[:question] if args.key?(:question)
|
847
|
+
@source = args[:source] if args.key?(:source)
|
848
|
+
end
|
849
|
+
end
|
850
|
+
|
851
|
+
# Represents a notification sent to Cloud Pub/Sub subscribers for
|
852
|
+
# human agent assistant events in a specific conversation.
|
853
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
854
|
+
include Google::Apis::Core::Hashable
|
855
|
+
|
856
|
+
# The conversation this notification refers to.
|
857
|
+
# Format: `projects/<Project ID>/conversations/<Conversation ID>`.
|
858
|
+
# Corresponds to the JSON property `conversation`
|
859
|
+
# @return [String]
|
860
|
+
attr_accessor :conversation
|
861
|
+
|
862
|
+
# The participant that the suggestion is compiled for. And This field is used
|
863
|
+
# to call Participants.ListSuggestions API. Format:
|
864
|
+
# `projects/<Project ID>/conversations/<Conversation
|
865
|
+
# ID>/participants/<Participant ID>`.
|
866
|
+
# It will not be set in legacy workflow.
|
867
|
+
# HumanAgentAssistantConfig.name for more
|
868
|
+
# information.
|
869
|
+
# Corresponds to the JSON property `participant`
|
870
|
+
# @return [String]
|
871
|
+
attr_accessor :participant
|
872
|
+
|
873
|
+
# The suggestion results payload that this notification refers to.
|
874
|
+
# Corresponds to the JSON property `suggestionResults`
|
875
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
|
876
|
+
attr_accessor :suggestion_results
|
877
|
+
|
878
|
+
def initialize(**args)
|
879
|
+
update!(**args)
|
880
|
+
end
|
881
|
+
|
882
|
+
# Update properties of this object
|
883
|
+
def update!(**args)
|
884
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
885
|
+
@participant = args[:participant] if args.key?(:participant)
|
886
|
+
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
|
887
|
+
end
|
888
|
+
end
|
889
|
+
|
741
890
|
# The request message for Agents.ImportAgent.
|
742
891
|
class GoogleCloudDialogflowV2ImportAgentRequest
|
743
892
|
include Google::Apis::Core::Hashable
|
@@ -1793,6 +1942,25 @@ module Google
|
|
1793
1942
|
end
|
1794
1943
|
end
|
1795
1944
|
|
1945
|
+
# Metadata in google::longrunning::Operation for Knowledge operations.
|
1946
|
+
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
1947
|
+
include Google::Apis::Core::Hashable
|
1948
|
+
|
1949
|
+
# Output only. The current state of this operation.
|
1950
|
+
# Corresponds to the JSON property `state`
|
1951
|
+
# @return [String]
|
1952
|
+
attr_accessor :state
|
1953
|
+
|
1954
|
+
def initialize(**args)
|
1955
|
+
update!(**args)
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
# Update properties of this object
|
1959
|
+
def update!(**args)
|
1960
|
+
@state = args[:state] if args.key?(:state)
|
1961
|
+
end
|
1962
|
+
end
|
1963
|
+
|
1796
1964
|
# The response message for Contexts.ListContexts.
|
1797
1965
|
class GoogleCloudDialogflowV2ListContextsResponse
|
1798
1966
|
include Google::Apis::Core::Hashable
|
@@ -2397,6 +2565,118 @@ module Google
|
|
2397
2565
|
end
|
2398
2566
|
end
|
2399
2567
|
|
2568
|
+
# The response message for [Participants.SuggestArticles]
|
2569
|
+
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
2570
|
+
include Google::Apis::Core::Hashable
|
2571
|
+
|
2572
|
+
# Articles ordered by score in descending order.
|
2573
|
+
# Corresponds to the JSON property `articleAnswers`
|
2574
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer>]
|
2575
|
+
attr_accessor :article_answers
|
2576
|
+
|
2577
|
+
# Number of messages prior to and including
|
2578
|
+
# last_conversation_message to compile the suggestion. It may be smaller
|
2579
|
+
# than the CompileSuggestionRequest.context_messages_count field in the
|
2580
|
+
# request if there aren't that many messages in the conversation.
|
2581
|
+
# Corresponds to the JSON property `contextSize`
|
2582
|
+
# @return [Fixnum]
|
2583
|
+
attr_accessor :context_size
|
2584
|
+
|
2585
|
+
# The name of the latest conversation message used to compile
|
2586
|
+
# suggestion for.
|
2587
|
+
# Format: `projects/<Project ID>/conversations/<Conversation
|
2588
|
+
# ID>/messages/<Message ID>`.
|
2589
|
+
# Corresponds to the JSON property `latestMessage`
|
2590
|
+
# @return [String]
|
2591
|
+
attr_accessor :latest_message
|
2592
|
+
|
2593
|
+
def initialize(**args)
|
2594
|
+
update!(**args)
|
2595
|
+
end
|
2596
|
+
|
2597
|
+
# Update properties of this object
|
2598
|
+
def update!(**args)
|
2599
|
+
@article_answers = args[:article_answers] if args.key?(:article_answers)
|
2600
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
2601
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
2602
|
+
end
|
2603
|
+
end
|
2604
|
+
|
2605
|
+
# The request message for [Participants.SuggestFaqAnswers]
|
2606
|
+
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
|
2607
|
+
include Google::Apis::Core::Hashable
|
2608
|
+
|
2609
|
+
# Number of messages prior to and including
|
2610
|
+
# last_conversation_message to compile the suggestion. It may be smaller
|
2611
|
+
# than the CompileSuggestionRequest.context_messages_count field in the
|
2612
|
+
# request if there aren't that many messages in the conversation.
|
2613
|
+
# Corresponds to the JSON property `contextSize`
|
2614
|
+
# @return [Fixnum]
|
2615
|
+
attr_accessor :context_size
|
2616
|
+
|
2617
|
+
# Answers extracted from FAQ documents.
|
2618
|
+
# Corresponds to the JSON property `faqAnswers`
|
2619
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer>]
|
2620
|
+
attr_accessor :faq_answers
|
2621
|
+
|
2622
|
+
# The name of the latest conversation message used to compile
|
2623
|
+
# suggestion for.
|
2624
|
+
# Format: `projects/<Project ID>/conversations/<Conversation
|
2625
|
+
# ID>/messages/<Message ID>`.
|
2626
|
+
# Corresponds to the JSON property `latestMessage`
|
2627
|
+
# @return [String]
|
2628
|
+
attr_accessor :latest_message
|
2629
|
+
|
2630
|
+
def initialize(**args)
|
2631
|
+
update!(**args)
|
2632
|
+
end
|
2633
|
+
|
2634
|
+
# Update properties of this object
|
2635
|
+
def update!(**args)
|
2636
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
2637
|
+
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
|
2638
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
2639
|
+
end
|
2640
|
+
end
|
2641
|
+
|
2642
|
+
# One response of different type of suggestion response which is used in
|
2643
|
+
# the response of Participants.AnalyzeContent and
|
2644
|
+
# Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.
|
2645
|
+
class GoogleCloudDialogflowV2SuggestionResult
|
2646
|
+
include Google::Apis::Core::Hashable
|
2647
|
+
|
2648
|
+
# The `Status` type defines a logical error model that is suitable for
|
2649
|
+
# different programming environments, including REST APIs and RPC APIs. It is
|
2650
|
+
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
2651
|
+
# three pieces of data: error code, error message, and error details.
|
2652
|
+
# You can find out more about this error model and how to work with it in the
|
2653
|
+
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
2654
|
+
# Corresponds to the JSON property `error`
|
2655
|
+
# @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
|
2656
|
+
attr_accessor :error
|
2657
|
+
|
2658
|
+
# The response message for [Participants.SuggestArticles]
|
2659
|
+
# Corresponds to the JSON property `suggestArticlesResponse`
|
2660
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
2661
|
+
attr_accessor :suggest_articles_response
|
2662
|
+
|
2663
|
+
# The request message for [Participants.SuggestFaqAnswers]
|
2664
|
+
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
2665
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
2666
|
+
attr_accessor :suggest_faq_answers_response
|
2667
|
+
|
2668
|
+
def initialize(**args)
|
2669
|
+
update!(**args)
|
2670
|
+
end
|
2671
|
+
|
2672
|
+
# Update properties of this object
|
2673
|
+
def update!(**args)
|
2674
|
+
@error = args[:error] if args.key?(:error)
|
2675
|
+
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
2676
|
+
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
2677
|
+
end
|
2678
|
+
end
|
2679
|
+
|
2400
2680
|
# Configuration of how speech should be synthesized.
|
2401
2681
|
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
|
2402
2682
|
include Google::Apis::Core::Hashable
|
@@ -28,6 +28,12 @@ module Google
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
+
class GoogleCloudDialogflowV2ArticleAnswer
|
32
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
|
+
|
34
|
+
include Google::Apis::Core::JsonObjectSupport
|
35
|
+
end
|
36
|
+
|
31
37
|
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
|
32
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
39
|
|
@@ -136,6 +142,18 @@ module Google
|
|
136
142
|
include Google::Apis::Core::JsonObjectSupport
|
137
143
|
end
|
138
144
|
|
145
|
+
class GoogleCloudDialogflowV2FaqAnswer
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
147
|
+
|
148
|
+
include Google::Apis::Core::JsonObjectSupport
|
149
|
+
end
|
150
|
+
|
151
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
153
|
+
|
154
|
+
include Google::Apis::Core::JsonObjectSupport
|
155
|
+
end
|
156
|
+
|
139
157
|
class GoogleCloudDialogflowV2ImportAgentRequest
|
140
158
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
141
159
|
|
@@ -298,6 +316,12 @@ module Google
|
|
298
316
|
include Google::Apis::Core::JsonObjectSupport
|
299
317
|
end
|
300
318
|
|
319
|
+
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
|
+
|
322
|
+
include Google::Apis::Core::JsonObjectSupport
|
323
|
+
end
|
324
|
+
|
301
325
|
class GoogleCloudDialogflowV2ListContextsResponse
|
302
326
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
303
327
|
|
@@ -388,6 +412,24 @@ module Google
|
|
388
412
|
include Google::Apis::Core::JsonObjectSupport
|
389
413
|
end
|
390
414
|
|
415
|
+
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
416
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
417
|
+
|
418
|
+
include Google::Apis::Core::JsonObjectSupport
|
419
|
+
end
|
420
|
+
|
421
|
+
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
427
|
+
class GoogleCloudDialogflowV2SuggestionResult
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
429
|
+
|
430
|
+
include Google::Apis::Core::JsonObjectSupport
|
431
|
+
end
|
432
|
+
|
391
433
|
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
|
392
434
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
435
|
|
@@ -868,6 +910,18 @@ module Google
|
|
868
910
|
end
|
869
911
|
end
|
870
912
|
|
913
|
+
class GoogleCloudDialogflowV2ArticleAnswer
|
914
|
+
# @private
|
915
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
916
|
+
property :answer_record, as: 'answerRecord'
|
917
|
+
property :confidence, as: 'confidence'
|
918
|
+
hash :metadata, as: 'metadata'
|
919
|
+
collection :snippets, as: 'snippets'
|
920
|
+
property :title, as: 'title'
|
921
|
+
property :uri, as: 'uri'
|
922
|
+
end
|
923
|
+
end
|
924
|
+
|
871
925
|
class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
|
872
926
|
# @private
|
873
927
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1038,6 +1092,28 @@ module Google
|
|
1038
1092
|
end
|
1039
1093
|
end
|
1040
1094
|
|
1095
|
+
class GoogleCloudDialogflowV2FaqAnswer
|
1096
|
+
# @private
|
1097
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1098
|
+
property :answer, as: 'answer'
|
1099
|
+
property :answer_record, as: 'answerRecord'
|
1100
|
+
property :confidence, as: 'confidence'
|
1101
|
+
hash :metadata, as: 'metadata'
|
1102
|
+
property :question, as: 'question'
|
1103
|
+
property :source, as: 'source'
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
1108
|
+
# @private
|
1109
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1110
|
+
property :conversation, as: 'conversation'
|
1111
|
+
property :participant, as: 'participant'
|
1112
|
+
collection :suggestion_results, as: 'suggestionResults', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult::Representation
|
1113
|
+
|
1114
|
+
end
|
1115
|
+
end
|
1116
|
+
|
1041
1117
|
class GoogleCloudDialogflowV2ImportAgentRequest
|
1042
1118
|
# @private
|
1043
1119
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1326,6 +1402,13 @@ module Google
|
|
1326
1402
|
end
|
1327
1403
|
end
|
1328
1404
|
|
1405
|
+
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
1406
|
+
# @private
|
1407
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1408
|
+
property :state, as: 'state'
|
1409
|
+
end
|
1410
|
+
end
|
1411
|
+
|
1329
1412
|
class GoogleCloudDialogflowV2ListContextsResponse
|
1330
1413
|
# @private
|
1331
1414
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1485,6 +1568,38 @@ module Google
|
|
1485
1568
|
end
|
1486
1569
|
end
|
1487
1570
|
|
1571
|
+
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
1572
|
+
# @private
|
1573
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1574
|
+
collection :article_answers, as: 'articleAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer::Representation
|
1575
|
+
|
1576
|
+
property :context_size, as: 'contextSize'
|
1577
|
+
property :latest_message, as: 'latestMessage'
|
1578
|
+
end
|
1579
|
+
end
|
1580
|
+
|
1581
|
+
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
|
1582
|
+
# @private
|
1583
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1584
|
+
property :context_size, as: 'contextSize'
|
1585
|
+
collection :faq_answers, as: 'faqAnswers', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer::Representation
|
1586
|
+
|
1587
|
+
property :latest_message, as: 'latestMessage'
|
1588
|
+
end
|
1589
|
+
end
|
1590
|
+
|
1591
|
+
class GoogleCloudDialogflowV2SuggestionResult
|
1592
|
+
# @private
|
1593
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1594
|
+
property :error, as: 'error', class: Google::Apis::DialogflowV2::GoogleRpcStatus, decorator: Google::Apis::DialogflowV2::GoogleRpcStatus::Representation
|
1595
|
+
|
1596
|
+
property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse::Representation
|
1597
|
+
|
1598
|
+
property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse::Representation
|
1599
|
+
|
1600
|
+
end
|
1601
|
+
end
|
1602
|
+
|
1488
1603
|
class GoogleCloudDialogflowV2SynthesizeSpeechConfig
|
1489
1604
|
# @private
|
1490
1605
|
class Representation < Google::Apis::Core::JsonRepresentation
|