google-api-client 0.37.2 → 0.37.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +74 -0
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +11 -1
- data/generated/google/apis/accesscontextmanager_v1/representations.rb +1 -0
- data/generated/google/apis/accesscontextmanager_v1/service.rb +6 -5
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +2 -1
- data/generated/google/apis/accesscontextmanager_v1beta/service.rb +6 -5
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +7 -71
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +0 -31
- data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +111 -9
- data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +56 -0
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +151 -0
- data/generated/google/apis/billingbudgets_v1beta1.rb +1 -1
- data/generated/google/apis/billingbudgets_v1beta1/classes.rb +2 -2
- data/generated/google/apis/billingbudgets_v1beta1/service.rb +11 -0
- data/generated/google/apis/chat_v1.rb +1 -1
- data/generated/google/apis/chat_v1/classes.rb +4 -2
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +23 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +3 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1/service.rb +0 -5
- data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
- data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
- data/generated/google/apis/clouddebugger_v2.rb +2 -2
- data/generated/google/apis/clouddebugger_v2/service.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +2 -2
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
- data/generated/google/apis/cloudidentity_v1beta1/classes.rb +2 -2
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +30 -0
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2.rb +4 -4
- data/generated/google/apis/cloudtrace_v2/service.rb +3 -3
- data/generated/google/apis/cloudtrace_v2beta1.rb +4 -4
- data/generated/google/apis/cloudtrace_v2beta1/service.rb +3 -3
- data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
- data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +2 -2
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +224 -66
- data/generated/google/apis/container_v1/representations.rb +70 -0
- data/generated/google/apis/container_v1/service.rb +116 -116
- data/generated/google/apis/container_v1beta1/classes.rb +18 -4
- data/generated/google/apis/container_v1beta1/representations.rb +2 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +18 -2
- data/generated/google/apis/content_v2/service.rb +3 -1
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +51 -0
- data/generated/google/apis/content_v2_1/representations.rb +15 -0
- data/generated/google/apis/content_v2_1/service.rb +73 -1
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +27 -0
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +15 -0
- data/generated/google/apis/datacatalog_v1beta1/service.rb +43 -0
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +15 -0
- data/generated/google/apis/dataproc_v1/representations.rb +2 -0
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2/service.rb +555 -16
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +11 -3
- data/generated/google/apis/dialogflow_v2beta1/service.rb +26 -42
- data/generated/google/apis/displayvideo_v1.rb +1 -1
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +417 -2
- data/generated/google/apis/dlp_v2/representations.rb +175 -0
- data/generated/google/apis/dlp_v2/service.rb +116 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +1 -145
- data/generated/google/apis/file_v1/representations.rb +0 -34
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +1 -145
- data/generated/google/apis/file_v1beta1/representations.rb +0 -34
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/service.rb +3 -3
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +4 -0
- data/generated/google/apis/iamcredentials_v1.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/lifesciences_v2beta.rb +1 -1
- data/generated/google/apis/logging_v2.rb +6 -7
- data/generated/google/apis/logging_v2/service.rb +5 -6
- data/generated/google/apis/manufacturers_v1.rb +1 -1
- data/generated/google/apis/manufacturers_v1/classes.rb +7 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +1 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +966 -21
- data/generated/google/apis/ml_v1/representations.rb +477 -0
- data/generated/google/apis/ml_v1/service.rb +491 -0
- data/generated/google/apis/{toolresults_v1.rb → networkmanagement_v1beta1.rb} +13 -9
- data/generated/google/apis/networkmanagement_v1beta1/classes.rb +1856 -0
- data/generated/google/apis/networkmanagement_v1beta1/representations.rb +661 -0
- data/generated/google/apis/networkmanagement_v1beta1/service.rb +664 -0
- data/generated/google/apis/osconfig_v1beta.rb +1 -1
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/recommender_v1beta1.rb +1 -1
- data/generated/google/apis/recommender_v1beta1/classes.rb +214 -0
- data/generated/google/apis/recommender_v1beta1/representations.rb +96 -0
- data/generated/google/apis/recommender_v1beta1/service.rb +123 -0
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +84 -0
- data/generated/google/apis/run_v1/representations.rb +44 -0
- data/generated/google/apis/run_v1/service.rb +138 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +154 -6
- data/generated/google/apis/securitycenter_v1/representations.rb +61 -0
- data/generated/google/apis/securitycenter_v1/service.rb +194 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1alpha1/classes.rb +171 -0
- data/generated/google/apis/securitycenter_v1p1alpha1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1/classes.rb +183 -6
- data/generated/google/apis/securitycenter_v1p1beta1/representations.rb +52 -0
- data/generated/google/apis/securitycenter_v1p1beta1/service.rb +12 -6
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +8 -7
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +58 -1
- data/generated/google/apis/servicemanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +8 -7
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +280 -7
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +117 -0
- data/generated/google/apis/serviceusage_v1beta1/service.rb +515 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/testing_v1.rb +1 -1
- data/generated/google/apis/testing_v1/classes.rb +7 -1
- data/generated/google/apis/testing_v1/representations.rb +1 -0
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3/classes.rb +6 -3
- data/generated/google/apis/videointelligence_v1.rb +1 -1
- data/generated/google/apis/videointelligence_v1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
- data/generated/google/apis/videointelligence_v1beta2/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +13 -13
- data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
- data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +13 -13
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/lib/google/apis/core/api_command.rb +4 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +7 -7
- data/generated/google/apis/toolresults_v1/classes.rb +0 -696
- data/generated/google/apis/toolresults_v1/representations.rb +0 -438
- data/generated/google/apis/toolresults_v1/service.rb +0 -59
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/dataproc/
|
26
26
|
module DataprocV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20200220'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -1274,6 +1274,11 @@ module Google
|
|
1274
1274
|
# @return [Fixnum]
|
1275
1275
|
attr_accessor :num_instances
|
1276
1276
|
|
1277
|
+
# Optional. Specifies the preemptibility of the instance group.
|
1278
|
+
# Corresponds to the JSON property `preemptibility`
|
1279
|
+
# @return [String]
|
1280
|
+
attr_accessor :preemptibility
|
1281
|
+
|
1277
1282
|
def initialize(**args)
|
1278
1283
|
update!(**args)
|
1279
1284
|
end
|
@@ -1289,6 +1294,7 @@ module Google
|
|
1289
1294
|
@managed_group_config = args[:managed_group_config] if args.key?(:managed_group_config)
|
1290
1295
|
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
|
1291
1296
|
@num_instances = args[:num_instances] if args.key?(:num_instances)
|
1297
|
+
@preemptibility = args[:preemptibility] if args.key?(:preemptibility)
|
1292
1298
|
end
|
1293
1299
|
end
|
1294
1300
|
|
@@ -1336,6 +1342,14 @@ module Google
|
|
1336
1342
|
class Job
|
1337
1343
|
include Google::Apis::Core::Hashable
|
1338
1344
|
|
1345
|
+
# Output only. Indicates whether the job is completed. If the value is false,
|
1346
|
+
# the job is still in progress. If true, the job is completed, and status.state
|
1347
|
+
# field will indicate if it was successful, failed, or cancelled.
|
1348
|
+
# Corresponds to the JSON property `done`
|
1349
|
+
# @return [Boolean]
|
1350
|
+
attr_accessor :done
|
1351
|
+
alias_method :done?, :done
|
1352
|
+
|
1339
1353
|
# Output only. If present, the location of miscellaneous control files which may
|
1340
1354
|
# be used as part of job setup and handling. If not present, control files may
|
1341
1355
|
# be placed in the same location as driver_output_uri.
|
@@ -1452,6 +1466,7 @@ module Google
|
|
1452
1466
|
|
1453
1467
|
# Update properties of this object
|
1454
1468
|
def update!(**args)
|
1469
|
+
@done = args[:done] if args.key?(:done)
|
1455
1470
|
@driver_control_files_uri = args[:driver_control_files_uri] if args.key?(:driver_control_files_uri)
|
1456
1471
|
@driver_output_resource_uri = args[:driver_output_resource_uri] if args.key?(:driver_output_resource_uri)
|
1457
1472
|
@hadoop_job = args[:hadoop_job] if args.key?(:hadoop_job)
|
@@ -759,6 +759,7 @@ module Google
|
|
759
759
|
|
760
760
|
property :min_cpu_platform, as: 'minCpuPlatform'
|
761
761
|
property :num_instances, as: 'numInstances'
|
762
|
+
property :preemptibility, as: 'preemptibility'
|
762
763
|
end
|
763
764
|
end
|
764
765
|
|
@@ -774,6 +775,7 @@ module Google
|
|
774
775
|
class Job
|
775
776
|
# @private
|
776
777
|
class Representation < Google::Apis::Core::JsonRepresentation
|
778
|
+
property :done, as: 'done'
|
777
779
|
property :driver_control_files_uri, as: 'driverControlFilesUri'
|
778
780
|
property :driver_output_resource_uri, as: 'driverOutputResourceUri'
|
779
781
|
property :hadoop_job, as: 'hadoopJob', class: Google::Apis::DataprocV1::HadoopJob, decorator: Google::Apis::DataprocV1::HadoopJob::Representation
|
@@ -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 = '20200303'
|
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'
|
@@ -459,9 +459,13 @@ module Google
|
|
459
459
|
attr_accessor :lifespan_count
|
460
460
|
|
461
461
|
# Required. The unique identifier of the context. Format:
|
462
|
-
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID
|
462
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
463
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
464
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
463
465
|
# The `Context ID` is always converted to lowercase, may only contain
|
464
|
-
# characters in
|
466
|
+
# characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
|
467
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
468
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
465
469
|
# The following context names are reserved for internal use by Dialogflow.
|
466
470
|
# You should not use these contexts or create contexts with these names:
|
467
471
|
# * `__system_counters__`
|
@@ -3056,7 +3060,11 @@ module Google
|
|
3056
3060
|
|
3057
3061
|
# Required. The unique identifier of this session entity type. Format:
|
3058
3062
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
3059
|
-
# Display Name
|
3063
|
+
# Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
|
3064
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
3065
|
+
# Name>`.
|
3066
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
3067
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3060
3068
|
# `<Entity Type Display Name>` must be the display name of an existing entity
|
3061
3069
|
# type in the same agent that will be overridden or supplemented.
|
3062
3070
|
# Corresponds to the JSON property `name`
|
@@ -826,6 +826,497 @@ module Google
|
|
826
826
|
execute_or_queue_command(command, &block)
|
827
827
|
end
|
828
828
|
|
829
|
+
# Deletes all active contexts in the specified session.
|
830
|
+
# @param [String] parent
|
831
|
+
# Required. The name of the session to delete all contexts from. Format:
|
832
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
833
|
+
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
834
|
+
# ID>`.
|
835
|
+
# If `Environment ID` is not specified we assume default 'draft' environment.
|
836
|
+
# If `User ID` is not specified, we assume default '-' user.
|
837
|
+
# @param [String] fields
|
838
|
+
# Selector specifying which fields to include in a partial response.
|
839
|
+
# @param [String] quota_user
|
840
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
841
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
842
|
+
# @param [Google::Apis::RequestOptions] options
|
843
|
+
# Request-specific options
|
844
|
+
#
|
845
|
+
# @yield [result, err] Result & error if block supplied
|
846
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
|
847
|
+
# @yieldparam err [StandardError] error object if request failed
|
848
|
+
#
|
849
|
+
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
850
|
+
#
|
851
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
852
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
853
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
854
|
+
def delete_project_agent_environment_user_session_contexts(parent, fields: nil, quota_user: nil, options: nil, &block)
|
855
|
+
command = make_simple_command(:delete, 'v2/{+parent}/contexts', options)
|
856
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
857
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
858
|
+
command.params['parent'] = parent unless parent.nil?
|
859
|
+
command.query['fields'] = fields unless fields.nil?
|
860
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
861
|
+
execute_or_queue_command(command, &block)
|
862
|
+
end
|
863
|
+
|
864
|
+
# Processes a natural language query and returns structured, actionable data
|
865
|
+
# as a result. This method is not idempotent, because it may cause contexts
|
866
|
+
# and session entity types to be updated, which in turn might affect
|
867
|
+
# results of future queries.
|
868
|
+
# @param [String] session
|
869
|
+
# Required. The name of the session this query is sent to. Format:
|
870
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
871
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
872
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
873
|
+
# default 'draft' environment. If `User ID` is not specified, we are using
|
874
|
+
# "-". It's up to the API caller to choose an appropriate `Session ID` and
|
875
|
+
# `User Id`. They can be a random number or some type of user and session
|
876
|
+
# identifiers (preferably hashed). The length of the `Session ID` and
|
877
|
+
# `User ID` must not exceed 36 characters.
|
878
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_request_object
|
879
|
+
# @param [String] fields
|
880
|
+
# Selector specifying which fields to include in a partial response.
|
881
|
+
# @param [String] quota_user
|
882
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
883
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
884
|
+
# @param [Google::Apis::RequestOptions] options
|
885
|
+
# Request-specific options
|
886
|
+
#
|
887
|
+
# @yield [result, err] Result & error if block supplied
|
888
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse] parsed result object
|
889
|
+
# @yieldparam err [StandardError] error object if request failed
|
890
|
+
#
|
891
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse]
|
892
|
+
#
|
893
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
894
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
895
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
896
|
+
def detect_project_agent_environment_user_session_intent(session, google_cloud_dialogflow_v2_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
897
|
+
command = make_simple_command(:post, 'v2/{+session}:detectIntent', options)
|
898
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest::Representation
|
899
|
+
command.request_object = google_cloud_dialogflow_v2_detect_intent_request_object
|
900
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse::Representation
|
901
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse
|
902
|
+
command.params['session'] = session unless session.nil?
|
903
|
+
command.query['fields'] = fields unless fields.nil?
|
904
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
905
|
+
execute_or_queue_command(command, &block)
|
906
|
+
end
|
907
|
+
|
908
|
+
# Creates a context.
|
909
|
+
# If the specified context already exists, overrides the context.
|
910
|
+
# @param [String] parent
|
911
|
+
# Required. The session to create a context for.
|
912
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
913
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
914
|
+
# ID>/sessions/<Session ID>`.
|
915
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
916
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
917
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
918
|
+
# @param [String] fields
|
919
|
+
# Selector specifying which fields to include in a partial response.
|
920
|
+
# @param [String] quota_user
|
921
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
922
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
923
|
+
# @param [Google::Apis::RequestOptions] options
|
924
|
+
# Request-specific options
|
925
|
+
#
|
926
|
+
# @yield [result, err] Result & error if block supplied
|
927
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object
|
928
|
+
# @yieldparam err [StandardError] error object if request failed
|
929
|
+
#
|
930
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context]
|
931
|
+
#
|
932
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
933
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
934
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
935
|
+
def create_project_agent_environment_user_session_context(parent, google_cloud_dialogflow_v2_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
936
|
+
command = make_simple_command(:post, 'v2/{+parent}/contexts', options)
|
937
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
938
|
+
command.request_object = google_cloud_dialogflow_v2_context_object
|
939
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
940
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
|
941
|
+
command.params['parent'] = parent unless parent.nil?
|
942
|
+
command.query['fields'] = fields unless fields.nil?
|
943
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
944
|
+
execute_or_queue_command(command, &block)
|
945
|
+
end
|
946
|
+
|
947
|
+
# Deletes the specified context.
|
948
|
+
# @param [String] name
|
949
|
+
# Required. The name of the context to delete. Format:
|
950
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
951
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
952
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
953
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
954
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
955
|
+
# @param [String] fields
|
956
|
+
# Selector specifying which fields to include in a partial response.
|
957
|
+
# @param [String] quota_user
|
958
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
959
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
960
|
+
# @param [Google::Apis::RequestOptions] options
|
961
|
+
# Request-specific options
|
962
|
+
#
|
963
|
+
# @yield [result, err] Result & error if block supplied
|
964
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
|
965
|
+
# @yieldparam err [StandardError] error object if request failed
|
966
|
+
#
|
967
|
+
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
968
|
+
#
|
969
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
970
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
971
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
972
|
+
def delete_project_agent_environment_user_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
973
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
974
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
975
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
976
|
+
command.params['name'] = name unless name.nil?
|
977
|
+
command.query['fields'] = fields unless fields.nil?
|
978
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
979
|
+
execute_or_queue_command(command, &block)
|
980
|
+
end
|
981
|
+
|
982
|
+
# Retrieves the specified context.
|
983
|
+
# @param [String] name
|
984
|
+
# Required. The name of the context. Format:
|
985
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
986
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
987
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
988
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
989
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
990
|
+
# @param [String] fields
|
991
|
+
# Selector specifying which fields to include in a partial response.
|
992
|
+
# @param [String] quota_user
|
993
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
994
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
995
|
+
# @param [Google::Apis::RequestOptions] options
|
996
|
+
# Request-specific options
|
997
|
+
#
|
998
|
+
# @yield [result, err] Result & error if block supplied
|
999
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object
|
1000
|
+
# @yieldparam err [StandardError] error object if request failed
|
1001
|
+
#
|
1002
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context]
|
1003
|
+
#
|
1004
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1005
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1006
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1007
|
+
def get_project_agent_environment_user_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
1008
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1009
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
1010
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
|
1011
|
+
command.params['name'] = name unless name.nil?
|
1012
|
+
command.query['fields'] = fields unless fields.nil?
|
1013
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1014
|
+
execute_or_queue_command(command, &block)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
# Returns the list of all contexts in the specified session.
|
1018
|
+
# @param [String] parent
|
1019
|
+
# Required. The session to list all contexts from.
|
1020
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
1021
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1022
|
+
# ID>/sessions/<Session ID>`.
|
1023
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1024
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1025
|
+
# @param [Fixnum] page_size
|
1026
|
+
# Optional. The maximum number of items to return in a single page. By
|
1027
|
+
# default 100 and at most 1000.
|
1028
|
+
# @param [String] page_token
|
1029
|
+
# Optional. The next_page_token value returned from a previous list request.
|
1030
|
+
# @param [String] fields
|
1031
|
+
# Selector specifying which fields to include in a partial response.
|
1032
|
+
# @param [String] quota_user
|
1033
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1034
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1035
|
+
# @param [Google::Apis::RequestOptions] options
|
1036
|
+
# Request-specific options
|
1037
|
+
#
|
1038
|
+
# @yield [result, err] Result & error if block supplied
|
1039
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse] parsed result object
|
1040
|
+
# @yieldparam err [StandardError] error object if request failed
|
1041
|
+
#
|
1042
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse]
|
1043
|
+
#
|
1044
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1045
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1046
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1047
|
+
def list_project_agent_environment_user_session_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1048
|
+
command = make_simple_command(:get, 'v2/{+parent}/contexts', options)
|
1049
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse::Representation
|
1050
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListContextsResponse
|
1051
|
+
command.params['parent'] = parent unless parent.nil?
|
1052
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1053
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1054
|
+
command.query['fields'] = fields unless fields.nil?
|
1055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1056
|
+
execute_or_queue_command(command, &block)
|
1057
|
+
end
|
1058
|
+
|
1059
|
+
# Updates the specified context.
|
1060
|
+
# @param [String] name
|
1061
|
+
# Required. The unique identifier of the context. Format:
|
1062
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
1063
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1064
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
1065
|
+
# The `Context ID` is always converted to lowercase, may only contain
|
1066
|
+
# characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
|
1067
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1068
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1069
|
+
# The following context names are reserved for internal use by Dialogflow.
|
1070
|
+
# You should not use these contexts or create contexts with these names:
|
1071
|
+
# * `__system_counters__`
|
1072
|
+
# * `*_id_dialog_context`
|
1073
|
+
# * `*_dialog_params_size`
|
1074
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
1075
|
+
# @param [String] update_mask
|
1076
|
+
# Optional. The mask to control which fields get updated.
|
1077
|
+
# @param [String] fields
|
1078
|
+
# Selector specifying which fields to include in a partial response.
|
1079
|
+
# @param [String] quota_user
|
1080
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1081
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1082
|
+
# @param [Google::Apis::RequestOptions] options
|
1083
|
+
# Request-specific options
|
1084
|
+
#
|
1085
|
+
# @yield [result, err] Result & error if block supplied
|
1086
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] parsed result object
|
1087
|
+
# @yieldparam err [StandardError] error object if request failed
|
1088
|
+
#
|
1089
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context]
|
1090
|
+
#
|
1091
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1092
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1093
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1094
|
+
def patch_project_agent_environment_user_session_context(name, google_cloud_dialogflow_v2_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1095
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1096
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
1097
|
+
command.request_object = google_cloud_dialogflow_v2_context_object
|
1098
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation
|
1099
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context
|
1100
|
+
command.params['name'] = name unless name.nil?
|
1101
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1102
|
+
command.query['fields'] = fields unless fields.nil?
|
1103
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1104
|
+
execute_or_queue_command(command, &block)
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
# Creates a session entity type.
|
1108
|
+
# If the specified session entity type already exists, overrides the session
|
1109
|
+
# entity type.
|
1110
|
+
# This method doesn't work with Google Assistant integration.
|
1111
|
+
# Contact Dialogflow support if you need to use session entities
|
1112
|
+
# with Google Assistant integration.
|
1113
|
+
# @param [String] parent
|
1114
|
+
# Required. The session to create a session entity type for.
|
1115
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
1116
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
1117
|
+
# sessions/<Session ID>`.
|
1118
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1119
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1120
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
1121
|
+
# @param [String] fields
|
1122
|
+
# Selector specifying which fields to include in a partial response.
|
1123
|
+
# @param [String] quota_user
|
1124
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1125
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1126
|
+
# @param [Google::Apis::RequestOptions] options
|
1127
|
+
# Request-specific options
|
1128
|
+
#
|
1129
|
+
# @yield [result, err] Result & error if block supplied
|
1130
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object
|
1131
|
+
# @yieldparam err [StandardError] error object if request failed
|
1132
|
+
#
|
1133
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType]
|
1134
|
+
#
|
1135
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1136
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1137
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1138
|
+
def create_project_agent_environment_user_session_entity_type(parent, google_cloud_dialogflow_v2_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
1139
|
+
command = make_simple_command(:post, 'v2/{+parent}/entityTypes', options)
|
1140
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
1141
|
+
command.request_object = google_cloud_dialogflow_v2_session_entity_type_object
|
1142
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
1143
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType
|
1144
|
+
command.params['parent'] = parent unless parent.nil?
|
1145
|
+
command.query['fields'] = fields unless fields.nil?
|
1146
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1147
|
+
execute_or_queue_command(command, &block)
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
# Deletes the specified session entity type.
|
1151
|
+
# This method doesn't work with Google Assistant integration.
|
1152
|
+
# Contact Dialogflow support if you need to use session entities
|
1153
|
+
# with Google Assistant integration.
|
1154
|
+
# @param [String] name
|
1155
|
+
# Required. The name of the entity type to delete. Format:
|
1156
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
1157
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
1158
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
1159
|
+
# Name>`.
|
1160
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1161
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1162
|
+
# @param [String] fields
|
1163
|
+
# Selector specifying which fields to include in a partial response.
|
1164
|
+
# @param [String] quota_user
|
1165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1167
|
+
# @param [Google::Apis::RequestOptions] options
|
1168
|
+
# Request-specific options
|
1169
|
+
#
|
1170
|
+
# @yield [result, err] Result & error if block supplied
|
1171
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleProtobufEmpty] parsed result object
|
1172
|
+
# @yieldparam err [StandardError] error object if request failed
|
1173
|
+
#
|
1174
|
+
# @return [Google::Apis::DialogflowV2::GoogleProtobufEmpty]
|
1175
|
+
#
|
1176
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1177
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1178
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1179
|
+
def delete_project_agent_environment_user_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
1180
|
+
command = make_simple_command(:delete, 'v2/{+name}', options)
|
1181
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleProtobufEmpty::Representation
|
1182
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleProtobufEmpty
|
1183
|
+
command.params['name'] = name unless name.nil?
|
1184
|
+
command.query['fields'] = fields unless fields.nil?
|
1185
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1186
|
+
execute_or_queue_command(command, &block)
|
1187
|
+
end
|
1188
|
+
|
1189
|
+
# Retrieves the specified session entity type.
|
1190
|
+
# This method doesn't work with Google Assistant integration.
|
1191
|
+
# Contact Dialogflow support if you need to use session entities
|
1192
|
+
# with Google Assistant integration.
|
1193
|
+
# @param [String] name
|
1194
|
+
# Required. The name of the session entity type. Format:
|
1195
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
1196
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
1197
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
1198
|
+
# Name>`.
|
1199
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1200
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1201
|
+
# @param [String] fields
|
1202
|
+
# Selector specifying which fields to include in a partial response.
|
1203
|
+
# @param [String] quota_user
|
1204
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1205
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1206
|
+
# @param [Google::Apis::RequestOptions] options
|
1207
|
+
# Request-specific options
|
1208
|
+
#
|
1209
|
+
# @yield [result, err] Result & error if block supplied
|
1210
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object
|
1211
|
+
# @yieldparam err [StandardError] error object if request failed
|
1212
|
+
#
|
1213
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType]
|
1214
|
+
#
|
1215
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1216
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1217
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1218
|
+
def get_project_agent_environment_user_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
1219
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1220
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
1221
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType
|
1222
|
+
command.params['name'] = name unless name.nil?
|
1223
|
+
command.query['fields'] = fields unless fields.nil?
|
1224
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1225
|
+
execute_or_queue_command(command, &block)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Returns the list of all session entity types in the specified session.
|
1229
|
+
# This method doesn't work with Google Assistant integration.
|
1230
|
+
# Contact Dialogflow support if you need to use session entities
|
1231
|
+
# with Google Assistant integration.
|
1232
|
+
# @param [String] parent
|
1233
|
+
# Required. The session to list all session entity types from.
|
1234
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
1235
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
1236
|
+
# sessions/<Session ID>`.
|
1237
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1238
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1239
|
+
# @param [Fixnum] page_size
|
1240
|
+
# Optional. The maximum number of items to return in a single page. By
|
1241
|
+
# default 100 and at most 1000.
|
1242
|
+
# @param [String] page_token
|
1243
|
+
# Optional. The next_page_token value returned from a previous list request.
|
1244
|
+
# @param [String] fields
|
1245
|
+
# Selector specifying which fields to include in a partial response.
|
1246
|
+
# @param [String] quota_user
|
1247
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1248
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1249
|
+
# @param [Google::Apis::RequestOptions] options
|
1250
|
+
# Request-specific options
|
1251
|
+
#
|
1252
|
+
# @yield [result, err] Result & error if block supplied
|
1253
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse] parsed result object
|
1254
|
+
# @yieldparam err [StandardError] error object if request failed
|
1255
|
+
#
|
1256
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse]
|
1257
|
+
#
|
1258
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1259
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1260
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1261
|
+
def list_project_agent_environment_user_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1262
|
+
command = make_simple_command(:get, 'v2/{+parent}/entityTypes', options)
|
1263
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse::Representation
|
1264
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListSessionEntityTypesResponse
|
1265
|
+
command.params['parent'] = parent unless parent.nil?
|
1266
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1267
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1268
|
+
command.query['fields'] = fields unless fields.nil?
|
1269
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1270
|
+
execute_or_queue_command(command, &block)
|
1271
|
+
end
|
1272
|
+
|
1273
|
+
# Updates the specified session entity type.
|
1274
|
+
# This method doesn't work with Google Assistant integration.
|
1275
|
+
# Contact Dialogflow support if you need to use session entities
|
1276
|
+
# with Google Assistant integration.
|
1277
|
+
# @param [String] name
|
1278
|
+
# Required. The unique identifier of this session entity type. Format:
|
1279
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
1280
|
+
# Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
|
1281
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
1282
|
+
# Name>`.
|
1283
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1284
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1285
|
+
# `<Entity Type Display Name>` must be the display name of an existing entity
|
1286
|
+
# type in the same agent that will be overridden or supplemented.
|
1287
|
+
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
1288
|
+
# @param [String] update_mask
|
1289
|
+
# Optional. The mask to control which fields get updated.
|
1290
|
+
# @param [String] fields
|
1291
|
+
# Selector specifying which fields to include in a partial response.
|
1292
|
+
# @param [String] quota_user
|
1293
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1294
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1295
|
+
# @param [Google::Apis::RequestOptions] options
|
1296
|
+
# Request-specific options
|
1297
|
+
#
|
1298
|
+
# @yield [result, err] Result & error if block supplied
|
1299
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] parsed result object
|
1300
|
+
# @yieldparam err [StandardError] error object if request failed
|
1301
|
+
#
|
1302
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType]
|
1303
|
+
#
|
1304
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1305
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1306
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1307
|
+
def patch_project_agent_environment_user_session_entity_type(name, google_cloud_dialogflow_v2_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1308
|
+
command = make_simple_command(:patch, 'v2/{+name}', options)
|
1309
|
+
command.request_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
1310
|
+
command.request_object = google_cloud_dialogflow_v2_session_entity_type_object
|
1311
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation
|
1312
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType
|
1313
|
+
command.params['name'] = name unless name.nil?
|
1314
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1315
|
+
command.query['fields'] = fields unless fields.nil?
|
1316
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1317
|
+
execute_or_queue_command(command, &block)
|
1318
|
+
end
|
1319
|
+
|
829
1320
|
# Deletes intents in the specified agent.
|
830
1321
|
# Operation <response: google.protobuf.Empty>
|
831
1322
|
# @param [String] parent
|
@@ -1117,7 +1608,11 @@ module Google
|
|
1117
1608
|
# Deletes all active contexts in the specified session.
|
1118
1609
|
# @param [String] parent
|
1119
1610
|
# Required. The name of the session to delete all contexts from. Format:
|
1120
|
-
# `projects/<Project ID>/agent/sessions/<Session ID
|
1611
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
1612
|
+
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
1613
|
+
# ID>`.
|
1614
|
+
# If `Environment ID` is not specified we assume default 'draft' environment.
|
1615
|
+
# If `User ID` is not specified, we assume default '-' user.
|
1121
1616
|
# @param [String] fields
|
1122
1617
|
# Selector specifying which fields to include in a partial response.
|
1123
1618
|
# @param [String] quota_user
|
@@ -1151,10 +1646,14 @@ module Google
|
|
1151
1646
|
# results of future queries.
|
1152
1647
|
# @param [String] session
|
1153
1648
|
# Required. The name of the session this query is sent to. Format:
|
1154
|
-
# `projects/<Project ID>/agent/sessions/<Session ID
|
1155
|
-
#
|
1156
|
-
#
|
1157
|
-
# ID
|
1649
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
1650
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1651
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
1652
|
+
# default 'draft' environment. If `User ID` is not specified, we are using
|
1653
|
+
# "-". It's up to the API caller to choose an appropriate `Session ID` and
|
1654
|
+
# `User Id`. They can be a random number or some type of user and session
|
1655
|
+
# identifiers (preferably hashed). The length of the `Session ID` and
|
1656
|
+
# `User ID` must not exceed 36 characters.
|
1158
1657
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentRequest] google_cloud_dialogflow_v2_detect_intent_request_object
|
1159
1658
|
# @param [String] fields
|
1160
1659
|
# Selector specifying which fields to include in a partial response.
|
@@ -1189,7 +1688,11 @@ module Google
|
|
1189
1688
|
# If the specified context already exists, overrides the context.
|
1190
1689
|
# @param [String] parent
|
1191
1690
|
# Required. The session to create a context for.
|
1192
|
-
# Format: `projects/<Project ID>/agent/sessions/<Session ID
|
1691
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
1692
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1693
|
+
# ID>/sessions/<Session ID>`.
|
1694
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1695
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1193
1696
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object
|
1194
1697
|
# @param [String] fields
|
1195
1698
|
# Selector specifying which fields to include in a partial response.
|
@@ -1223,7 +1726,11 @@ module Google
|
|
1223
1726
|
# Deletes the specified context.
|
1224
1727
|
# @param [String] name
|
1225
1728
|
# Required. The name of the context to delete. Format:
|
1226
|
-
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID
|
1729
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
1730
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1731
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
1732
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1733
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1227
1734
|
# @param [String] fields
|
1228
1735
|
# Selector specifying which fields to include in a partial response.
|
1229
1736
|
# @param [String] quota_user
|
@@ -1254,7 +1761,11 @@ module Google
|
|
1254
1761
|
# Retrieves the specified context.
|
1255
1762
|
# @param [String] name
|
1256
1763
|
# Required. The name of the context. Format:
|
1257
|
-
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID
|
1764
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
1765
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1766
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
1767
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1768
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1258
1769
|
# @param [String] fields
|
1259
1770
|
# Selector specifying which fields to include in a partial response.
|
1260
1771
|
# @param [String] quota_user
|
@@ -1285,7 +1796,11 @@ module Google
|
|
1285
1796
|
# Returns the list of all contexts in the specified session.
|
1286
1797
|
# @param [String] parent
|
1287
1798
|
# Required. The session to list all contexts from.
|
1288
|
-
# Format: `projects/<Project ID>/agent/sessions/<Session ID
|
1799
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
1800
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1801
|
+
# ID>/sessions/<Session ID>`.
|
1802
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1803
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1289
1804
|
# @param [Fixnum] page_size
|
1290
1805
|
# Optional. The maximum number of items to return in a single page. By
|
1291
1806
|
# default 100 and at most 1000.
|
@@ -1323,9 +1838,13 @@ module Google
|
|
1323
1838
|
# Updates the specified context.
|
1324
1839
|
# @param [String] name
|
1325
1840
|
# Required. The unique identifier of the context. Format:
|
1326
|
-
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID
|
1841
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
1842
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
1843
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
1327
1844
|
# The `Context ID` is always converted to lowercase, may only contain
|
1328
|
-
# characters in
|
1845
|
+
# characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
|
1846
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1847
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1329
1848
|
# The following context names are reserved for internal use by Dialogflow.
|
1330
1849
|
# You should not use these contexts or create contexts with these names:
|
1331
1850
|
# * `__system_counters__`
|
@@ -1372,7 +1891,11 @@ module Google
|
|
1372
1891
|
# with Google Assistant integration.
|
1373
1892
|
# @param [String] parent
|
1374
1893
|
# Required. The session to create a session entity type for.
|
1375
|
-
# Format: `projects/<Project ID>/agent/sessions/<Session ID
|
1894
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
1895
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
1896
|
+
# sessions/<Session ID>`.
|
1897
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1898
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1376
1899
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|
1377
1900
|
# @param [String] fields
|
1378
1901
|
# Selector specifying which fields to include in a partial response.
|
@@ -1410,7 +1933,11 @@ module Google
|
|
1410
1933
|
# @param [String] name
|
1411
1934
|
# Required. The name of the entity type to delete. Format:
|
1412
1935
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
1413
|
-
# Display Name
|
1936
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
1937
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
1938
|
+
# Name>`.
|
1939
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1940
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1414
1941
|
# @param [String] fields
|
1415
1942
|
# Selector specifying which fields to include in a partial response.
|
1416
1943
|
# @param [String] quota_user
|
@@ -1445,7 +1972,11 @@ module Google
|
|
1445
1972
|
# @param [String] name
|
1446
1973
|
# Required. The name of the session entity type. Format:
|
1447
1974
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
1448
|
-
# Display Name
|
1975
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
1976
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
1977
|
+
# Name>`.
|
1978
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
1979
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1449
1980
|
# @param [String] fields
|
1450
1981
|
# Selector specifying which fields to include in a partial response.
|
1451
1982
|
# @param [String] quota_user
|
@@ -1479,7 +2010,11 @@ module Google
|
|
1479
2010
|
# with Google Assistant integration.
|
1480
2011
|
# @param [String] parent
|
1481
2012
|
# Required. The session to list all session entity types from.
|
1482
|
-
# Format: `projects/<Project ID>/agent/sessions/<Session ID
|
2013
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
2014
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
2015
|
+
# sessions/<Session ID>`.
|
2016
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
2017
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1483
2018
|
# @param [Fixnum] page_size
|
1484
2019
|
# Optional. The maximum number of items to return in a single page. By
|
1485
2020
|
# default 100 and at most 1000.
|
@@ -1521,7 +2056,11 @@ module Google
|
|
1521
2056
|
# @param [String] name
|
1522
2057
|
# Required. The unique identifier of this session entity type. Format:
|
1523
2058
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
1524
|
-
# Display Name
|
2059
|
+
# Display Name>`, or `projects/<Project ID>/agent/environments/<Environment
|
2060
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
2061
|
+
# Name>`.
|
2062
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
2063
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
1525
2064
|
# `<Entity Type Display Name>` must be the display name of an existing entity
|
1526
2065
|
# type in the same agent that will be overridden or supplemented.
|
1527
2066
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object
|