google-apis-dialogflow_v2beta1 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +346 -28
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +140 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +822 -88
- metadata +4 -4
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2beta1
|
18
18
|
# Version of the google-apis-dialogflow_v2beta1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.11.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.2.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210503"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -100,6 +100,12 @@ module Google
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
104
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
|
+
|
106
|
+
include Google::Apis::Core::JsonObjectSupport
|
107
|
+
end
|
108
|
+
|
103
109
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
104
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
111
|
|
@@ -178,6 +184,12 @@ module Google
|
|
178
184
|
include Google::Apis::Core::JsonObjectSupport
|
179
185
|
end
|
180
186
|
|
187
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
188
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
189
|
+
|
190
|
+
include Google::Apis::Core::JsonObjectSupport
|
191
|
+
end
|
192
|
+
|
181
193
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
182
194
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
183
195
|
|
@@ -508,6 +520,12 @@ module Google
|
|
508
520
|
include Google::Apis::Core::JsonObjectSupport
|
509
521
|
end
|
510
522
|
|
523
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
524
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
525
|
+
|
526
|
+
include Google::Apis::Core::JsonObjectSupport
|
527
|
+
end
|
528
|
+
|
511
529
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
512
530
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
513
531
|
|
@@ -586,6 +604,12 @@ module Google
|
|
586
604
|
include Google::Apis::Core::JsonObjectSupport
|
587
605
|
end
|
588
606
|
|
607
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
609
|
+
|
610
|
+
include Google::Apis::Core::JsonObjectSupport
|
611
|
+
end
|
612
|
+
|
589
613
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
590
614
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
591
615
|
|
@@ -1432,6 +1456,18 @@ module Google
|
|
1432
1456
|
include Google::Apis::Core::JsonObjectSupport
|
1433
1457
|
end
|
1434
1458
|
|
1459
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistory
|
1460
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1461
|
+
|
1462
|
+
include Google::Apis::Core::JsonObjectSupport
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
|
1466
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1467
|
+
|
1468
|
+
include Google::Apis::Core::JsonObjectSupport
|
1469
|
+
end
|
1470
|
+
|
1435
1471
|
class GoogleCloudDialogflowV2beta1EventInput
|
1436
1472
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
1437
1473
|
|
@@ -1996,6 +2032,12 @@ module Google
|
|
1996
2032
|
include Google::Apis::Core::JsonObjectSupport
|
1997
2033
|
end
|
1998
2034
|
|
2035
|
+
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
2036
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2037
|
+
|
2038
|
+
include Google::Apis::Core::JsonObjectSupport
|
2039
|
+
end
|
2040
|
+
|
1999
2041
|
class GoogleCloudDialogflowV2beta1LoggingConfig
|
2000
2042
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2001
2043
|
|
@@ -2236,6 +2278,12 @@ module Google
|
|
2236
2278
|
include Google::Apis::Core::JsonObjectSupport
|
2237
2279
|
end
|
2238
2280
|
|
2281
|
+
class GoogleCloudDialogflowV2beta1TextToSpeechSettings
|
2282
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2283
|
+
|
2284
|
+
include Google::Apis::Core::JsonObjectSupport
|
2285
|
+
end
|
2286
|
+
|
2239
2287
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
2240
2288
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2241
2289
|
|
@@ -2254,6 +2302,12 @@ module Google
|
|
2254
2302
|
include Google::Apis::Core::JsonObjectSupport
|
2255
2303
|
end
|
2256
2304
|
|
2305
|
+
class GoogleCloudDialogflowV2beta1Version
|
2306
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2307
|
+
|
2308
|
+
include Google::Apis::Core::JsonObjectSupport
|
2309
|
+
end
|
2310
|
+
|
2257
2311
|
class GoogleCloudDialogflowV2beta1VoiceSelectionParams
|
2258
2312
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
2259
2313
|
|
@@ -2465,6 +2519,14 @@ module Google
|
|
2465
2519
|
end
|
2466
2520
|
end
|
2467
2521
|
|
2522
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
2523
|
+
# @private
|
2524
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2525
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
2526
|
+
property :flow_uri, as: 'flowUri'
|
2527
|
+
end
|
2528
|
+
end
|
2529
|
+
|
2468
2530
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
2469
2531
|
# @private
|
2470
2532
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2583,6 +2645,13 @@ module Google
|
|
2583
2645
|
end
|
2584
2646
|
end
|
2585
2647
|
|
2648
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
2649
|
+
# @private
|
2650
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2651
|
+
property :flow, as: 'flow'
|
2652
|
+
end
|
2653
|
+
end
|
2654
|
+
|
2586
2655
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
2587
2656
|
# @private
|
2588
2657
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2938,6 +3007,7 @@ module Google
|
|
2938
3007
|
|
2939
3008
|
property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo::Representation
|
2940
3009
|
|
3010
|
+
property :language_code, as: 'languageCode'
|
2941
3011
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ResponseMessage::Representation
|
2942
3012
|
|
2943
3013
|
property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3PageInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3PageInfo::Representation
|
@@ -3133,6 +3203,14 @@ module Google
|
|
3133
3203
|
end
|
3134
3204
|
end
|
3135
3205
|
|
3206
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
3207
|
+
# @private
|
3208
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3209
|
+
property :flow_content, :base64 => true, as: 'flowContent'
|
3210
|
+
property :flow_uri, as: 'flowUri'
|
3211
|
+
end
|
3212
|
+
end
|
3213
|
+
|
3136
3214
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
3137
3215
|
# @private
|
3138
3216
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3251,6 +3329,13 @@ module Google
|
|
3251
3329
|
end
|
3252
3330
|
end
|
3253
3331
|
|
3332
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
3333
|
+
# @private
|
3334
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3335
|
+
property :flow, as: 'flow'
|
3336
|
+
end
|
3337
|
+
end
|
3338
|
+
|
3254
3339
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
3255
3340
|
# @private
|
3256
3341
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3606,6 +3691,7 @@ module Google
|
|
3606
3691
|
|
3607
3692
|
property :intent_info, as: 'intentInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo::Representation
|
3608
3693
|
|
3694
|
+
property :language_code, as: 'languageCode'
|
3609
3695
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation
|
3610
3696
|
|
3611
3697
|
property :page_info, as: 'pageInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1PageInfo::Representation
|
@@ -4751,12 +4837,35 @@ module Google
|
|
4751
4837
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4752
4838
|
property :agent_version, as: 'agentVersion'
|
4753
4839
|
property :description, as: 'description'
|
4840
|
+
property :fulfillment, as: 'fulfillment', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment::Representation
|
4841
|
+
|
4754
4842
|
property :name, as: 'name'
|
4755
4843
|
property :state, as: 'state'
|
4844
|
+
property :text_to_speech_settings, as: 'textToSpeechSettings', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings::Representation
|
4845
|
+
|
4756
4846
|
property :update_time, as: 'updateTime'
|
4757
4847
|
end
|
4758
4848
|
end
|
4759
4849
|
|
4850
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistory
|
4851
|
+
# @private
|
4852
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4853
|
+
collection :entries, as: 'entries', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry::Representation
|
4854
|
+
|
4855
|
+
property :next_page_token, as: 'nextPageToken'
|
4856
|
+
property :parent, as: 'parent'
|
4857
|
+
end
|
4858
|
+
end
|
4859
|
+
|
4860
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
|
4861
|
+
# @private
|
4862
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
4863
|
+
property :agent_version, as: 'agentVersion'
|
4864
|
+
property :create_time, as: 'createTime'
|
4865
|
+
property :description, as: 'description'
|
4866
|
+
end
|
4867
|
+
end
|
4868
|
+
|
4760
4869
|
class GoogleCloudDialogflowV2beta1EventInput
|
4761
4870
|
# @private
|
4762
4871
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -5692,6 +5801,15 @@ module Google
|
|
5692
5801
|
end
|
5693
5802
|
end
|
5694
5803
|
|
5804
|
+
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
5805
|
+
# @private
|
5806
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
5807
|
+
property :next_page_token, as: 'nextPageToken'
|
5808
|
+
collection :versions, as: 'versions', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
5809
|
+
|
5810
|
+
end
|
5811
|
+
end
|
5812
|
+
|
5695
5813
|
class GoogleCloudDialogflowV2beta1LoggingConfig
|
5696
5814
|
# @private
|
5697
5815
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6096,6 +6214,17 @@ module Google
|
|
6096
6214
|
end
|
6097
6215
|
end
|
6098
6216
|
|
6217
|
+
class GoogleCloudDialogflowV2beta1TextToSpeechSettings
|
6218
|
+
# @private
|
6219
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6220
|
+
property :enable_text_to_speech, as: 'enableTextToSpeech'
|
6221
|
+
property :output_audio_encoding, as: 'outputAudioEncoding'
|
6222
|
+
property :sample_rate_hertz, as: 'sampleRateHertz'
|
6223
|
+
hash :synthesize_speech_configs, as: 'synthesizeSpeechConfigs', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig::Representation
|
6224
|
+
|
6225
|
+
end
|
6226
|
+
end
|
6227
|
+
|
6099
6228
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
6100
6229
|
# @private
|
6101
6230
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -6119,6 +6248,17 @@ module Google
|
|
6119
6248
|
end
|
6120
6249
|
end
|
6121
6250
|
|
6251
|
+
class GoogleCloudDialogflowV2beta1Version
|
6252
|
+
# @private
|
6253
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
6254
|
+
property :create_time, as: 'createTime'
|
6255
|
+
property :description, as: 'description'
|
6256
|
+
property :name, as: 'name'
|
6257
|
+
property :status, as: 'status'
|
6258
|
+
property :version_number, as: 'versionNumber'
|
6259
|
+
end
|
6260
|
+
end
|
6261
|
+
|
6122
6262
|
class GoogleCloudDialogflowV2beta1VoiceSelectionParams
|
6123
6263
|
# @private
|
6124
6264
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -820,6 +820,144 @@ module Google
|
|
820
820
|
execute_or_queue_command(command, &block)
|
821
821
|
end
|
822
822
|
|
823
|
+
# Creates an agent environment.
|
824
|
+
# @param [String] parent
|
825
|
+
# Required. The agent to create an environment for. Supported formats: - `
|
826
|
+
# projects//agent` - `projects//locations//agent`
|
827
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
828
|
+
# @param [String] environment_id
|
829
|
+
# Required. The unique id of the new environment.
|
830
|
+
# @param [String] fields
|
831
|
+
# Selector specifying which fields to include in a partial response.
|
832
|
+
# @param [String] quota_user
|
833
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
834
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
835
|
+
# @param [Google::Apis::RequestOptions] options
|
836
|
+
# Request-specific options
|
837
|
+
#
|
838
|
+
# @yield [result, err] Result & error if block supplied
|
839
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
840
|
+
# @yieldparam err [StandardError] error object if request failed
|
841
|
+
#
|
842
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
843
|
+
#
|
844
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
845
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
846
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
847
|
+
def create_project_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
848
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
|
849
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
850
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
851
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
852
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
853
|
+
command.params['parent'] = parent unless parent.nil?
|
854
|
+
command.query['environmentId'] = environment_id unless environment_id.nil?
|
855
|
+
command.query['fields'] = fields unless fields.nil?
|
856
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
857
|
+
execute_or_queue_command(command, &block)
|
858
|
+
end
|
859
|
+
|
860
|
+
# Deletes the specified agent environment.
|
861
|
+
# @param [String] name
|
862
|
+
# Required. The name of the environment to delete. / Format: - `projects//agent/
|
863
|
+
# environments/` - `projects//locations//agent/environments/`
|
864
|
+
# @param [String] fields
|
865
|
+
# Selector specifying which fields to include in a partial response.
|
866
|
+
# @param [String] quota_user
|
867
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
868
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
869
|
+
# @param [Google::Apis::RequestOptions] options
|
870
|
+
# Request-specific options
|
871
|
+
#
|
872
|
+
# @yield [result, err] Result & error if block supplied
|
873
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
874
|
+
# @yieldparam err [StandardError] error object if request failed
|
875
|
+
#
|
876
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
877
|
+
#
|
878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
881
|
+
def delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
882
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
883
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
884
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
885
|
+
command.params['name'] = name unless name.nil?
|
886
|
+
command.query['fields'] = fields unless fields.nil?
|
887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
888
|
+
execute_or_queue_command(command, &block)
|
889
|
+
end
|
890
|
+
|
891
|
+
# Retrieves the specified agent environment.
|
892
|
+
# @param [String] name
|
893
|
+
# Required. The name of the environment. Supported formats: - `projects//agent/
|
894
|
+
# environments/` - `projects//locations//agent/environments/`
|
895
|
+
# @param [String] fields
|
896
|
+
# Selector specifying which fields to include in a partial response.
|
897
|
+
# @param [String] quota_user
|
898
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
899
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
900
|
+
# @param [Google::Apis::RequestOptions] options
|
901
|
+
# Request-specific options
|
902
|
+
#
|
903
|
+
# @yield [result, err] Result & error if block supplied
|
904
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
905
|
+
# @yieldparam err [StandardError] error object if request failed
|
906
|
+
#
|
907
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
908
|
+
#
|
909
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
910
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
911
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
912
|
+
def get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
913
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
914
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
915
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
916
|
+
command.params['name'] = name unless name.nil?
|
917
|
+
command.query['fields'] = fields unless fields.nil?
|
918
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
919
|
+
execute_or_queue_command(command, &block)
|
920
|
+
end
|
921
|
+
|
922
|
+
# Gets the history of the specified environment.
|
923
|
+
# @param [String] parent
|
924
|
+
# Required. The name of the environment to retrieve history for. Supported
|
925
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
926
|
+
# environments/`
|
927
|
+
# @param [Fixnum] page_size
|
928
|
+
# Optional. The maximum number of items to return in a single page. By default
|
929
|
+
# 100 and at most 1000.
|
930
|
+
# @param [String] page_token
|
931
|
+
# Optional. The next_page_token value returned from a previous list request.
|
932
|
+
# @param [String] fields
|
933
|
+
# Selector specifying which fields to include in a partial response.
|
934
|
+
# @param [String] quota_user
|
935
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
936
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
937
|
+
# @param [Google::Apis::RequestOptions] options
|
938
|
+
# Request-specific options
|
939
|
+
#
|
940
|
+
# @yield [result, err] Result & error if block supplied
|
941
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
|
942
|
+
# @yieldparam err [StandardError] error object if request failed
|
943
|
+
#
|
944
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
|
945
|
+
#
|
946
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
947
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
948
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
949
|
+
def get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
950
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
|
951
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
|
952
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
|
953
|
+
command.params['parent'] = parent unless parent.nil?
|
954
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
955
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
956
|
+
command.query['fields'] = fields unless fields.nil?
|
957
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
958
|
+
execute_or_queue_command(command, &block)
|
959
|
+
end
|
960
|
+
|
823
961
|
# Returns the list of all non-draft environments of the specified agent.
|
824
962
|
# @param [String] parent
|
825
963
|
# Required. The agent to list all environments from. Format: - `projects//agent`
|
@@ -858,6 +996,59 @@ module Google
|
|
858
996
|
execute_or_queue_command(command, &block)
|
859
997
|
end
|
860
998
|
|
999
|
+
# Updates the specified agent environment. This method allows you to deploy new
|
1000
|
+
# agent versions into the environment. When an environment is pointed to a new
|
1001
|
+
# agent version by setting `environment.agent_version`, the environment is
|
1002
|
+
# temporarily set to the `LOADING` state. During that time, the environment
|
1003
|
+
# keeps on serving the previous version of the agent. After the new agent
|
1004
|
+
# version is done loading, the environment is set back to the `RUNNING` state.
|
1005
|
+
# You can use "-" as Environment ID in environment name to update version in "
|
1006
|
+
# draft" environment. WARNING: this will negate all recent changes to draft and
|
1007
|
+
# can't be undone. You may want to save the draft to a version before calling
|
1008
|
+
# this function.
|
1009
|
+
# @param [String] name
|
1010
|
+
# Output only. The unique identifier of this agent environment. Supported
|
1011
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
1012
|
+
# environments/`
|
1013
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
1014
|
+
# @param [Boolean] allow_load_to_draft_and_discard_changes
|
1015
|
+
# Optional. This field is used to prevent accidental overwrite of the draft
|
1016
|
+
# environment, which is an operation that cannot be undone. To confirm that the
|
1017
|
+
# caller desires this overwrite, this field must be explicitly set to true when
|
1018
|
+
# updating the draft environment (environment ID = `-`).
|
1019
|
+
# @param [String] update_mask
|
1020
|
+
# Required. The mask to control which fields get updated.
|
1021
|
+
# @param [String] fields
|
1022
|
+
# Selector specifying which fields to include in a partial response.
|
1023
|
+
# @param [String] quota_user
|
1024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1026
|
+
# @param [Google::Apis::RequestOptions] options
|
1027
|
+
# Request-specific options
|
1028
|
+
#
|
1029
|
+
# @yield [result, err] Result & error if block supplied
|
1030
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
1031
|
+
# @yieldparam err [StandardError] error object if request failed
|
1032
|
+
#
|
1033
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
1034
|
+
#
|
1035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1038
|
+
def patch_project_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, allow_load_to_draft_and_discard_changes: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1039
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
1040
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
1041
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
1042
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
1043
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
1044
|
+
command.params['name'] = name unless name.nil?
|
1045
|
+
command.query['allowLoadToDraftAndDiscardChanges'] = allow_load_to_draft_and_discard_changes unless allow_load_to_draft_and_discard_changes.nil?
|
1046
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1047
|
+
command.query['fields'] = fields unless fields.nil?
|
1048
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1049
|
+
execute_or_queue_command(command, &block)
|
1050
|
+
end
|
1051
|
+
|
861
1052
|
# Returns the list of all intents in the specified agent.
|
862
1053
|
# @param [String] parent
|
863
1054
|
# Required. The agent to list all intents from. Format: `projects//agent`.
|
@@ -2600,10 +2791,12 @@ module Google
|
|
2600
2791
|
execute_or_queue_command(command, &block)
|
2601
2792
|
end
|
2602
2793
|
|
2603
|
-
#
|
2604
|
-
#
|
2605
|
-
#
|
2606
|
-
#
|
2794
|
+
# Creates an agent version. The new version points to the agent instance in the "
|
2795
|
+
# default" environment.
|
2796
|
+
# @param [String] parent
|
2797
|
+
# Required. The agent to create a version for. Supported formats: - `projects//
|
2798
|
+
# agent` - `projects//locations//agent`
|
2799
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
2607
2800
|
# @param [String] fields
|
2608
2801
|
# Selector specifying which fields to include in a partial response.
|
2609
2802
|
# @param [String] quota_user
|
@@ -2613,36 +2806,30 @@ module Google
|
|
2613
2806
|
# Request-specific options
|
2614
2807
|
#
|
2615
2808
|
# @yield [result, err] Result & error if block supplied
|
2616
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2809
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2617
2810
|
# @yieldparam err [StandardError] error object if request failed
|
2618
2811
|
#
|
2619
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2812
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2620
2813
|
#
|
2621
2814
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2622
2815
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2623
2816
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2624
|
-
def
|
2625
|
-
command = make_simple_command(:
|
2626
|
-
command.
|
2627
|
-
command.
|
2628
|
-
command.
|
2817
|
+
def create_project_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2818
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
|
2819
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2820
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
2821
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2822
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2823
|
+
command.params['parent'] = parent unless parent.nil?
|
2629
2824
|
command.query['fields'] = fields unless fields.nil?
|
2630
2825
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2631
2826
|
execute_or_queue_command(command, &block)
|
2632
2827
|
end
|
2633
2828
|
|
2634
|
-
#
|
2635
|
-
#
|
2636
|
-
#
|
2637
|
-
#
|
2638
|
-
# order. Format: `projects//locations/`.
|
2639
|
-
# @param [Fixnum] page_size
|
2640
|
-
# Optional. The maximum number of records to return in a single page. The server
|
2641
|
-
# may return fewer records than this. If unspecified, we use 10. The maximum is
|
2642
|
-
# 100.
|
2643
|
-
# @param [String] page_token
|
2644
|
-
# Optional. The ListAnswerRecordsResponse.next_page_token value returned from a
|
2645
|
-
# previous list request used to continue listing on the next page.
|
2829
|
+
# Delete the specified agent version.
|
2830
|
+
# @param [String] name
|
2831
|
+
# Required. The name of the version to delete. Supported formats: - `projects//
|
2832
|
+
# agent/versions/` - `projects//locations//agent/versions/`
|
2646
2833
|
# @param [String] fields
|
2647
2834
|
# Selector specifying which fields to include in a partial response.
|
2648
2835
|
# @param [String] quota_user
|
@@ -2652,33 +2839,28 @@ module Google
|
|
2652
2839
|
# Request-specific options
|
2653
2840
|
#
|
2654
2841
|
# @yield [result, err] Result & error if block supplied
|
2655
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2842
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
2656
2843
|
# @yieldparam err [StandardError] error object if request failed
|
2657
2844
|
#
|
2658
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2845
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
2659
2846
|
#
|
2660
2847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2661
2848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2662
2849
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2663
|
-
def
|
2664
|
-
command = make_simple_command(:
|
2665
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2666
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2667
|
-
command.params['
|
2668
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
2669
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
2850
|
+
def delete_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
2851
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
2852
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
2853
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
2854
|
+
command.params['name'] = name unless name.nil?
|
2670
2855
|
command.query['fields'] = fields unless fields.nil?
|
2671
2856
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2672
2857
|
execute_or_queue_command(command, &block)
|
2673
2858
|
end
|
2674
2859
|
|
2675
|
-
#
|
2860
|
+
# Retrieves the specified agent version.
|
2676
2861
|
# @param [String] name
|
2677
|
-
# The
|
2678
|
-
#
|
2679
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] google_cloud_dialogflow_v2beta1_answer_record_object
|
2680
|
-
# @param [String] update_mask
|
2681
|
-
# Required. The mask to control which fields get updated.
|
2862
|
+
# Required. The name of the version. Supported formats: - `projects//agent/
|
2863
|
+
# versions/` - `projects//locations//agent/versions/`
|
2682
2864
|
# @param [String] fields
|
2683
2865
|
# Selector specifying which fields to include in a partial response.
|
2684
2866
|
# @param [String] quota_user
|
@@ -2688,34 +2870,33 @@ module Google
|
|
2688
2870
|
# Request-specific options
|
2689
2871
|
#
|
2690
2872
|
# @yield [result, err] Result & error if block supplied
|
2691
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2873
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2692
2874
|
# @yieldparam err [StandardError] error object if request failed
|
2693
2875
|
#
|
2694
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2876
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2695
2877
|
#
|
2696
2878
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2697
2879
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2698
2880
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2699
|
-
def
|
2700
|
-
command = make_simple_command(:
|
2701
|
-
command.
|
2702
|
-
command.
|
2703
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
2704
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
|
2881
|
+
def get_project_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
2882
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2883
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2884
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2705
2885
|
command.params['name'] = name unless name.nil?
|
2706
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2707
2886
|
command.query['fields'] = fields unless fields.nil?
|
2708
2887
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2709
2888
|
execute_or_queue_command(command, &block)
|
2710
2889
|
end
|
2711
2890
|
|
2712
|
-
#
|
2713
|
-
# CreateTime and ConversationProfile.UpdateTime aren't populated in the response.
|
2714
|
-
# You can retrieve them via GetConversationProfile API.
|
2891
|
+
# Returns the list of all versions of the specified agent.
|
2715
2892
|
# @param [String] parent
|
2716
|
-
# Required. The
|
2717
|
-
# locations
|
2718
|
-
# @param [
|
2893
|
+
# Required. The agent to list all versions from. Supported formats: - `projects//
|
2894
|
+
# agent` - `projects//locations//agent`
|
2895
|
+
# @param [Fixnum] page_size
|
2896
|
+
# Optional. The maximum number of items to return in a single page. By default
|
2897
|
+
# 100 and at most 1000.
|
2898
|
+
# @param [String] page_token
|
2899
|
+
# Optional. The next_page_token value returned from a previous list request.
|
2719
2900
|
# @param [String] fields
|
2720
2901
|
# Selector specifying which fields to include in a partial response.
|
2721
2902
|
# @param [String] quota_user
|
@@ -2725,30 +2906,35 @@ module Google
|
|
2725
2906
|
# Request-specific options
|
2726
2907
|
#
|
2727
2908
|
# @yield [result, err] Result & error if block supplied
|
2728
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2909
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
|
2729
2910
|
# @yieldparam err [StandardError] error object if request failed
|
2730
2911
|
#
|
2731
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2912
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
|
2732
2913
|
#
|
2733
2914
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2734
2915
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2735
2916
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2736
|
-
def
|
2737
|
-
command = make_simple_command(:
|
2738
|
-
command.
|
2739
|
-
command.
|
2740
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
2741
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile
|
2917
|
+
def list_project_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2918
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
|
2919
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
|
2920
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
|
2742
2921
|
command.params['parent'] = parent unless parent.nil?
|
2922
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
2923
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
2743
2924
|
command.query['fields'] = fields unless fields.nil?
|
2744
2925
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2745
2926
|
execute_or_queue_command(command, &block)
|
2746
2927
|
end
|
2747
2928
|
|
2748
|
-
#
|
2929
|
+
# Updates the specified agent version. Note that this method does not allow you
|
2930
|
+
# to update the state of the agent the given version points to. It allows you to
|
2931
|
+
# update only mutable properties of the version resource.
|
2749
2932
|
# @param [String] name
|
2750
|
-
#
|
2751
|
-
# locations//
|
2933
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
2934
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
2935
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
2936
|
+
# @param [String] update_mask
|
2937
|
+
# Required. The mask to control which fields get updated.
|
2752
2938
|
# @param [String] fields
|
2753
2939
|
# Selector specifying which fields to include in a partial response.
|
2754
2940
|
# @param [String] quota_user
|
@@ -2758,28 +2944,31 @@ module Google
|
|
2758
2944
|
# Request-specific options
|
2759
2945
|
#
|
2760
2946
|
# @yield [result, err] Result & error if block supplied
|
2761
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2947
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2762
2948
|
# @yieldparam err [StandardError] error object if request failed
|
2763
2949
|
#
|
2764
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2950
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2765
2951
|
#
|
2766
2952
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2767
2953
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2768
2954
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2769
|
-
def
|
2770
|
-
command = make_simple_command(:
|
2771
|
-
command.
|
2772
|
-
command.
|
2955
|
+
def patch_project_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2956
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
2957
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2958
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
2959
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2960
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2773
2961
|
command.params['name'] = name unless name.nil?
|
2962
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2774
2963
|
command.query['fields'] = fields unless fields.nil?
|
2775
2964
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2776
2965
|
execute_or_queue_command(command, &block)
|
2777
2966
|
end
|
2778
2967
|
|
2779
|
-
# Retrieves
|
2968
|
+
# Deprecated. Retrieves a specific answer record.
|
2780
2969
|
# @param [String] name
|
2781
|
-
# Required. The
|
2782
|
-
# locations//
|
2970
|
+
# Required. The name of the answer record to retrieve. Format: `projects//
|
2971
|
+
# locations//answerRecords/`.
|
2783
2972
|
# @param [String] fields
|
2784
2973
|
# Selector specifying which fields to include in a partial response.
|
2785
2974
|
# @param [String] quota_user
|
@@ -2789,33 +2978,36 @@ module Google
|
|
2789
2978
|
# Request-specific options
|
2790
2979
|
#
|
2791
2980
|
# @yield [result, err] Result & error if block supplied
|
2792
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2981
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] parsed result object
|
2793
2982
|
# @yieldparam err [StandardError] error object if request failed
|
2794
2983
|
#
|
2795
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2984
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord]
|
2796
2985
|
#
|
2797
2986
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2798
2987
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2799
2988
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2800
|
-
def
|
2989
|
+
def get_project_answer_record(name, fields: nil, quota_user: nil, options: nil, &block)
|
2801
2990
|
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2802
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2803
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2991
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
2992
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
|
2804
2993
|
command.params['name'] = name unless name.nil?
|
2805
2994
|
command.query['fields'] = fields unless fields.nil?
|
2806
2995
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2807
2996
|
execute_or_queue_command(command, &block)
|
2808
2997
|
end
|
2809
2998
|
|
2810
|
-
# Returns the list of all
|
2999
|
+
# Returns the list of all answer records in the specified project in reverse
|
3000
|
+
# chronological order.
|
2811
3001
|
# @param [String] parent
|
2812
|
-
# Required. The project to list all
|
2813
|
-
# projects//locations/`.
|
3002
|
+
# Required. The project to list all answer records for in reverse chronological
|
3003
|
+
# order. Format: `projects//locations/`.
|
2814
3004
|
# @param [Fixnum] page_size
|
2815
|
-
# The maximum number of
|
2816
|
-
#
|
3005
|
+
# Optional. The maximum number of records to return in a single page. The server
|
3006
|
+
# may return fewer records than this. If unspecified, we use 10. The maximum is
|
3007
|
+
# 100.
|
2817
3008
|
# @param [String] page_token
|
2818
|
-
# The next_page_token value returned from a
|
3009
|
+
# Optional. The ListAnswerRecordsResponse.next_page_token value returned from a
|
3010
|
+
# previous list request used to continue listing on the next page.
|
2819
3011
|
# @param [String] fields
|
2820
3012
|
# Selector specifying which fields to include in a partial response.
|
2821
3013
|
# @param [String] quota_user
|
@@ -2825,10 +3017,183 @@ module Google
|
|
2825
3017
|
# Request-specific options
|
2826
3018
|
#
|
2827
3019
|
# @yield [result, err] Result & error if block supplied
|
2828
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
3020
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse] parsed result object
|
2829
3021
|
# @yieldparam err [StandardError] error object if request failed
|
2830
3022
|
#
|
2831
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
3023
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse]
|
3024
|
+
#
|
3025
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3026
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3027
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3028
|
+
def list_project_answer_records(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3029
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/answerRecords', options)
|
3030
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse::Representation
|
3031
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
|
3032
|
+
command.params['parent'] = parent unless parent.nil?
|
3033
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3034
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3035
|
+
command.query['fields'] = fields unless fields.nil?
|
3036
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3037
|
+
execute_or_queue_command(command, &block)
|
3038
|
+
end
|
3039
|
+
|
3040
|
+
# Updates the specified answer record.
|
3041
|
+
# @param [String] name
|
3042
|
+
# The unique identifier of this answer record. Required for AnswerRecords.
|
3043
|
+
# UpdateAnswerRecord method. Format: `projects//locations//answerRecords/`.
|
3044
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] google_cloud_dialogflow_v2beta1_answer_record_object
|
3045
|
+
# @param [String] update_mask
|
3046
|
+
# Required. The mask to control which fields get updated.
|
3047
|
+
# @param [String] fields
|
3048
|
+
# Selector specifying which fields to include in a partial response.
|
3049
|
+
# @param [String] quota_user
|
3050
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3051
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3052
|
+
# @param [Google::Apis::RequestOptions] options
|
3053
|
+
# Request-specific options
|
3054
|
+
#
|
3055
|
+
# @yield [result, err] Result & error if block supplied
|
3056
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord] parsed result object
|
3057
|
+
# @yieldparam err [StandardError] error object if request failed
|
3058
|
+
#
|
3059
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord]
|
3060
|
+
#
|
3061
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3062
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3063
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3064
|
+
def patch_project_answer_record(name, google_cloud_dialogflow_v2beta1_answer_record_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3065
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
3066
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
3067
|
+
command.request_object = google_cloud_dialogflow_v2beta1_answer_record_object
|
3068
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord::Representation
|
3069
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AnswerRecord
|
3070
|
+
command.params['name'] = name unless name.nil?
|
3071
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3072
|
+
command.query['fields'] = fields unless fields.nil?
|
3073
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3074
|
+
execute_or_queue_command(command, &block)
|
3075
|
+
end
|
3076
|
+
|
3077
|
+
# Creates a conversation profile in the specified project. ConversationProfile.
|
3078
|
+
# CreateTime and ConversationProfile.UpdateTime aren't populated in the response.
|
3079
|
+
# You can retrieve them via GetConversationProfile API.
|
3080
|
+
# @param [String] parent
|
3081
|
+
# Required. The project to create a conversation profile for. Format: `projects//
|
3082
|
+
# locations/`.
|
3083
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] google_cloud_dialogflow_v2beta1_conversation_profile_object
|
3084
|
+
# @param [String] fields
|
3085
|
+
# Selector specifying which fields to include in a partial response.
|
3086
|
+
# @param [String] quota_user
|
3087
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3088
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3089
|
+
# @param [Google::Apis::RequestOptions] options
|
3090
|
+
# Request-specific options
|
3091
|
+
#
|
3092
|
+
# @yield [result, err] Result & error if block supplied
|
3093
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object
|
3094
|
+
# @yieldparam err [StandardError] error object if request failed
|
3095
|
+
#
|
3096
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile]
|
3097
|
+
#
|
3098
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3099
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3100
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3101
|
+
def create_project_conversation_profile(parent, google_cloud_dialogflow_v2beta1_conversation_profile_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3102
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/conversationProfiles', options)
|
3103
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
3104
|
+
command.request_object = google_cloud_dialogflow_v2beta1_conversation_profile_object
|
3105
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
3106
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile
|
3107
|
+
command.params['parent'] = parent unless parent.nil?
|
3108
|
+
command.query['fields'] = fields unless fields.nil?
|
3109
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3110
|
+
execute_or_queue_command(command, &block)
|
3111
|
+
end
|
3112
|
+
|
3113
|
+
# Deletes the specified conversation profile.
|
3114
|
+
# @param [String] name
|
3115
|
+
# Required. The name of the conversation profile to delete. Format: `projects//
|
3116
|
+
# locations//conversationProfiles/`.
|
3117
|
+
# @param [String] fields
|
3118
|
+
# Selector specifying which fields to include in a partial response.
|
3119
|
+
# @param [String] quota_user
|
3120
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3121
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3122
|
+
# @param [Google::Apis::RequestOptions] options
|
3123
|
+
# Request-specific options
|
3124
|
+
#
|
3125
|
+
# @yield [result, err] Result & error if block supplied
|
3126
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
3127
|
+
# @yieldparam err [StandardError] error object if request failed
|
3128
|
+
#
|
3129
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
3130
|
+
#
|
3131
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3132
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3133
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3134
|
+
def delete_project_conversation_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
3135
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
3136
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
3137
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
3138
|
+
command.params['name'] = name unless name.nil?
|
3139
|
+
command.query['fields'] = fields unless fields.nil?
|
3140
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3141
|
+
execute_or_queue_command(command, &block)
|
3142
|
+
end
|
3143
|
+
|
3144
|
+
# Retrieves the specified conversation profile.
|
3145
|
+
# @param [String] name
|
3146
|
+
# Required. The resource name of the conversation profile. Format: `projects//
|
3147
|
+
# locations//conversationProfiles/`.
|
3148
|
+
# @param [String] fields
|
3149
|
+
# Selector specifying which fields to include in a partial response.
|
3150
|
+
# @param [String] quota_user
|
3151
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3152
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3153
|
+
# @param [Google::Apis::RequestOptions] options
|
3154
|
+
# Request-specific options
|
3155
|
+
#
|
3156
|
+
# @yield [result, err] Result & error if block supplied
|
3157
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile] parsed result object
|
3158
|
+
# @yieldparam err [StandardError] error object if request failed
|
3159
|
+
#
|
3160
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile]
|
3161
|
+
#
|
3162
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3163
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3164
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3165
|
+
def get_project_conversation_profile(name, fields: nil, quota_user: nil, options: nil, &block)
|
3166
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
3167
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
|
3168
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile
|
3169
|
+
command.params['name'] = name unless name.nil?
|
3170
|
+
command.query['fields'] = fields unless fields.nil?
|
3171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3172
|
+
execute_or_queue_command(command, &block)
|
3173
|
+
end
|
3174
|
+
|
3175
|
+
# Returns the list of all conversation profiles in the specified project.
|
3176
|
+
# @param [String] parent
|
3177
|
+
# Required. The project to list all conversation profiles from. Format: `
|
3178
|
+
# projects//locations/`.
|
3179
|
+
# @param [Fixnum] page_size
|
3180
|
+
# The maximum number of items to return in a single page. By default 100 and at
|
3181
|
+
# most 1000.
|
3182
|
+
# @param [String] page_token
|
3183
|
+
# The next_page_token value returned from a previous list request.
|
3184
|
+
# @param [String] fields
|
3185
|
+
# Selector specifying which fields to include in a partial response.
|
3186
|
+
# @param [String] quota_user
|
3187
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3188
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3189
|
+
# @param [Google::Apis::RequestOptions] options
|
3190
|
+
# Request-specific options
|
3191
|
+
#
|
3192
|
+
# @yield [result, err] Result & error if block supplied
|
3193
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse] parsed result object
|
3194
|
+
# @yieldparam err [StandardError] error object if request failed
|
3195
|
+
#
|
3196
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListConversationProfilesResponse]
|
2832
3197
|
#
|
2833
3198
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2834
3199
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -3814,7 +4179,9 @@ module Google
|
|
3814
4179
|
execute_or_queue_command(command, &block)
|
3815
4180
|
end
|
3816
4181
|
|
3817
|
-
# Create documents by importing data from external sources.
|
4182
|
+
# Create documents by importing data from external sources. Dialogflow supports
|
4183
|
+
# up to 350 documents in each request. If you try to import more, Dialogflow
|
4184
|
+
# will return an error.
|
3818
4185
|
# @param [String] parent
|
3819
4186
|
# Required. The knowledge base to import documents into. Format: `projects//
|
3820
4187
|
# locations//knowledgeBases/`.
|
@@ -4752,6 +5119,144 @@ module Google
|
|
4752
5119
|
execute_or_queue_command(command, &block)
|
4753
5120
|
end
|
4754
5121
|
|
5122
|
+
# Creates an agent environment.
|
5123
|
+
# @param [String] parent
|
5124
|
+
# Required. The agent to create an environment for. Supported formats: - `
|
5125
|
+
# projects//agent` - `projects//locations//agent`
|
5126
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
5127
|
+
# @param [String] environment_id
|
5128
|
+
# Required. The unique id of the new environment.
|
5129
|
+
# @param [String] fields
|
5130
|
+
# Selector specifying which fields to include in a partial response.
|
5131
|
+
# @param [String] quota_user
|
5132
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5133
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5134
|
+
# @param [Google::Apis::RequestOptions] options
|
5135
|
+
# Request-specific options
|
5136
|
+
#
|
5137
|
+
# @yield [result, err] Result & error if block supplied
|
5138
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
5139
|
+
# @yieldparam err [StandardError] error object if request failed
|
5140
|
+
#
|
5141
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
5142
|
+
#
|
5143
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5144
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5145
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5146
|
+
def create_project_location_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5147
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
|
5148
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5149
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
5150
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5151
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
5152
|
+
command.params['parent'] = parent unless parent.nil?
|
5153
|
+
command.query['environmentId'] = environment_id unless environment_id.nil?
|
5154
|
+
command.query['fields'] = fields unless fields.nil?
|
5155
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5156
|
+
execute_or_queue_command(command, &block)
|
5157
|
+
end
|
5158
|
+
|
5159
|
+
# Deletes the specified agent environment.
|
5160
|
+
# @param [String] name
|
5161
|
+
# Required. The name of the environment to delete. / Format: - `projects//agent/
|
5162
|
+
# environments/` - `projects//locations//agent/environments/`
|
5163
|
+
# @param [String] fields
|
5164
|
+
# Selector specifying which fields to include in a partial response.
|
5165
|
+
# @param [String] quota_user
|
5166
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5167
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5168
|
+
# @param [Google::Apis::RequestOptions] options
|
5169
|
+
# Request-specific options
|
5170
|
+
#
|
5171
|
+
# @yield [result, err] Result & error if block supplied
|
5172
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
5173
|
+
# @yieldparam err [StandardError] error object if request failed
|
5174
|
+
#
|
5175
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
5176
|
+
#
|
5177
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5178
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5179
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5180
|
+
def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
5181
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
5182
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
5183
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
5184
|
+
command.params['name'] = name unless name.nil?
|
5185
|
+
command.query['fields'] = fields unless fields.nil?
|
5186
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5187
|
+
execute_or_queue_command(command, &block)
|
5188
|
+
end
|
5189
|
+
|
5190
|
+
# Retrieves the specified agent environment.
|
5191
|
+
# @param [String] name
|
5192
|
+
# Required. The name of the environment. Supported formats: - `projects//agent/
|
5193
|
+
# environments/` - `projects//locations//agent/environments/`
|
5194
|
+
# @param [String] fields
|
5195
|
+
# Selector specifying which fields to include in a partial response.
|
5196
|
+
# @param [String] quota_user
|
5197
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5198
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5199
|
+
# @param [Google::Apis::RequestOptions] options
|
5200
|
+
# Request-specific options
|
5201
|
+
#
|
5202
|
+
# @yield [result, err] Result & error if block supplied
|
5203
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
5204
|
+
# @yieldparam err [StandardError] error object if request failed
|
5205
|
+
#
|
5206
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
5207
|
+
#
|
5208
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5209
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5210
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5211
|
+
def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
5212
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
5213
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5214
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
5215
|
+
command.params['name'] = name unless name.nil?
|
5216
|
+
command.query['fields'] = fields unless fields.nil?
|
5217
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5218
|
+
execute_or_queue_command(command, &block)
|
5219
|
+
end
|
5220
|
+
|
5221
|
+
# Gets the history of the specified environment.
|
5222
|
+
# @param [String] parent
|
5223
|
+
# Required. The name of the environment to retrieve history for. Supported
|
5224
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
5225
|
+
# environments/`
|
5226
|
+
# @param [Fixnum] page_size
|
5227
|
+
# Optional. The maximum number of items to return in a single page. By default
|
5228
|
+
# 100 and at most 1000.
|
5229
|
+
# @param [String] page_token
|
5230
|
+
# Optional. The next_page_token value returned from a previous list request.
|
5231
|
+
# @param [String] fields
|
5232
|
+
# Selector specifying which fields to include in a partial response.
|
5233
|
+
# @param [String] quota_user
|
5234
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5235
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5236
|
+
# @param [Google::Apis::RequestOptions] options
|
5237
|
+
# Request-specific options
|
5238
|
+
#
|
5239
|
+
# @yield [result, err] Result & error if block supplied
|
5240
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
|
5241
|
+
# @yieldparam err [StandardError] error object if request failed
|
5242
|
+
#
|
5243
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
|
5244
|
+
#
|
5245
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5246
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5247
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5248
|
+
def get_project_location_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5249
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
|
5250
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
|
5251
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
|
5252
|
+
command.params['parent'] = parent unless parent.nil?
|
5253
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5254
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5255
|
+
command.query['fields'] = fields unless fields.nil?
|
5256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5257
|
+
execute_or_queue_command(command, &block)
|
5258
|
+
end
|
5259
|
+
|
4755
5260
|
# Returns the list of all non-draft environments of the specified agent.
|
4756
5261
|
# @param [String] parent
|
4757
5262
|
# Required. The agent to list all environments from. Format: - `projects//agent`
|
@@ -4790,6 +5295,59 @@ module Google
|
|
4790
5295
|
execute_or_queue_command(command, &block)
|
4791
5296
|
end
|
4792
5297
|
|
5298
|
+
# Updates the specified agent environment. This method allows you to deploy new
|
5299
|
+
# agent versions into the environment. When an environment is pointed to a new
|
5300
|
+
# agent version by setting `environment.agent_version`, the environment is
|
5301
|
+
# temporarily set to the `LOADING` state. During that time, the environment
|
5302
|
+
# keeps on serving the previous version of the agent. After the new agent
|
5303
|
+
# version is done loading, the environment is set back to the `RUNNING` state.
|
5304
|
+
# You can use "-" as Environment ID in environment name to update version in "
|
5305
|
+
# draft" environment. WARNING: this will negate all recent changes to draft and
|
5306
|
+
# can't be undone. You may want to save the draft to a version before calling
|
5307
|
+
# this function.
|
5308
|
+
# @param [String] name
|
5309
|
+
# Output only. The unique identifier of this agent environment. Supported
|
5310
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
5311
|
+
# environments/`
|
5312
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
5313
|
+
# @param [Boolean] allow_load_to_draft_and_discard_changes
|
5314
|
+
# Optional. This field is used to prevent accidental overwrite of the draft
|
5315
|
+
# environment, which is an operation that cannot be undone. To confirm that the
|
5316
|
+
# caller desires this overwrite, this field must be explicitly set to true when
|
5317
|
+
# updating the draft environment (environment ID = `-`).
|
5318
|
+
# @param [String] update_mask
|
5319
|
+
# Required. The mask to control which fields get updated.
|
5320
|
+
# @param [String] fields
|
5321
|
+
# Selector specifying which fields to include in a partial response.
|
5322
|
+
# @param [String] quota_user
|
5323
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5324
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5325
|
+
# @param [Google::Apis::RequestOptions] options
|
5326
|
+
# Request-specific options
|
5327
|
+
#
|
5328
|
+
# @yield [result, err] Result & error if block supplied
|
5329
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
5330
|
+
# @yieldparam err [StandardError] error object if request failed
|
5331
|
+
#
|
5332
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
5333
|
+
#
|
5334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5337
|
+
def patch_project_location_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, allow_load_to_draft_and_discard_changes: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5338
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
5339
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5340
|
+
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
5341
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
5342
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
5343
|
+
command.params['name'] = name unless name.nil?
|
5344
|
+
command.query['allowLoadToDraftAndDiscardChanges'] = allow_load_to_draft_and_discard_changes unless allow_load_to_draft_and_discard_changes.nil?
|
5345
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5346
|
+
command.query['fields'] = fields unless fields.nil?
|
5347
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5348
|
+
execute_or_queue_command(command, &block)
|
5349
|
+
end
|
5350
|
+
|
4793
5351
|
# Deletes all active contexts in the specified session.
|
4794
5352
|
# @param [String] parent
|
4795
5353
|
# Required. The name of the session to delete all contexts from. Supported
|
@@ -6050,6 +6608,180 @@ module Google
|
|
6050
6608
|
execute_or_queue_command(command, &block)
|
6051
6609
|
end
|
6052
6610
|
|
6611
|
+
# Creates an agent version. The new version points to the agent instance in the "
|
6612
|
+
# default" environment.
|
6613
|
+
# @param [String] parent
|
6614
|
+
# Required. The agent to create a version for. Supported formats: - `projects//
|
6615
|
+
# agent` - `projects//locations//agent`
|
6616
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
6617
|
+
# @param [String] fields
|
6618
|
+
# Selector specifying which fields to include in a partial response.
|
6619
|
+
# @param [String] quota_user
|
6620
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6621
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6622
|
+
# @param [Google::Apis::RequestOptions] options
|
6623
|
+
# Request-specific options
|
6624
|
+
#
|
6625
|
+
# @yield [result, err] Result & error if block supplied
|
6626
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
6627
|
+
# @yieldparam err [StandardError] error object if request failed
|
6628
|
+
#
|
6629
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
6630
|
+
#
|
6631
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6632
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6633
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6634
|
+
def create_project_location_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
6635
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
|
6636
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6637
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
6638
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6639
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
6640
|
+
command.params['parent'] = parent unless parent.nil?
|
6641
|
+
command.query['fields'] = fields unless fields.nil?
|
6642
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6643
|
+
execute_or_queue_command(command, &block)
|
6644
|
+
end
|
6645
|
+
|
6646
|
+
# Delete the specified agent version.
|
6647
|
+
# @param [String] name
|
6648
|
+
# Required. The name of the version to delete. Supported formats: - `projects//
|
6649
|
+
# agent/versions/` - `projects//locations//agent/versions/`
|
6650
|
+
# @param [String] fields
|
6651
|
+
# Selector specifying which fields to include in a partial response.
|
6652
|
+
# @param [String] quota_user
|
6653
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6654
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6655
|
+
# @param [Google::Apis::RequestOptions] options
|
6656
|
+
# Request-specific options
|
6657
|
+
#
|
6658
|
+
# @yield [result, err] Result & error if block supplied
|
6659
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
6660
|
+
# @yieldparam err [StandardError] error object if request failed
|
6661
|
+
#
|
6662
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
6663
|
+
#
|
6664
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6665
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6666
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6667
|
+
def delete_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
6668
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
6669
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
6670
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
6671
|
+
command.params['name'] = name unless name.nil?
|
6672
|
+
command.query['fields'] = fields unless fields.nil?
|
6673
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6674
|
+
execute_or_queue_command(command, &block)
|
6675
|
+
end
|
6676
|
+
|
6677
|
+
# Retrieves the specified agent version.
|
6678
|
+
# @param [String] name
|
6679
|
+
# Required. The name of the version. Supported formats: - `projects//agent/
|
6680
|
+
# versions/` - `projects//locations//agent/versions/`
|
6681
|
+
# @param [String] fields
|
6682
|
+
# Selector specifying which fields to include in a partial response.
|
6683
|
+
# @param [String] quota_user
|
6684
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6685
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6686
|
+
# @param [Google::Apis::RequestOptions] options
|
6687
|
+
# Request-specific options
|
6688
|
+
#
|
6689
|
+
# @yield [result, err] Result & error if block supplied
|
6690
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
6691
|
+
# @yieldparam err [StandardError] error object if request failed
|
6692
|
+
#
|
6693
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
6694
|
+
#
|
6695
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6696
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6697
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6698
|
+
def get_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
6699
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
6700
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6701
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
6702
|
+
command.params['name'] = name unless name.nil?
|
6703
|
+
command.query['fields'] = fields unless fields.nil?
|
6704
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6705
|
+
execute_or_queue_command(command, &block)
|
6706
|
+
end
|
6707
|
+
|
6708
|
+
# Returns the list of all versions of the specified agent.
|
6709
|
+
# @param [String] parent
|
6710
|
+
# Required. The agent to list all versions from. Supported formats: - `projects//
|
6711
|
+
# agent` - `projects//locations//agent`
|
6712
|
+
# @param [Fixnum] page_size
|
6713
|
+
# Optional. The maximum number of items to return in a single page. By default
|
6714
|
+
# 100 and at most 1000.
|
6715
|
+
# @param [String] page_token
|
6716
|
+
# Optional. The next_page_token value returned from a previous list request.
|
6717
|
+
# @param [String] fields
|
6718
|
+
# Selector specifying which fields to include in a partial response.
|
6719
|
+
# @param [String] quota_user
|
6720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6722
|
+
# @param [Google::Apis::RequestOptions] options
|
6723
|
+
# Request-specific options
|
6724
|
+
#
|
6725
|
+
# @yield [result, err] Result & error if block supplied
|
6726
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
|
6727
|
+
# @yieldparam err [StandardError] error object if request failed
|
6728
|
+
#
|
6729
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
|
6730
|
+
#
|
6731
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6732
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6733
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6734
|
+
def list_project_location_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6735
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
|
6736
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
|
6737
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
|
6738
|
+
command.params['parent'] = parent unless parent.nil?
|
6739
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
6740
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6741
|
+
command.query['fields'] = fields unless fields.nil?
|
6742
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6743
|
+
execute_or_queue_command(command, &block)
|
6744
|
+
end
|
6745
|
+
|
6746
|
+
# Updates the specified agent version. Note that this method does not allow you
|
6747
|
+
# to update the state of the agent the given version points to. It allows you to
|
6748
|
+
# update only mutable properties of the version resource.
|
6749
|
+
# @param [String] name
|
6750
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
6751
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
6752
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
6753
|
+
# @param [String] update_mask
|
6754
|
+
# Required. The mask to control which fields get updated.
|
6755
|
+
# @param [String] fields
|
6756
|
+
# Selector specifying which fields to include in a partial response.
|
6757
|
+
# @param [String] quota_user
|
6758
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
6759
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
6760
|
+
# @param [Google::Apis::RequestOptions] options
|
6761
|
+
# Request-specific options
|
6762
|
+
#
|
6763
|
+
# @yield [result, err] Result & error if block supplied
|
6764
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
6765
|
+
# @yieldparam err [StandardError] error object if request failed
|
6766
|
+
#
|
6767
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
6768
|
+
#
|
6769
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6770
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6771
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6772
|
+
def patch_project_location_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
6773
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
6774
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6775
|
+
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
6776
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
6777
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
6778
|
+
command.params['name'] = name unless name.nil?
|
6779
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
6780
|
+
command.query['fields'] = fields unless fields.nil?
|
6781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6782
|
+
execute_or_queue_command(command, &block)
|
6783
|
+
end
|
6784
|
+
|
6053
6785
|
# Deprecated. Retrieves a specific answer record.
|
6054
6786
|
# @param [String] name
|
6055
6787
|
# Required. The name of the answer record to retrieve. Format: `projects//
|
@@ -7170,7 +7902,9 @@ module Google
|
|
7170
7902
|
execute_or_queue_command(command, &block)
|
7171
7903
|
end
|
7172
7904
|
|
7173
|
-
# Create documents by importing data from external sources.
|
7905
|
+
# Create documents by importing data from external sources. Dialogflow supports
|
7906
|
+
# up to 350 documents in each request. If you try to import more, Dialogflow
|
7907
|
+
# will return an error.
|
7174
7908
|
# @param [String] parent
|
7175
7909
|
# Required. The knowledge base to import documents into. Format: `projects//
|
7176
7910
|
# locations//knowledgeBases/`.
|