google-api-client 0.30.8 → 0.30.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +108 -0
- data/README.md +1 -1
- data/api_names.yaml +16 -0
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1/classes.rb +51 -0
- data/generated/google/apis/accessapproval_v1beta1/representations.rb +16 -0
- data/generated/google/apis/accessapproval_v1beta1/service.rb +30 -6
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1.rb +1 -1
- data/generated/google/apis/adexperiencereport_v1/classes.rb +2 -0
- data/generated/google/apis/admin_directory_v1.rb +1 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +55 -5
- data/generated/google/apis/admin_directory_v1/representations.rb +6 -0
- data/generated/google/apis/admin_directory_v1/service.rb +11 -10
- data/generated/google/apis/alertcenter_v1beta1.rb +1 -1
- data/generated/google/apis/alertcenter_v1beta1/classes.rb +235 -0
- data/generated/google/apis/alertcenter_v1beta1/representations.rb +95 -0
- data/generated/google/apis/alertcenter_v1beta1/service.rb +99 -1
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +6 -0
- data/generated/google/apis/analytics_v3/representations.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +3 -1
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +2 -1
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidmanagement_v1/classes.rb +65 -0
- data/generated/google/apis/androidmanagement_v1/representations.rb +33 -0
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +9 -2
- data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +12 -12
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +39 -2
- data/generated/google/apis/androidpublisher_v3/representations.rb +4 -0
- data/generated/google/apis/androidpublisher_v3/service.rb +25 -13
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +137 -5
- data/generated/google/apis/bigquery_v2/representations.rb +64 -0
- data/generated/google/apis/bigquery_v2/service.rb +5 -1
- data/generated/google/apis/bigquerydatatransfer_v1.rb +4 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +37 -0
- data/generated/google/apis/bigqueryreservation_v1/classes.rb +216 -0
- data/generated/google/apis/bigqueryreservation_v1/representations.rb +112 -0
- data/generated/google/apis/bigqueryreservation_v1/service.rb +139 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +37 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +514 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +237 -0
- data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +714 -0
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +2 -2
- data/generated/google/apis/binaryauthorization_v1beta1/service.rb +2 -2
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1/classes.rb +0 -9
- data/generated/google/apis/cloudasset_v1/representations.rb +0 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1/classes.rb +0 -9
- data/generated/google/apis/cloudasset_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudbilling_v1.rb +1 -1
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -1
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +14 -4
- data/generated/google/apis/cloudbuild_v1/representations.rb +1 -0
- data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +6 -2
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/classes.rb +18 -22
- data/generated/google/apis/cloudfunctions_v1/service.rb +7 -1
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +8 -11
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudiot_v1/classes.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1/classes.rb +26 -11
- data/generated/google/apis/cloudkms_v1/representations.rb +2 -0
- data/generated/google/apis/cloudkms_v1/service.rb +28 -16
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +0 -9
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/representations.rb +0 -1
- data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/service.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2/classes.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
- data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1/classes.rb +2 -4
- data/generated/google/apis/cloudscheduler_v1/service.rb +7 -14
- data/generated/google/apis/cloudscheduler_v1beta1.rb +1 -1
- data/generated/google/apis/cloudscheduler_v1beta1/classes.rb +2 -4
- data/generated/google/apis/cloudscheduler_v1beta1/service.rb +7 -14
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +0 -18
- data/generated/google/apis/cloudsearch_v1/representations.rb +0 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +17 -9
- data/generated/google/apis/cloudtasks_v2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2/classes.rb +59 -17
- data/generated/google/apis/cloudtasks_v2/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2/service.rb +12 -24
- data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta2/classes.rb +35 -12
- data/generated/google/apis/cloudtasks_v2beta2/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2beta2/service.rb +16 -32
- data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
- data/generated/google/apis/cloudtasks_v2beta3/classes.rb +30 -2
- data/generated/google/apis/cloudtasks_v2beta3/representations.rb +15 -0
- data/generated/google/apis/cloudtasks_v2beta3/service.rb +12 -24
- data/generated/google/apis/compute_v1/service.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +138 -138
- data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +54 -32
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1/classes.rb +19 -135
- data/generated/google/apis/containeranalysis_v1beta1/representations.rb +2 -32
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +10 -5
- data/generated/google/apis/content_v2/service.rb +3 -2
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +618 -6
- data/generated/google/apis/content_v2_1/representations.rb +271 -0
- data/generated/google/apis/content_v2_1/service.rb +357 -2
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +69 -8
- data/generated/google/apis/dataproc_v1/representations.rb +18 -0
- data/generated/google/apis/dataproc_v1/service.rb +121 -57
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +35 -11
- data/generated/google/apis/dataproc_v1beta2/representations.rb +1 -0
- data/generated/google/apis/dataproc_v1beta2/service.rb +203 -97
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/service.rb +94 -0
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +51 -0
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +16 -0
- data/generated/google/apis/dialogflow_v2beta1/service.rb +1989 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +1 -1
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2.rb +2 -2
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/service.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +6 -6
- data/generated/google/apis/drive_v3/service.rb +6 -6
- data/generated/google/apis/factchecktools_v1alpha1.rb +1 -1
- data/generated/google/apis/factchecktools_v1alpha1/classes.rb +6 -0
- data/generated/google/apis/factchecktools_v1alpha1/representations.rb +1 -0
- data/generated/google/apis/fcm_v1.rb +1 -1
- data/generated/google/apis/fcm_v1/classes.rb +419 -0
- data/generated/google/apis/fcm_v1/representations.rb +45 -0
- data/generated/google/apis/file_v1.rb +1 -1
- data/generated/google/apis/file_v1/classes.rb +12 -1
- data/generated/google/apis/file_v1/representations.rb +1 -0
- data/generated/google/apis/file_v1beta1.rb +1 -1
- data/generated/google/apis/file_v1beta1/classes.rb +12 -1
- data/generated/google/apis/file_v1beta1/representations.rb +1 -0
- data/generated/google/apis/firebase_v1beta1.rb +1 -1
- data/generated/google/apis/firebase_v1beta1/classes.rb +164 -4
- data/generated/google/apis/firebase_v1beta1/representations.rb +71 -0
- data/generated/google/apis/firebase_v1beta1/service.rb +165 -2
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1/classes.rb +27 -6
- data/generated/google/apis/firebasehosting_v1beta1/representations.rb +3 -0
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +6 -0
- data/generated/google/apis/firebaserules_v1/representations.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +1 -2
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +1 -2
- data/generated/google/apis/genomics_v2alpha1.rb +1 -1
- data/generated/google/apis/genomics_v2alpha1/classes.rb +18 -7
- data/generated/google/apis/genomics_v2alpha1/service.rb +5 -1
- data/generated/google/apis/groupssettings_v1.rb +1 -1
- data/generated/google/apis/groupssettings_v1/classes.rb +367 -99
- data/generated/google/apis/groupssettings_v1/service.rb +3 -3
- data/generated/google/apis/healthcare_v1alpha2.rb +1 -1
- data/generated/google/apis/healthcare_v1alpha2/classes.rb +4 -21
- data/generated/google/apis/healthcare_v1alpha2/representations.rb +0 -2
- data/generated/google/apis/healthcare_v1alpha2/service.rb +101 -117
- data/generated/google/apis/healthcare_v1beta1.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/classes.rb +18 -13
- data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
- data/generated/google/apis/healthcare_v1beta1/service.rb +90 -22
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +31 -1
- data/generated/google/apis/iam_v1/representations.rb +14 -0
- data/generated/google/apis/iam_v1/service.rb +45 -4
- data/generated/google/apis/iap_v1.rb +1 -1
- data/generated/google/apis/iap_v1/classes.rb +1 -1
- data/generated/google/apis/iap_v1beta1.rb +1 -1
- data/generated/google/apis/iap_v1beta1/classes.rb +1 -1
- data/generated/google/apis/jobs_v3.rb +1 -1
- data/generated/google/apis/jobs_v3/classes.rb +2 -1
- data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
- data/generated/google/apis/jobs_v3p1beta1/classes.rb +2 -1
- data/generated/google/apis/libraryagent_v1.rb +1 -1
- data/generated/google/apis/libraryagent_v1/service.rb +5 -5
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +2 -2
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +63 -9
- data/generated/google/apis/ml_v1/representations.rb +16 -1
- data/generated/google/apis/ml_v1/service.rb +2 -2
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +29 -2
- data/generated/google/apis/monitoring_v3/representations.rb +4 -0
- data/generated/google/apis/pagespeedonline_v5.rb +1 -1
- data/generated/google/apis/people_v1.rb +1 -1
- data/generated/google/apis/people_v1/classes.rb +7 -0
- data/generated/google/apis/people_v1/representations.rb +1 -0
- data/generated/google/apis/people_v1/service.rb +5 -4
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +12 -11
- data/generated/google/apis/pubsub_v1/service.rb +3 -3
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +2 -2
- data/generated/google/apis/pubsub_v1beta2/service.rb +2 -2
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v1/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +16 -0
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2/classes.rb +32 -0
- data/generated/google/apis/remotebuildexecution_v2/representations.rb +16 -0
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +25 -0
- data/generated/google/apis/run_v1/representations.rb +15 -0
- data/generated/google/apis/run_v1/service.rb +39 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +338 -22
- data/generated/google/apis/run_v1alpha1/representations.rb +141 -1
- data/generated/google/apis/run_v1alpha1/service.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1/service.rb +1 -1
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1/classes.rb +16 -13
- data/generated/google/apis/securitycenter_v1/representations.rb +0 -1
- data/generated/google/apis/securitycenter_v1/service.rb +19 -6
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +1 -10
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +0 -1
- data/generated/google/apis/servicebroker_v1.rb +1 -1
- data/generated/google/apis/servicebroker_v1/service.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
- data/generated/google/apis/servicebroker_v1alpha1/service.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
- data/generated/google/apis/servicebroker_v1beta1/service.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/service.rb +4 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicecontrol_v1/classes.rb +54 -19
- data/generated/google/apis/servicecontrol_v1/representations.rb +17 -2
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1/classes.rb +11 -20
- data/generated/google/apis/servicemanagement_v1/representations.rb +0 -1
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +0 -2
- data/generated/google/apis/serviceusage_v1/service.rb +1 -0
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +53 -10
- data/generated/google/apis/sheets_v4/representations.rb +17 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +50 -54
- data/generated/google/apis/spanner_v1/service.rb +8 -15
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1/classes.rb +2 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1/classes.rb +9 -16
- data/generated/google/apis/{run_v1beta1.rb → speech_v2beta.rb} +9 -10
- data/generated/google/apis/speech_v2beta/classes.rb +355 -0
- data/generated/google/apis/speech_v2beta/representations.rb +152 -0
- data/generated/google/apis/speech_v2beta/service.rb +138 -0
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +14 -12
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +44 -9
- data/generated/google/apis/toolresults_v1beta3/representations.rb +2 -0
- data/generated/google/apis/toolresults_v1beta3/service.rb +3 -6
- data/generated/google/apis/tpu_v1.rb +1 -1
- data/generated/google/apis/tpu_v1/classes.rb +12 -0
- data/generated/google/apis/tpu_v1/representations.rb +2 -0
- data/generated/google/apis/tpu_v1alpha1.rb +1 -1
- data/generated/google/apis/tpu_v1alpha1/classes.rb +12 -0
- data/generated/google/apis/tpu_v1alpha1/representations.rb +2 -0
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/translate_v3beta1/classes.rb +72 -0
- data/generated/google/apis/translate_v3beta1/representations.rb +32 -0
- data/generated/google/apis/translate_v3beta1/service.rb +82 -7
- data/generated/google/apis/vision_v1.rb +1 -1
- data/generated/google/apis/vision_v1/classes.rb +579 -0
- data/generated/google/apis/vision_v1/representations.rb +172 -0
- data/generated/google/apis/vision_v1/service.rb +404 -0
- data/generated/google/apis/vision_v1p1beta1.rb +1 -1
- data/generated/google/apis/vision_v1p1beta1/classes.rb +523 -0
- data/generated/google/apis/vision_v1p1beta1/representations.rb +143 -0
- data/generated/google/apis/vision_v1p1beta1/service.rb +352 -0
- data/generated/google/apis/vision_v1p2beta1.rb +1 -1
- data/generated/google/apis/vision_v1p2beta1/classes.rb +187 -0
- data/generated/google/apis/vision_v1p2beta1/representations.rb +23 -0
- data/generated/google/apis/vision_v1p2beta1/service.rb +352 -0
- data/generated/google/apis/websecurityscanner_v1.rb +4 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +924 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +426 -0
- data/generated/google/apis/websecurityscanner_v1/service.rb +487 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_partner_v1/service.rb +2 -3
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +322 -0
- data/generated/google/apis/youtube_v3/representations.rb +139 -0
- data/generated/google/apis/youtube_v3/service.rb +85 -0
- data/lib/google/api_client/client_secrets.rb +1 -2
- data/lib/google/apis/core/api_command.rb +12 -0
- data/lib/google/apis/core/batch.rb +2 -0
- data/lib/google/apis/core/http_command.rb +8 -1
- data/lib/google/apis/core/json_representation.rb +1 -1
- data/lib/google/apis/generator/annotator.rb +1 -0
- data/lib/google/apis/version.rb +1 -1
- metadata +14 -6
- data/generated/google/apis/run_v1beta1/classes.rb +0 -98
- data/generated/google/apis/run_v1beta1/representations.rb +0 -58
- data/generated/google/apis/run_v1beta1/service.rb +0 -99
@@ -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 = '20190822'
|
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'
|
@@ -1254,6 +1254,9 @@ module Google
|
|
1254
1254
|
# Creates a session entity type.
|
1255
1255
|
# If the specified session entity type already exists, overrides the session
|
1256
1256
|
# entity type.
|
1257
|
+
# This method doesn't work with Google Assistant integration.
|
1258
|
+
# Contact Dialogflow support if you need to use session entities
|
1259
|
+
# with Google Assistant integration.
|
1257
1260
|
# @param [String] parent
|
1258
1261
|
# Required. The session to create a session entity type for.
|
1259
1262
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
@@ -1288,6 +1291,9 @@ module Google
|
|
1288
1291
|
end
|
1289
1292
|
|
1290
1293
|
# Deletes the specified session entity type.
|
1294
|
+
# This method doesn't work with Google Assistant integration.
|
1295
|
+
# Contact Dialogflow support if you need to use session entities
|
1296
|
+
# with Google Assistant integration.
|
1291
1297
|
# @param [String] name
|
1292
1298
|
# Required. The name of the entity type to delete. Format:
|
1293
1299
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -1320,6 +1326,9 @@ module Google
|
|
1320
1326
|
end
|
1321
1327
|
|
1322
1328
|
# Retrieves the specified session entity type.
|
1329
|
+
# This method doesn't work with Google Assistant integration.
|
1330
|
+
# Contact Dialogflow support if you need to use session entities
|
1331
|
+
# with Google Assistant integration.
|
1323
1332
|
# @param [String] name
|
1324
1333
|
# Required. The name of the session entity type. Format:
|
1325
1334
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -1352,6 +1361,9 @@ module Google
|
|
1352
1361
|
end
|
1353
1362
|
|
1354
1363
|
# Returns the list of all session entity types in the specified session.
|
1364
|
+
# This method doesn't work with Google Assistant integration.
|
1365
|
+
# Contact Dialogflow support if you need to use session entities
|
1366
|
+
# with Google Assistant integration.
|
1355
1367
|
# @param [String] parent
|
1356
1368
|
# Required. The session to list all session entity types from.
|
1357
1369
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>`.
|
@@ -1390,6 +1402,9 @@ module Google
|
|
1390
1402
|
end
|
1391
1403
|
|
1392
1404
|
# Updates the specified session entity type.
|
1405
|
+
# This method doesn't work with Google Assistant integration.
|
1406
|
+
# Contact Dialogflow support if you need to use session entities
|
1407
|
+
# with Google Assistant integration.
|
1393
1408
|
# @param [String] name
|
1394
1409
|
# Required. The unique identifier of this session entity type. Format:
|
1395
1410
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -1429,6 +1444,85 @@ module Google
|
|
1429
1444
|
execute_or_queue_command(command, &block)
|
1430
1445
|
end
|
1431
1446
|
|
1447
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
1448
|
+
# method to poll the operation result at intervals as recommended by the API
|
1449
|
+
# service.
|
1450
|
+
# @param [String] name
|
1451
|
+
# The name of the operation resource.
|
1452
|
+
# @param [String] fields
|
1453
|
+
# Selector specifying which fields to include in a partial response.
|
1454
|
+
# @param [String] quota_user
|
1455
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1456
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1457
|
+
# @param [Google::Apis::RequestOptions] options
|
1458
|
+
# Request-specific options
|
1459
|
+
#
|
1460
|
+
# @yield [result, err] Result & error if block supplied
|
1461
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningOperation] parsed result object
|
1462
|
+
# @yieldparam err [StandardError] error object if request failed
|
1463
|
+
#
|
1464
|
+
# @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation]
|
1465
|
+
#
|
1466
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1467
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1468
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1469
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
1470
|
+
command = make_simple_command(:get, 'v2/{+name}', options)
|
1471
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation
|
1472
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation
|
1473
|
+
command.params['name'] = name unless name.nil?
|
1474
|
+
command.query['fields'] = fields unless fields.nil?
|
1475
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1476
|
+
execute_or_queue_command(command, &block)
|
1477
|
+
end
|
1478
|
+
|
1479
|
+
# Lists operations that match the specified filter in the request. If the
|
1480
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
1481
|
+
# NOTE: the `name` binding allows API services to override the binding
|
1482
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
1483
|
+
# override the binding, API services can add a binding such as
|
1484
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
1485
|
+
# For backwards compatibility, the default name includes the operations
|
1486
|
+
# collection id, however overriding users must ensure the name binding
|
1487
|
+
# is the parent resource, without the operations collection id.
|
1488
|
+
# @param [String] name
|
1489
|
+
# The name of the operation's parent resource.
|
1490
|
+
# @param [String] filter
|
1491
|
+
# The standard list filter.
|
1492
|
+
# @param [Fixnum] page_size
|
1493
|
+
# The standard list page size.
|
1494
|
+
# @param [String] page_token
|
1495
|
+
# The standard list page token.
|
1496
|
+
# @param [String] fields
|
1497
|
+
# Selector specifying which fields to include in a partial response.
|
1498
|
+
# @param [String] quota_user
|
1499
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1500
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1501
|
+
# @param [Google::Apis::RequestOptions] options
|
1502
|
+
# Request-specific options
|
1503
|
+
#
|
1504
|
+
# @yield [result, err] Result & error if block supplied
|
1505
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse] parsed result object
|
1506
|
+
# @yieldparam err [StandardError] error object if request failed
|
1507
|
+
#
|
1508
|
+
# @return [Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse]
|
1509
|
+
#
|
1510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1513
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1514
|
+
command = make_simple_command(:get, 'v2/{+name}/operations', options)
|
1515
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse::Representation
|
1516
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse
|
1517
|
+
command.params['name'] = name unless name.nil?
|
1518
|
+
command.query['filter'] = filter unless filter.nil?
|
1519
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
1520
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1521
|
+
command.query['fields'] = fields unless fields.nil?
|
1522
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1523
|
+
execute_or_queue_command(command, &block)
|
1524
|
+
end
|
1525
|
+
|
1432
1526
|
# Gets the latest state of a long-running operation. Clients can use this
|
1433
1527
|
# method to poll the operation result at intervals as recommended by the API
|
1434
1528
|
# service.
|
@@ -26,7 +26,7 @@ module Google
|
|
26
26
|
# @see https://cloud.google.com/dialogflow/
|
27
27
|
module DialogflowV2beta1
|
28
28
|
VERSION = 'V2beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20190822'
|
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'
|
@@ -2629,6 +2629,15 @@ module Google
|
|
2629
2629
|
attr_accessor :single_utterance
|
2630
2630
|
alias_method :single_utterance?, :single_utterance
|
2631
2631
|
|
2632
|
+
# Optional. Context information to assist speech recognition.
|
2633
|
+
# See [the Cloud Speech
|
2634
|
+
# documentation](https://cloud.google.com/speech-to-text/docs/basics#phrase-
|
2635
|
+
# hints)
|
2636
|
+
# for more details.
|
2637
|
+
# Corresponds to the JSON property `speechContexts`
|
2638
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext>]
|
2639
|
+
attr_accessor :speech_contexts
|
2640
|
+
|
2632
2641
|
def initialize(**args)
|
2633
2642
|
update!(**args)
|
2634
2643
|
end
|
@@ -2643,6 +2652,7 @@ module Google
|
|
2643
2652
|
@phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
|
2644
2653
|
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
2645
2654
|
@single_utterance = args[:single_utterance] if args.key?(:single_utterance)
|
2655
|
+
@speech_contexts = args[:speech_contexts] if args.key?(:speech_contexts)
|
2646
2656
|
end
|
2647
2657
|
end
|
2648
2658
|
|
@@ -5006,6 +5016,47 @@ module Google
|
|
5006
5016
|
end
|
5007
5017
|
end
|
5008
5018
|
|
5019
|
+
# Hints for the speech recognizer to help with recognition in a specific
|
5020
|
+
# conversation state.
|
5021
|
+
class GoogleCloudDialogflowV2beta1SpeechContext
|
5022
|
+
include Google::Apis::Core::Hashable
|
5023
|
+
|
5024
|
+
# Optional. Boost for this context compared to other contexts:
|
5025
|
+
# * If the boost is positive, Dialogflow will increase the probability that
|
5026
|
+
# the phrases in this context are recognized over similar sounding phrases.
|
5027
|
+
# * If the boost is unspecified or non-positive, Dialogflow will not apply
|
5028
|
+
# any boost.
|
5029
|
+
# Dialogflow recommends that you use boosts in the range (0, 20] and that you
|
5030
|
+
# find a value that fits your use case with binary search.
|
5031
|
+
# Corresponds to the JSON property `boost`
|
5032
|
+
# @return [Float]
|
5033
|
+
attr_accessor :boost
|
5034
|
+
|
5035
|
+
# Optional. A list of strings containing words and phrases that the speech
|
5036
|
+
# recognizer should recognize with higher likelihood.
|
5037
|
+
# This list can be used to:
|
5038
|
+
# * improve accuracy for words and phrases you expect the user to say,
|
5039
|
+
# e.g. typical commands for your Dialogflow agent
|
5040
|
+
# * add additional words to the speech recognizer vocabulary
|
5041
|
+
# * ...
|
5042
|
+
# See the [Cloud Speech
|
5043
|
+
# documentation](https://cloud.google.com/speech-to-text/quotas) for usage
|
5044
|
+
# limits.
|
5045
|
+
# Corresponds to the JSON property `phrases`
|
5046
|
+
# @return [Array<String>]
|
5047
|
+
attr_accessor :phrases
|
5048
|
+
|
5049
|
+
def initialize(**args)
|
5050
|
+
update!(**args)
|
5051
|
+
end
|
5052
|
+
|
5053
|
+
# Update properties of this object
|
5054
|
+
def update!(**args)
|
5055
|
+
@boost = args[:boost] if args.key?(:boost)
|
5056
|
+
@phrases = args[:phrases] if args.key?(:phrases)
|
5057
|
+
end
|
5058
|
+
end
|
5059
|
+
|
5009
5060
|
# Configuration of how speech should be synthesized.
|
5010
5061
|
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
|
5011
5062
|
include Google::Apis::Core::Hashable
|
@@ -772,6 +772,12 @@ module Google
|
|
772
772
|
include Google::Apis::Core::JsonObjectSupport
|
773
773
|
end
|
774
774
|
|
775
|
+
class GoogleCloudDialogflowV2beta1SpeechContext
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
|
+
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
779
|
+
end
|
780
|
+
|
775
781
|
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
|
776
782
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
783
|
|
@@ -1492,6 +1498,8 @@ module Google
|
|
1492
1498
|
collection :phrase_hints, as: 'phraseHints'
|
1493
1499
|
property :sample_rate_hertz, as: 'sampleRateHertz'
|
1494
1500
|
property :single_utterance, as: 'singleUtterance'
|
1501
|
+
collection :speech_contexts, as: 'speechContexts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SpeechContext::Representation
|
1502
|
+
|
1495
1503
|
end
|
1496
1504
|
end
|
1497
1505
|
|
@@ -2135,6 +2143,14 @@ module Google
|
|
2135
2143
|
end
|
2136
2144
|
end
|
2137
2145
|
|
2146
|
+
class GoogleCloudDialogflowV2beta1SpeechContext
|
2147
|
+
# @private
|
2148
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2149
|
+
property :boost, as: 'boost'
|
2150
|
+
collection :phrases, as: 'phrases'
|
2151
|
+
end
|
2152
|
+
end
|
2153
|
+
|
2138
2154
|
class GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
|
2139
2155
|
# @private
|
2140
2156
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -993,6 +993,9 @@ module Google
|
|
993
993
|
# Creates a session entity type.
|
994
994
|
# If the specified session entity type already exists, overrides the
|
995
995
|
# session entity type.
|
996
|
+
# This method doesn't work with Google Assistant integration.
|
997
|
+
# Contact Dialogflow support if you need to use session entities
|
998
|
+
# with Google Assistant integration.
|
996
999
|
# @param [String] parent
|
997
1000
|
# Required. The session to create a session entity type for.
|
998
1001
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
@@ -1031,6 +1034,9 @@ module Google
|
|
1031
1034
|
end
|
1032
1035
|
|
1033
1036
|
# Deletes the specified session entity type.
|
1037
|
+
# This method doesn't work with Google Assistant integration.
|
1038
|
+
# Contact Dialogflow support if you need to use session entities
|
1039
|
+
# with Google Assistant integration.
|
1034
1040
|
# @param [String] name
|
1035
1041
|
# Required. The name of the entity type to delete. Format:
|
1036
1042
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -1066,6 +1072,9 @@ module Google
|
|
1066
1072
|
end
|
1067
1073
|
|
1068
1074
|
# Retrieves the specified session entity type.
|
1075
|
+
# This method doesn't work with Google Assistant integration.
|
1076
|
+
# Contact Dialogflow support if you need to use session entities
|
1077
|
+
# with Google Assistant integration.
|
1069
1078
|
# @param [String] name
|
1070
1079
|
# Required. The name of the session entity type. Format:
|
1071
1080
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -1101,6 +1110,9 @@ module Google
|
|
1101
1110
|
end
|
1102
1111
|
|
1103
1112
|
# Returns the list of all session entity types in the specified session.
|
1113
|
+
# This method doesn't work with Google Assistant integration.
|
1114
|
+
# Contact Dialogflow support if you need to use session entities
|
1115
|
+
# with Google Assistant integration.
|
1104
1116
|
# @param [String] parent
|
1105
1117
|
# Required. The session to list all session entity types from.
|
1106
1118
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
@@ -1143,6 +1155,9 @@ module Google
|
|
1143
1155
|
end
|
1144
1156
|
|
1145
1157
|
# Updates the specified session entity type.
|
1158
|
+
# This method doesn't work with Google Assistant integration.
|
1159
|
+
# Contact Dialogflow support if you need to use session entities
|
1160
|
+
# with Google Assistant integration.
|
1146
1161
|
# @param [String] name
|
1147
1162
|
# Required. The unique identifier of this session entity type. Format:
|
1148
1163
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -2172,6 +2187,9 @@ module Google
|
|
2172
2187
|
# Creates a session entity type.
|
2173
2188
|
# If the specified session entity type already exists, overrides the
|
2174
2189
|
# session entity type.
|
2190
|
+
# This method doesn't work with Google Assistant integration.
|
2191
|
+
# Contact Dialogflow support if you need to use session entities
|
2192
|
+
# with Google Assistant integration.
|
2175
2193
|
# @param [String] parent
|
2176
2194
|
# Required. The session to create a session entity type for.
|
2177
2195
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
@@ -2210,6 +2228,9 @@ module Google
|
|
2210
2228
|
end
|
2211
2229
|
|
2212
2230
|
# Deletes the specified session entity type.
|
2231
|
+
# This method doesn't work with Google Assistant integration.
|
2232
|
+
# Contact Dialogflow support if you need to use session entities
|
2233
|
+
# with Google Assistant integration.
|
2213
2234
|
# @param [String] name
|
2214
2235
|
# Required. The name of the entity type to delete. Format:
|
2215
2236
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -2245,6 +2266,9 @@ module Google
|
|
2245
2266
|
end
|
2246
2267
|
|
2247
2268
|
# Retrieves the specified session entity type.
|
2269
|
+
# This method doesn't work with Google Assistant integration.
|
2270
|
+
# Contact Dialogflow support if you need to use session entities
|
2271
|
+
# with Google Assistant integration.
|
2248
2272
|
# @param [String] name
|
2249
2273
|
# Required. The name of the session entity type. Format:
|
2250
2274
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -2280,6 +2304,9 @@ module Google
|
|
2280
2304
|
end
|
2281
2305
|
|
2282
2306
|
# Returns the list of all session entity types in the specified session.
|
2307
|
+
# This method doesn't work with Google Assistant integration.
|
2308
|
+
# Contact Dialogflow support if you need to use session entities
|
2309
|
+
# with Google Assistant integration.
|
2283
2310
|
# @param [String] parent
|
2284
2311
|
# Required. The session to list all session entity types from.
|
2285
2312
|
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
@@ -2322,6 +2349,9 @@ module Google
|
|
2322
2349
|
end
|
2323
2350
|
|
2324
2351
|
# Updates the specified session entity type.
|
2352
|
+
# This method doesn't work with Google Assistant integration.
|
2353
|
+
# Contact Dialogflow support if you need to use session entities
|
2354
|
+
# with Google Assistant integration.
|
2325
2355
|
# @param [String] name
|
2326
2356
|
# Required. The unique identifier of this session entity type. Format:
|
2327
2357
|
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
@@ -2788,6 +2818,1965 @@ module Google
|
|
2788
2818
|
execute_or_queue_command(command, &block)
|
2789
2819
|
end
|
2790
2820
|
|
2821
|
+
# Creates/updates the specified agent.
|
2822
|
+
# @param [String] parent
|
2823
|
+
# Required. The project of this agent.
|
2824
|
+
# Format: `projects/<Project ID>`.
|
2825
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] google_cloud_dialogflow_v2beta1_agent_object
|
2826
|
+
# @param [String] update_mask
|
2827
|
+
# Optional. The mask to control which fields get updated.
|
2828
|
+
# @param [String] fields
|
2829
|
+
# Selector specifying which fields to include in a partial response.
|
2830
|
+
# @param [String] quota_user
|
2831
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2832
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2833
|
+
# @param [Google::Apis::RequestOptions] options
|
2834
|
+
# Request-specific options
|
2835
|
+
#
|
2836
|
+
# @yield [result, err] Result & error if block supplied
|
2837
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] parsed result object
|
2838
|
+
# @yieldparam err [StandardError] error object if request failed
|
2839
|
+
#
|
2840
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent]
|
2841
|
+
#
|
2842
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2843
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2844
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2845
|
+
def agent_project_location(parent, google_cloud_dialogflow_v2beta1_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2846
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/agent', options)
|
2847
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
2848
|
+
command.request_object = google_cloud_dialogflow_v2beta1_agent_object
|
2849
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
2850
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent
|
2851
|
+
command.params['parent'] = parent unless parent.nil?
|
2852
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2853
|
+
command.query['fields'] = fields unless fields.nil?
|
2854
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2855
|
+
execute_or_queue_command(command, &block)
|
2856
|
+
end
|
2857
|
+
|
2858
|
+
# Deletes the specified agent.
|
2859
|
+
# @param [String] parent
|
2860
|
+
# Required. The project that the agent to delete is associated with.
|
2861
|
+
# Format: `projects/<Project ID>`.
|
2862
|
+
# @param [String] fields
|
2863
|
+
# Selector specifying which fields to include in a partial response.
|
2864
|
+
# @param [String] quota_user
|
2865
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2866
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2867
|
+
# @param [Google::Apis::RequestOptions] options
|
2868
|
+
# Request-specific options
|
2869
|
+
#
|
2870
|
+
# @yield [result, err] Result & error if block supplied
|
2871
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
2872
|
+
# @yieldparam err [StandardError] error object if request failed
|
2873
|
+
#
|
2874
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
2875
|
+
#
|
2876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2879
|
+
def delete_project_location_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
|
2880
|
+
command = make_simple_command(:delete, 'v2beta1/{+parent}/agent', options)
|
2881
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
2882
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
2883
|
+
command.params['parent'] = parent unless parent.nil?
|
2884
|
+
command.query['fields'] = fields unless fields.nil?
|
2885
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2886
|
+
execute_or_queue_command(command, &block)
|
2887
|
+
end
|
2888
|
+
|
2889
|
+
# Retrieves the specified agent.
|
2890
|
+
# @param [String] parent
|
2891
|
+
# Required. The project that the agent to fetch is associated with.
|
2892
|
+
# Format: `projects/<Project ID>`.
|
2893
|
+
# @param [String] fields
|
2894
|
+
# Selector specifying which fields to include in a partial response.
|
2895
|
+
# @param [String] quota_user
|
2896
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2897
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2898
|
+
# @param [Google::Apis::RequestOptions] options
|
2899
|
+
# Request-specific options
|
2900
|
+
#
|
2901
|
+
# @yield [result, err] Result & error if block supplied
|
2902
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] parsed result object
|
2903
|
+
# @yieldparam err [StandardError] error object if request failed
|
2904
|
+
#
|
2905
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent]
|
2906
|
+
#
|
2907
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2908
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2909
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2910
|
+
def get_project_location_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
|
2911
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/agent', options)
|
2912
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
2913
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent
|
2914
|
+
command.params['parent'] = parent unless parent.nil?
|
2915
|
+
command.query['fields'] = fields unless fields.nil?
|
2916
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2917
|
+
execute_or_queue_command(command, &block)
|
2918
|
+
end
|
2919
|
+
|
2920
|
+
# Exports the specified agent to a ZIP file.
|
2921
|
+
# Operation <response: ExportAgentResponse>
|
2922
|
+
# @param [String] parent
|
2923
|
+
# Required. The project that the agent to export is associated with.
|
2924
|
+
# Format: `projects/<Project ID>`.
|
2925
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ExportAgentRequest] google_cloud_dialogflow_v2beta1_export_agent_request_object
|
2926
|
+
# @param [String] fields
|
2927
|
+
# Selector specifying which fields to include in a partial response.
|
2928
|
+
# @param [String] quota_user
|
2929
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2930
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2931
|
+
# @param [Google::Apis::RequestOptions] options
|
2932
|
+
# Request-specific options
|
2933
|
+
#
|
2934
|
+
# @yield [result, err] Result & error if block supplied
|
2935
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
2936
|
+
# @yieldparam err [StandardError] error object if request failed
|
2937
|
+
#
|
2938
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
2939
|
+
#
|
2940
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2941
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2942
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2943
|
+
def export_project_location_agent(parent, google_cloud_dialogflow_v2beta1_export_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2944
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/agent:export', options)
|
2945
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ExportAgentRequest::Representation
|
2946
|
+
command.request_object = google_cloud_dialogflow_v2beta1_export_agent_request_object
|
2947
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
2948
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
2949
|
+
command.params['parent'] = parent unless parent.nil?
|
2950
|
+
command.query['fields'] = fields unless fields.nil?
|
2951
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2952
|
+
execute_or_queue_command(command, &block)
|
2953
|
+
end
|
2954
|
+
|
2955
|
+
# Imports the specified agent from a ZIP file.
|
2956
|
+
# Uploads new intents and entity types without deleting the existing ones.
|
2957
|
+
# Intents and entity types with the same name are replaced with the new
|
2958
|
+
# versions from ImportAgentRequest.
|
2959
|
+
# Operation <response: google.protobuf.Empty>
|
2960
|
+
# @param [String] parent
|
2961
|
+
# Required. The project that the agent to import is associated with.
|
2962
|
+
# Format: `projects/<Project ID>`.
|
2963
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ImportAgentRequest] google_cloud_dialogflow_v2beta1_import_agent_request_object
|
2964
|
+
# @param [String] fields
|
2965
|
+
# Selector specifying which fields to include in a partial response.
|
2966
|
+
# @param [String] quota_user
|
2967
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
2968
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2969
|
+
# @param [Google::Apis::RequestOptions] options
|
2970
|
+
# Request-specific options
|
2971
|
+
#
|
2972
|
+
# @yield [result, err] Result & error if block supplied
|
2973
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
2974
|
+
# @yieldparam err [StandardError] error object if request failed
|
2975
|
+
#
|
2976
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
2977
|
+
#
|
2978
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2979
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2980
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2981
|
+
def import_project_location_agent(parent, google_cloud_dialogflow_v2beta1_import_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2982
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/agent:import', options)
|
2983
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ImportAgentRequest::Representation
|
2984
|
+
command.request_object = google_cloud_dialogflow_v2beta1_import_agent_request_object
|
2985
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
2986
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
2987
|
+
command.params['parent'] = parent unless parent.nil?
|
2988
|
+
command.query['fields'] = fields unless fields.nil?
|
2989
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2990
|
+
execute_or_queue_command(command, &block)
|
2991
|
+
end
|
2992
|
+
|
2993
|
+
# Restores the specified agent from a ZIP file.
|
2994
|
+
# Replaces the current agent version with a new one. All the intents and
|
2995
|
+
# entity types in the older version are deleted.
|
2996
|
+
# Operation <response: google.protobuf.Empty>
|
2997
|
+
# @param [String] parent
|
2998
|
+
# Required. The project that the agent to restore is associated with.
|
2999
|
+
# Format: `projects/<Project ID>`.
|
3000
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1RestoreAgentRequest] google_cloud_dialogflow_v2beta1_restore_agent_request_object
|
3001
|
+
# @param [String] fields
|
3002
|
+
# Selector specifying which fields to include in a partial response.
|
3003
|
+
# @param [String] quota_user
|
3004
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3005
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3006
|
+
# @param [Google::Apis::RequestOptions] options
|
3007
|
+
# Request-specific options
|
3008
|
+
#
|
3009
|
+
# @yield [result, err] Result & error if block supplied
|
3010
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3011
|
+
# @yieldparam err [StandardError] error object if request failed
|
3012
|
+
#
|
3013
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3014
|
+
#
|
3015
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3016
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3017
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3018
|
+
def restore_project_location_agent(parent, google_cloud_dialogflow_v2beta1_restore_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3019
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/agent:restore', options)
|
3020
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1RestoreAgentRequest::Representation
|
3021
|
+
command.request_object = google_cloud_dialogflow_v2beta1_restore_agent_request_object
|
3022
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3023
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3024
|
+
command.params['parent'] = parent unless parent.nil?
|
3025
|
+
command.query['fields'] = fields unless fields.nil?
|
3026
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3027
|
+
execute_or_queue_command(command, &block)
|
3028
|
+
end
|
3029
|
+
|
3030
|
+
# Trains the specified agent.
|
3031
|
+
# Operation <response: google.protobuf.Empty>
|
3032
|
+
# @param [String] parent
|
3033
|
+
# Required. The project that the agent to train is associated with.
|
3034
|
+
# Format: `projects/<Project ID>`.
|
3035
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TrainAgentRequest] google_cloud_dialogflow_v2beta1_train_agent_request_object
|
3036
|
+
# @param [String] fields
|
3037
|
+
# Selector specifying which fields to include in a partial response.
|
3038
|
+
# @param [String] quota_user
|
3039
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3040
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3041
|
+
# @param [Google::Apis::RequestOptions] options
|
3042
|
+
# Request-specific options
|
3043
|
+
#
|
3044
|
+
# @yield [result, err] Result & error if block supplied
|
3045
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3046
|
+
# @yieldparam err [StandardError] error object if request failed
|
3047
|
+
#
|
3048
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3049
|
+
#
|
3050
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3051
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3052
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3053
|
+
def train_project_location_agent(parent, google_cloud_dialogflow_v2beta1_train_agent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3054
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/agent:train', options)
|
3055
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TrainAgentRequest::Representation
|
3056
|
+
command.request_object = google_cloud_dialogflow_v2beta1_train_agent_request_object
|
3057
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3058
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3059
|
+
command.params['parent'] = parent unless parent.nil?
|
3060
|
+
command.query['fields'] = fields unless fields.nil?
|
3061
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3062
|
+
execute_or_queue_command(command, &block)
|
3063
|
+
end
|
3064
|
+
|
3065
|
+
# Deletes entity types in the specified agent.
|
3066
|
+
# Operation <response: google.protobuf.Empty>
|
3067
|
+
# @param [String] parent
|
3068
|
+
# Required. The name of the agent to delete all entities types for. Format:
|
3069
|
+
# `projects/<Project ID>/agent`.
|
3070
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest] google_cloud_dialogflow_v2beta1_batch_delete_entity_types_request_object
|
3071
|
+
# @param [String] fields
|
3072
|
+
# Selector specifying which fields to include in a partial response.
|
3073
|
+
# @param [String] quota_user
|
3074
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3075
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3076
|
+
# @param [Google::Apis::RequestOptions] options
|
3077
|
+
# Request-specific options
|
3078
|
+
#
|
3079
|
+
# @yield [result, err] Result & error if block supplied
|
3080
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3081
|
+
# @yieldparam err [StandardError] error object if request failed
|
3082
|
+
#
|
3083
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3084
|
+
#
|
3085
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3086
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3087
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3088
|
+
def batch_project_location_agent_entity_type_delete(parent, google_cloud_dialogflow_v2beta1_batch_delete_entity_types_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3089
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entityTypes:batchDelete', options)
|
3090
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest::Representation
|
3091
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_delete_entity_types_request_object
|
3092
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3093
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3094
|
+
command.params['parent'] = parent unless parent.nil?
|
3095
|
+
command.query['fields'] = fields unless fields.nil?
|
3096
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3097
|
+
execute_or_queue_command(command, &block)
|
3098
|
+
end
|
3099
|
+
|
3100
|
+
# Updates/Creates multiple entity types in the specified agent.
|
3101
|
+
# Operation <response: BatchUpdateEntityTypesResponse>
|
3102
|
+
# @param [String] parent
|
3103
|
+
# Required. The name of the agent to update or create entity types in.
|
3104
|
+
# Format: `projects/<Project ID>/agent`.
|
3105
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest] google_cloud_dialogflow_v2beta1_batch_update_entity_types_request_object
|
3106
|
+
# @param [String] fields
|
3107
|
+
# Selector specifying which fields to include in a partial response.
|
3108
|
+
# @param [String] quota_user
|
3109
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3110
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3111
|
+
# @param [Google::Apis::RequestOptions] options
|
3112
|
+
# Request-specific options
|
3113
|
+
#
|
3114
|
+
# @yield [result, err] Result & error if block supplied
|
3115
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3116
|
+
# @yieldparam err [StandardError] error object if request failed
|
3117
|
+
#
|
3118
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3119
|
+
#
|
3120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3123
|
+
def batch_project_location_agent_entity_type_update(parent, google_cloud_dialogflow_v2beta1_batch_update_entity_types_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3124
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entityTypes:batchUpdate', options)
|
3125
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest::Representation
|
3126
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_update_entity_types_request_object
|
3127
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3128
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3129
|
+
command.params['parent'] = parent unless parent.nil?
|
3130
|
+
command.query['fields'] = fields unless fields.nil?
|
3131
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3132
|
+
execute_or_queue_command(command, &block)
|
3133
|
+
end
|
3134
|
+
|
3135
|
+
# Creates an entity type in the specified agent.
|
3136
|
+
# @param [String] parent
|
3137
|
+
# Required. The agent to create a entity type for.
|
3138
|
+
# Format: `projects/<Project ID>/agent`.
|
3139
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType] google_cloud_dialogflow_v2beta1_entity_type_object
|
3140
|
+
# @param [String] language_code
|
3141
|
+
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
3142
|
+
# specified, the agent's default language is used.
|
3143
|
+
# [Many
|
3144
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
3145
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
3146
|
+
# be used.
|
3147
|
+
# @param [String] fields
|
3148
|
+
# Selector specifying which fields to include in a partial response.
|
3149
|
+
# @param [String] quota_user
|
3150
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3151
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3152
|
+
# @param [Google::Apis::RequestOptions] options
|
3153
|
+
# Request-specific options
|
3154
|
+
#
|
3155
|
+
# @yield [result, err] Result & error if block supplied
|
3156
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType] parsed result object
|
3157
|
+
# @yieldparam err [StandardError] error object if request failed
|
3158
|
+
#
|
3159
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType]
|
3160
|
+
#
|
3161
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3162
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3163
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3164
|
+
def create_project_location_agent_entity_type(parent, google_cloud_dialogflow_v2beta1_entity_type_object = nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3165
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entityTypes', options)
|
3166
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType::Representation
|
3167
|
+
command.request_object = google_cloud_dialogflow_v2beta1_entity_type_object
|
3168
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType::Representation
|
3169
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType
|
3170
|
+
command.params['parent'] = parent unless parent.nil?
|
3171
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3172
|
+
command.query['fields'] = fields unless fields.nil?
|
3173
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3174
|
+
execute_or_queue_command(command, &block)
|
3175
|
+
end
|
3176
|
+
|
3177
|
+
# Deletes the specified entity type.
|
3178
|
+
# @param [String] name
|
3179
|
+
# Required. The name of the entity type to delete.
|
3180
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
3181
|
+
# @param [String] fields
|
3182
|
+
# Selector specifying which fields to include in a partial response.
|
3183
|
+
# @param [String] quota_user
|
3184
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3185
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3186
|
+
# @param [Google::Apis::RequestOptions] options
|
3187
|
+
# Request-specific options
|
3188
|
+
#
|
3189
|
+
# @yield [result, err] Result & error if block supplied
|
3190
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
3191
|
+
# @yieldparam err [StandardError] error object if request failed
|
3192
|
+
#
|
3193
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
3194
|
+
#
|
3195
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3196
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3197
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3198
|
+
def delete_project_location_agent_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
3199
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
3200
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
3201
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
3202
|
+
command.params['name'] = name unless name.nil?
|
3203
|
+
command.query['fields'] = fields unless fields.nil?
|
3204
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3205
|
+
execute_or_queue_command(command, &block)
|
3206
|
+
end
|
3207
|
+
|
3208
|
+
# Retrieves the specified entity type.
|
3209
|
+
# @param [String] name
|
3210
|
+
# Required. The name of the entity type.
|
3211
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<EntityType ID>`.
|
3212
|
+
# @param [String] language_code
|
3213
|
+
# Optional. The language to retrieve entity synonyms for. If not specified,
|
3214
|
+
# the agent's default language is used.
|
3215
|
+
# [Many
|
3216
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
3217
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
3218
|
+
# be used.
|
3219
|
+
# @param [String] fields
|
3220
|
+
# Selector specifying which fields to include in a partial response.
|
3221
|
+
# @param [String] quota_user
|
3222
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3223
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3224
|
+
# @param [Google::Apis::RequestOptions] options
|
3225
|
+
# Request-specific options
|
3226
|
+
#
|
3227
|
+
# @yield [result, err] Result & error if block supplied
|
3228
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType] parsed result object
|
3229
|
+
# @yieldparam err [StandardError] error object if request failed
|
3230
|
+
#
|
3231
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType]
|
3232
|
+
#
|
3233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3236
|
+
def get_project_location_agent_entity_type(name, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3237
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
3238
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType::Representation
|
3239
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType
|
3240
|
+
command.params['name'] = name unless name.nil?
|
3241
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3242
|
+
command.query['fields'] = fields unless fields.nil?
|
3243
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3244
|
+
execute_or_queue_command(command, &block)
|
3245
|
+
end
|
3246
|
+
|
3247
|
+
# Returns the list of all entity types in the specified agent.
|
3248
|
+
# @param [String] parent
|
3249
|
+
# Required. The agent to list all entity types from.
|
3250
|
+
# Format: `projects/<Project ID>/agent`.
|
3251
|
+
# @param [String] language_code
|
3252
|
+
# Optional. The language to list entity synonyms for. If not specified,
|
3253
|
+
# the agent's default language is used.
|
3254
|
+
# [Many
|
3255
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
3256
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
3257
|
+
# be used.
|
3258
|
+
# @param [Fixnum] page_size
|
3259
|
+
# Optional. The maximum number of items to return in a single page. By
|
3260
|
+
# default 100 and at most 1000.
|
3261
|
+
# @param [String] page_token
|
3262
|
+
# Optional. The next_page_token value returned from a previous list request.
|
3263
|
+
# @param [String] fields
|
3264
|
+
# Selector specifying which fields to include in a partial response.
|
3265
|
+
# @param [String] quota_user
|
3266
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3267
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3268
|
+
# @param [Google::Apis::RequestOptions] options
|
3269
|
+
# Request-specific options
|
3270
|
+
#
|
3271
|
+
# @yield [result, err] Result & error if block supplied
|
3272
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEntityTypesResponse] parsed result object
|
3273
|
+
# @yieldparam err [StandardError] error object if request failed
|
3274
|
+
#
|
3275
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEntityTypesResponse]
|
3276
|
+
#
|
3277
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3278
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3279
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3280
|
+
def list_project_location_agent_entity_types(parent, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3281
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/entityTypes', options)
|
3282
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEntityTypesResponse::Representation
|
3283
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEntityTypesResponse
|
3284
|
+
command.params['parent'] = parent unless parent.nil?
|
3285
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3286
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3287
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3288
|
+
command.query['fields'] = fields unless fields.nil?
|
3289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3290
|
+
execute_or_queue_command(command, &block)
|
3291
|
+
end
|
3292
|
+
|
3293
|
+
# Updates the specified entity type.
|
3294
|
+
# @param [String] name
|
3295
|
+
# The unique identifier of the entity type.
|
3296
|
+
# Required for EntityTypes.UpdateEntityType and
|
3297
|
+
# EntityTypes.BatchUpdateEntityTypes methods.
|
3298
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
3299
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType] google_cloud_dialogflow_v2beta1_entity_type_object
|
3300
|
+
# @param [String] language_code
|
3301
|
+
# Optional. The language of entity synonyms defined in `entity_type`. If not
|
3302
|
+
# specified, the agent's default language is used.
|
3303
|
+
# [Many
|
3304
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
3305
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
3306
|
+
# be used.
|
3307
|
+
# @param [String] update_mask
|
3308
|
+
# Optional. The mask to control which fields get updated.
|
3309
|
+
# @param [String] fields
|
3310
|
+
# Selector specifying which fields to include in a partial response.
|
3311
|
+
# @param [String] quota_user
|
3312
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3313
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3314
|
+
# @param [Google::Apis::RequestOptions] options
|
3315
|
+
# Request-specific options
|
3316
|
+
#
|
3317
|
+
# @yield [result, err] Result & error if block supplied
|
3318
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType] parsed result object
|
3319
|
+
# @yieldparam err [StandardError] error object if request failed
|
3320
|
+
#
|
3321
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType]
|
3322
|
+
#
|
3323
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3324
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3325
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3326
|
+
def patch_project_location_agent_entity_type(name, google_cloud_dialogflow_v2beta1_entity_type_object = nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3327
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
3328
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType::Representation
|
3329
|
+
command.request_object = google_cloud_dialogflow_v2beta1_entity_type_object
|
3330
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType::Representation
|
3331
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EntityType
|
3332
|
+
command.params['name'] = name unless name.nil?
|
3333
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
3334
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3335
|
+
command.query['fields'] = fields unless fields.nil?
|
3336
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3337
|
+
execute_or_queue_command(command, &block)
|
3338
|
+
end
|
3339
|
+
|
3340
|
+
# Creates multiple new entities in the specified entity type.
|
3341
|
+
# Operation <response: google.protobuf.Empty>
|
3342
|
+
# @param [String] parent
|
3343
|
+
# Required. The name of the entity type to create entities in. Format:
|
3344
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
3345
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest] google_cloud_dialogflow_v2beta1_batch_create_entities_request_object
|
3346
|
+
# @param [String] fields
|
3347
|
+
# Selector specifying which fields to include in a partial response.
|
3348
|
+
# @param [String] quota_user
|
3349
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3350
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3351
|
+
# @param [Google::Apis::RequestOptions] options
|
3352
|
+
# Request-specific options
|
3353
|
+
#
|
3354
|
+
# @yield [result, err] Result & error if block supplied
|
3355
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3356
|
+
# @yieldparam err [StandardError] error object if request failed
|
3357
|
+
#
|
3358
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3359
|
+
#
|
3360
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3361
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3362
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3363
|
+
def batch_project_location_agent_entity_type_entity_create(parent, google_cloud_dialogflow_v2beta1_batch_create_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3364
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entities:batchCreate', options)
|
3365
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest::Representation
|
3366
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_create_entities_request_object
|
3367
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3368
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3369
|
+
command.params['parent'] = parent unless parent.nil?
|
3370
|
+
command.query['fields'] = fields unless fields.nil?
|
3371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3372
|
+
execute_or_queue_command(command, &block)
|
3373
|
+
end
|
3374
|
+
|
3375
|
+
# Deletes entities in the specified entity type.
|
3376
|
+
# Operation <response: google.protobuf.Empty>
|
3377
|
+
# @param [String] parent
|
3378
|
+
# Required. The name of the entity type to delete entries for. Format:
|
3379
|
+
# `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
3380
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest] google_cloud_dialogflow_v2beta1_batch_delete_entities_request_object
|
3381
|
+
# @param [String] fields
|
3382
|
+
# Selector specifying which fields to include in a partial response.
|
3383
|
+
# @param [String] quota_user
|
3384
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3385
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3386
|
+
# @param [Google::Apis::RequestOptions] options
|
3387
|
+
# Request-specific options
|
3388
|
+
#
|
3389
|
+
# @yield [result, err] Result & error if block supplied
|
3390
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3391
|
+
# @yieldparam err [StandardError] error object if request failed
|
3392
|
+
#
|
3393
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3394
|
+
#
|
3395
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3396
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3397
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3398
|
+
def batch_project_location_agent_entity_type_entity_delete(parent, google_cloud_dialogflow_v2beta1_batch_delete_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3399
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entities:batchDelete', options)
|
3400
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest::Representation
|
3401
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_delete_entities_request_object
|
3402
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3403
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3404
|
+
command.params['parent'] = parent unless parent.nil?
|
3405
|
+
command.query['fields'] = fields unless fields.nil?
|
3406
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3407
|
+
execute_or_queue_command(command, &block)
|
3408
|
+
end
|
3409
|
+
|
3410
|
+
# Updates or creates multiple entities in the specified entity type. This
|
3411
|
+
# method does not affect entities in the entity type that aren't explicitly
|
3412
|
+
# specified in the request.
|
3413
|
+
# Operation <response: google.protobuf.Empty>
|
3414
|
+
# @param [String] parent
|
3415
|
+
# Required. The name of the entity type to update or create entities in.
|
3416
|
+
# Format: `projects/<Project ID>/agent/entityTypes/<Entity Type ID>`.
|
3417
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest] google_cloud_dialogflow_v2beta1_batch_update_entities_request_object
|
3418
|
+
# @param [String] fields
|
3419
|
+
# Selector specifying which fields to include in a partial response.
|
3420
|
+
# @param [String] quota_user
|
3421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3423
|
+
# @param [Google::Apis::RequestOptions] options
|
3424
|
+
# Request-specific options
|
3425
|
+
#
|
3426
|
+
# @yield [result, err] Result & error if block supplied
|
3427
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3428
|
+
# @yieldparam err [StandardError] error object if request failed
|
3429
|
+
#
|
3430
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3431
|
+
#
|
3432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3435
|
+
def batch_project_location_agent_entity_type_entity_update(parent, google_cloud_dialogflow_v2beta1_batch_update_entities_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3436
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entities:batchUpdate', options)
|
3437
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest::Representation
|
3438
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_update_entities_request_object
|
3439
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3440
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3441
|
+
command.params['parent'] = parent unless parent.nil?
|
3442
|
+
command.query['fields'] = fields unless fields.nil?
|
3443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3444
|
+
execute_or_queue_command(command, &block)
|
3445
|
+
end
|
3446
|
+
|
3447
|
+
# Deletes all active contexts in the specified session.
|
3448
|
+
# @param [String] parent
|
3449
|
+
# Required. The name of the session to delete all contexts from. Format:
|
3450
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
3451
|
+
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
3452
|
+
# ID>`. If `Environment ID` is not specified we assume default 'draft'
|
3453
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3454
|
+
# @param [String] fields
|
3455
|
+
# Selector specifying which fields to include in a partial response.
|
3456
|
+
# @param [String] quota_user
|
3457
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3458
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3459
|
+
# @param [Google::Apis::RequestOptions] options
|
3460
|
+
# Request-specific options
|
3461
|
+
#
|
3462
|
+
# @yield [result, err] Result & error if block supplied
|
3463
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
3464
|
+
# @yieldparam err [StandardError] error object if request failed
|
3465
|
+
#
|
3466
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
3467
|
+
#
|
3468
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3469
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3470
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3471
|
+
def delete_project_location_agent_environment_user_session_contexts(parent, fields: nil, quota_user: nil, options: nil, &block)
|
3472
|
+
command = make_simple_command(:delete, 'v2beta1/{+parent}/contexts', options)
|
3473
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
3474
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
3475
|
+
command.params['parent'] = parent unless parent.nil?
|
3476
|
+
command.query['fields'] = fields unless fields.nil?
|
3477
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3478
|
+
execute_or_queue_command(command, &block)
|
3479
|
+
end
|
3480
|
+
|
3481
|
+
# Processes a natural language query and returns structured, actionable data
|
3482
|
+
# as a result. This method is not idempotent, because it may cause contexts
|
3483
|
+
# and session entity types to be updated, which in turn might affect
|
3484
|
+
# results of future queries.
|
3485
|
+
# @param [String] session
|
3486
|
+
# Required. The name of the session this query is sent to. Format:
|
3487
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
3488
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3489
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
3490
|
+
# default 'draft' environment. If `User ID` is not specified, we are using
|
3491
|
+
# "-". It's up to the API caller to choose an appropriate `Session ID` and
|
3492
|
+
# `User Id`. They can be a random number or some type of user and session
|
3493
|
+
# identifiers (preferably hashed). The length of the `Session ID` and
|
3494
|
+
# `User ID` must not exceed 36 characters.
|
3495
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
3496
|
+
# @param [String] fields
|
3497
|
+
# Selector specifying which fields to include in a partial response.
|
3498
|
+
# @param [String] quota_user
|
3499
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3500
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3501
|
+
# @param [Google::Apis::RequestOptions] options
|
3502
|
+
# Request-specific options
|
3503
|
+
#
|
3504
|
+
# @yield [result, err] Result & error if block supplied
|
3505
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse] parsed result object
|
3506
|
+
# @yieldparam err [StandardError] error object if request failed
|
3507
|
+
#
|
3508
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse]
|
3509
|
+
#
|
3510
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3511
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3512
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3513
|
+
def detect_project_location_agent_environment_user_session_intent(session, google_cloud_dialogflow_v2beta1_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3514
|
+
command = make_simple_command(:post, 'v2beta1/{+session}:detectIntent', options)
|
3515
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest::Representation
|
3516
|
+
command.request_object = google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
3517
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse::Representation
|
3518
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse
|
3519
|
+
command.params['session'] = session unless session.nil?
|
3520
|
+
command.query['fields'] = fields unless fields.nil?
|
3521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3522
|
+
execute_or_queue_command(command, &block)
|
3523
|
+
end
|
3524
|
+
|
3525
|
+
# Creates a context.
|
3526
|
+
# If the specified context already exists, overrides the context.
|
3527
|
+
# @param [String] parent
|
3528
|
+
# Required. The session to create a context for.
|
3529
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
3530
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3531
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
3532
|
+
# default 'draft' environment. If `User ID` is not specified, we assume
|
3533
|
+
# default '-' user.
|
3534
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
3535
|
+
# @param [String] fields
|
3536
|
+
# Selector specifying which fields to include in a partial response.
|
3537
|
+
# @param [String] quota_user
|
3538
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3539
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3540
|
+
# @param [Google::Apis::RequestOptions] options
|
3541
|
+
# Request-specific options
|
3542
|
+
#
|
3543
|
+
# @yield [result, err] Result & error if block supplied
|
3544
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object
|
3545
|
+
# @yieldparam err [StandardError] error object if request failed
|
3546
|
+
#
|
3547
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context]
|
3548
|
+
#
|
3549
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3550
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3551
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3552
|
+
def create_project_location_agent_environment_user_session_context(parent, google_cloud_dialogflow_v2beta1_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3553
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/contexts', options)
|
3554
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
3555
|
+
command.request_object = google_cloud_dialogflow_v2beta1_context_object
|
3556
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
3557
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
|
3558
|
+
command.params['parent'] = parent unless parent.nil?
|
3559
|
+
command.query['fields'] = fields unless fields.nil?
|
3560
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3561
|
+
execute_or_queue_command(command, &block)
|
3562
|
+
end
|
3563
|
+
|
3564
|
+
# Deletes the specified context.
|
3565
|
+
# @param [String] name
|
3566
|
+
# Required. The name of the context to delete. Format:
|
3567
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
3568
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3569
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
3570
|
+
# not specified, we assume default 'draft' environment. If `User ID` is not
|
3571
|
+
# specified, we assume default '-' user.
|
3572
|
+
# @param [String] fields
|
3573
|
+
# Selector specifying which fields to include in a partial response.
|
3574
|
+
# @param [String] quota_user
|
3575
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3576
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3577
|
+
# @param [Google::Apis::RequestOptions] options
|
3578
|
+
# Request-specific options
|
3579
|
+
#
|
3580
|
+
# @yield [result, err] Result & error if block supplied
|
3581
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
3582
|
+
# @yieldparam err [StandardError] error object if request failed
|
3583
|
+
#
|
3584
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
3585
|
+
#
|
3586
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3587
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3588
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3589
|
+
def delete_project_location_agent_environment_user_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
3590
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
3591
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
3592
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
3593
|
+
command.params['name'] = name unless name.nil?
|
3594
|
+
command.query['fields'] = fields unless fields.nil?
|
3595
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3596
|
+
execute_or_queue_command(command, &block)
|
3597
|
+
end
|
3598
|
+
|
3599
|
+
# Retrieves the specified context.
|
3600
|
+
# @param [String] name
|
3601
|
+
# Required. The name of the context. Format:
|
3602
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
3603
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3604
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
3605
|
+
# not specified, we assume default 'draft' environment. If `User ID` is not
|
3606
|
+
# specified, we assume default '-' user.
|
3607
|
+
# @param [String] fields
|
3608
|
+
# Selector specifying which fields to include in a partial response.
|
3609
|
+
# @param [String] quota_user
|
3610
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3611
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3612
|
+
# @param [Google::Apis::RequestOptions] options
|
3613
|
+
# Request-specific options
|
3614
|
+
#
|
3615
|
+
# @yield [result, err] Result & error if block supplied
|
3616
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object
|
3617
|
+
# @yieldparam err [StandardError] error object if request failed
|
3618
|
+
#
|
3619
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context]
|
3620
|
+
#
|
3621
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3622
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3623
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3624
|
+
def get_project_location_agent_environment_user_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
3625
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
3626
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
3627
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
|
3628
|
+
command.params['name'] = name unless name.nil?
|
3629
|
+
command.query['fields'] = fields unless fields.nil?
|
3630
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3631
|
+
execute_or_queue_command(command, &block)
|
3632
|
+
end
|
3633
|
+
|
3634
|
+
# Returns the list of all contexts in the specified session.
|
3635
|
+
# @param [String] parent
|
3636
|
+
# Required. The session to list all contexts from.
|
3637
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
3638
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3639
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
3640
|
+
# default 'draft' environment. If `User ID` is not specified, we assume
|
3641
|
+
# default '-' user.
|
3642
|
+
# @param [Fixnum] page_size
|
3643
|
+
# Optional. The maximum number of items to return in a single page. By
|
3644
|
+
# default 100 and at most 1000.
|
3645
|
+
# @param [String] page_token
|
3646
|
+
# Optional. The next_page_token value returned from a previous list request.
|
3647
|
+
# @param [String] fields
|
3648
|
+
# Selector specifying which fields to include in a partial response.
|
3649
|
+
# @param [String] quota_user
|
3650
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3651
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3652
|
+
# @param [Google::Apis::RequestOptions] options
|
3653
|
+
# Request-specific options
|
3654
|
+
#
|
3655
|
+
# @yield [result, err] Result & error if block supplied
|
3656
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse] parsed result object
|
3657
|
+
# @yieldparam err [StandardError] error object if request failed
|
3658
|
+
#
|
3659
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse]
|
3660
|
+
#
|
3661
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3662
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3663
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3664
|
+
def list_project_location_agent_environment_user_session_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3665
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/contexts', options)
|
3666
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse::Representation
|
3667
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse
|
3668
|
+
command.params['parent'] = parent unless parent.nil?
|
3669
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3670
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3671
|
+
command.query['fields'] = fields unless fields.nil?
|
3672
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3673
|
+
execute_or_queue_command(command, &block)
|
3674
|
+
end
|
3675
|
+
|
3676
|
+
# Updates the specified context.
|
3677
|
+
# @param [String] name
|
3678
|
+
# Required. The unique identifier of the context. Format:
|
3679
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
3680
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3681
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
3682
|
+
# The `Context ID` is always converted to lowercase, may only contain
|
3683
|
+
# characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
|
3684
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
3685
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3686
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
3687
|
+
# @param [String] update_mask
|
3688
|
+
# Optional. The mask to control which fields get updated.
|
3689
|
+
# @param [String] fields
|
3690
|
+
# Selector specifying which fields to include in a partial response.
|
3691
|
+
# @param [String] quota_user
|
3692
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3693
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3694
|
+
# @param [Google::Apis::RequestOptions] options
|
3695
|
+
# Request-specific options
|
3696
|
+
#
|
3697
|
+
# @yield [result, err] Result & error if block supplied
|
3698
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object
|
3699
|
+
# @yieldparam err [StandardError] error object if request failed
|
3700
|
+
#
|
3701
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context]
|
3702
|
+
#
|
3703
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3704
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3705
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3706
|
+
def patch_project_location_agent_environment_user_session_context(name, google_cloud_dialogflow_v2beta1_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3707
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
3708
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
3709
|
+
command.request_object = google_cloud_dialogflow_v2beta1_context_object
|
3710
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
3711
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
|
3712
|
+
command.params['name'] = name unless name.nil?
|
3713
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3714
|
+
command.query['fields'] = fields unless fields.nil?
|
3715
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3716
|
+
execute_or_queue_command(command, &block)
|
3717
|
+
end
|
3718
|
+
|
3719
|
+
# Creates a session entity type.
|
3720
|
+
# If the specified session entity type already exists, overrides the
|
3721
|
+
# session entity type.
|
3722
|
+
# This method doesn't work with Google Assistant integration.
|
3723
|
+
# Contact Dialogflow support if you need to use session entities
|
3724
|
+
# with Google Assistant integration.
|
3725
|
+
# @param [String] parent
|
3726
|
+
# Required. The session to create a session entity type for.
|
3727
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
3728
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
3729
|
+
# sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
3730
|
+
# default 'draft' environment. If `User ID` is not specified, we assume
|
3731
|
+
# default '-' user.
|
3732
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
3733
|
+
# @param [String] fields
|
3734
|
+
# Selector specifying which fields to include in a partial response.
|
3735
|
+
# @param [String] quota_user
|
3736
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3737
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3738
|
+
# @param [Google::Apis::RequestOptions] options
|
3739
|
+
# Request-specific options
|
3740
|
+
#
|
3741
|
+
# @yield [result, err] Result & error if block supplied
|
3742
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object
|
3743
|
+
# @yieldparam err [StandardError] error object if request failed
|
3744
|
+
#
|
3745
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType]
|
3746
|
+
#
|
3747
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3748
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3749
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3750
|
+
def create_project_location_agent_environment_user_session_entity_type(parent, google_cloud_dialogflow_v2beta1_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3751
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entityTypes', options)
|
3752
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
3753
|
+
command.request_object = google_cloud_dialogflow_v2beta1_session_entity_type_object
|
3754
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
3755
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
|
3756
|
+
command.params['parent'] = parent unless parent.nil?
|
3757
|
+
command.query['fields'] = fields unless fields.nil?
|
3758
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3759
|
+
execute_or_queue_command(command, &block)
|
3760
|
+
end
|
3761
|
+
|
3762
|
+
# Deletes the specified session entity type.
|
3763
|
+
# This method doesn't work with Google Assistant integration.
|
3764
|
+
# Contact Dialogflow support if you need to use session entities
|
3765
|
+
# with Google Assistant integration.
|
3766
|
+
# @param [String] name
|
3767
|
+
# Required. The name of the entity type to delete. Format:
|
3768
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
3769
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
3770
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
3771
|
+
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
3772
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3773
|
+
# @param [String] fields
|
3774
|
+
# Selector specifying which fields to include in a partial response.
|
3775
|
+
# @param [String] quota_user
|
3776
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3777
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3778
|
+
# @param [Google::Apis::RequestOptions] options
|
3779
|
+
# Request-specific options
|
3780
|
+
#
|
3781
|
+
# @yield [result, err] Result & error if block supplied
|
3782
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
3783
|
+
# @yieldparam err [StandardError] error object if request failed
|
3784
|
+
#
|
3785
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
3786
|
+
#
|
3787
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3788
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3789
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3790
|
+
def delete_project_location_agent_environment_user_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
3791
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
3792
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
3793
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
3794
|
+
command.params['name'] = name unless name.nil?
|
3795
|
+
command.query['fields'] = fields unless fields.nil?
|
3796
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3797
|
+
execute_or_queue_command(command, &block)
|
3798
|
+
end
|
3799
|
+
|
3800
|
+
# Retrieves the specified session entity type.
|
3801
|
+
# This method doesn't work with Google Assistant integration.
|
3802
|
+
# Contact Dialogflow support if you need to use session entities
|
3803
|
+
# with Google Assistant integration.
|
3804
|
+
# @param [String] name
|
3805
|
+
# Required. The name of the session entity type. Format:
|
3806
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
3807
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
3808
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
3809
|
+
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
3810
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3811
|
+
# @param [String] fields
|
3812
|
+
# Selector specifying which fields to include in a partial response.
|
3813
|
+
# @param [String] quota_user
|
3814
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3815
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3816
|
+
# @param [Google::Apis::RequestOptions] options
|
3817
|
+
# Request-specific options
|
3818
|
+
#
|
3819
|
+
# @yield [result, err] Result & error if block supplied
|
3820
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object
|
3821
|
+
# @yieldparam err [StandardError] error object if request failed
|
3822
|
+
#
|
3823
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType]
|
3824
|
+
#
|
3825
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3826
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3827
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3828
|
+
def get_project_location_agent_environment_user_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
3829
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
3830
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
3831
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
|
3832
|
+
command.params['name'] = name unless name.nil?
|
3833
|
+
command.query['fields'] = fields unless fields.nil?
|
3834
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3835
|
+
execute_or_queue_command(command, &block)
|
3836
|
+
end
|
3837
|
+
|
3838
|
+
# Returns the list of all session entity types in the specified session.
|
3839
|
+
# This method doesn't work with Google Assistant integration.
|
3840
|
+
# Contact Dialogflow support if you need to use session entities
|
3841
|
+
# with Google Assistant integration.
|
3842
|
+
# @param [String] parent
|
3843
|
+
# Required. The session to list all session entity types from.
|
3844
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
3845
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
3846
|
+
# sessions/<Session ID>`.
|
3847
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
3848
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3849
|
+
# @param [Fixnum] page_size
|
3850
|
+
# Optional. The maximum number of items to return in a single page. By
|
3851
|
+
# default 100 and at most 1000.
|
3852
|
+
# @param [String] page_token
|
3853
|
+
# Optional. The next_page_token value returned from a previous list request.
|
3854
|
+
# @param [String] fields
|
3855
|
+
# Selector specifying which fields to include in a partial response.
|
3856
|
+
# @param [String] quota_user
|
3857
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3858
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3859
|
+
# @param [Google::Apis::RequestOptions] options
|
3860
|
+
# Request-specific options
|
3861
|
+
#
|
3862
|
+
# @yield [result, err] Result & error if block supplied
|
3863
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse] parsed result object
|
3864
|
+
# @yieldparam err [StandardError] error object if request failed
|
3865
|
+
#
|
3866
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse]
|
3867
|
+
#
|
3868
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3869
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3870
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3871
|
+
def list_project_location_agent_environment_user_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3872
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/entityTypes', options)
|
3873
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse::Representation
|
3874
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
|
3875
|
+
command.params['parent'] = parent unless parent.nil?
|
3876
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
3877
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
3878
|
+
command.query['fields'] = fields unless fields.nil?
|
3879
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3880
|
+
execute_or_queue_command(command, &block)
|
3881
|
+
end
|
3882
|
+
|
3883
|
+
# Updates the specified session entity type.
|
3884
|
+
# This method doesn't work with Google Assistant integration.
|
3885
|
+
# Contact Dialogflow support if you need to use session entities
|
3886
|
+
# with Google Assistant integration.
|
3887
|
+
# @param [String] name
|
3888
|
+
# Required. The unique identifier of this session entity type. Format:
|
3889
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
3890
|
+
# Display Name>`, or
|
3891
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
3892
|
+
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
|
3893
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
3894
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
3895
|
+
# `<Entity Type Display Name>` must be the display name of an existing entity
|
3896
|
+
# type in the same agent that will be overridden or supplemented.
|
3897
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
3898
|
+
# @param [String] update_mask
|
3899
|
+
# Optional. The mask to control which fields get updated.
|
3900
|
+
# @param [String] fields
|
3901
|
+
# Selector specifying which fields to include in a partial response.
|
3902
|
+
# @param [String] quota_user
|
3903
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3904
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3905
|
+
# @param [Google::Apis::RequestOptions] options
|
3906
|
+
# Request-specific options
|
3907
|
+
#
|
3908
|
+
# @yield [result, err] Result & error if block supplied
|
3909
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object
|
3910
|
+
# @yieldparam err [StandardError] error object if request failed
|
3911
|
+
#
|
3912
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType]
|
3913
|
+
#
|
3914
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3915
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3916
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3917
|
+
def patch_project_location_agent_environment_user_session_entity_type(name, google_cloud_dialogflow_v2beta1_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
3918
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
3919
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
3920
|
+
command.request_object = google_cloud_dialogflow_v2beta1_session_entity_type_object
|
3921
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
3922
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
|
3923
|
+
command.params['name'] = name unless name.nil?
|
3924
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
3925
|
+
command.query['fields'] = fields unless fields.nil?
|
3926
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3927
|
+
execute_or_queue_command(command, &block)
|
3928
|
+
end
|
3929
|
+
|
3930
|
+
# Deletes intents in the specified agent.
|
3931
|
+
# Operation <response: google.protobuf.Empty>
|
3932
|
+
# @param [String] parent
|
3933
|
+
# Required. The name of the agent to delete all entities types for. Format:
|
3934
|
+
# `projects/<Project ID>/agent`.
|
3935
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest] google_cloud_dialogflow_v2beta1_batch_delete_intents_request_object
|
3936
|
+
# @param [String] fields
|
3937
|
+
# Selector specifying which fields to include in a partial response.
|
3938
|
+
# @param [String] quota_user
|
3939
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3940
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3941
|
+
# @param [Google::Apis::RequestOptions] options
|
3942
|
+
# Request-specific options
|
3943
|
+
#
|
3944
|
+
# @yield [result, err] Result & error if block supplied
|
3945
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3946
|
+
# @yieldparam err [StandardError] error object if request failed
|
3947
|
+
#
|
3948
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3949
|
+
#
|
3950
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3951
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3952
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3953
|
+
def batch_project_location_agent_intent_delete(parent, google_cloud_dialogflow_v2beta1_batch_delete_intents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3954
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/intents:batchDelete', options)
|
3955
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest::Representation
|
3956
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_delete_intents_request_object
|
3957
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3958
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3959
|
+
command.params['parent'] = parent unless parent.nil?
|
3960
|
+
command.query['fields'] = fields unless fields.nil?
|
3961
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3962
|
+
execute_or_queue_command(command, &block)
|
3963
|
+
end
|
3964
|
+
|
3965
|
+
# Updates/Creates multiple intents in the specified agent.
|
3966
|
+
# Operation <response: BatchUpdateIntentsResponse>
|
3967
|
+
# @param [String] parent
|
3968
|
+
# Required. The name of the agent to update or create intents in.
|
3969
|
+
# Format: `projects/<Project ID>/agent`.
|
3970
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest] google_cloud_dialogflow_v2beta1_batch_update_intents_request_object
|
3971
|
+
# @param [String] fields
|
3972
|
+
# Selector specifying which fields to include in a partial response.
|
3973
|
+
# @param [String] quota_user
|
3974
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
3975
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
3976
|
+
# @param [Google::Apis::RequestOptions] options
|
3977
|
+
# Request-specific options
|
3978
|
+
#
|
3979
|
+
# @yield [result, err] Result & error if block supplied
|
3980
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
3981
|
+
# @yieldparam err [StandardError] error object if request failed
|
3982
|
+
#
|
3983
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
3984
|
+
#
|
3985
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
3986
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
3987
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
3988
|
+
def batch_project_location_agent_intent_update(parent, google_cloud_dialogflow_v2beta1_batch_update_intents_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
3989
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/intents:batchUpdate', options)
|
3990
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest::Representation
|
3991
|
+
command.request_object = google_cloud_dialogflow_v2beta1_batch_update_intents_request_object
|
3992
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
3993
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
3994
|
+
command.params['parent'] = parent unless parent.nil?
|
3995
|
+
command.query['fields'] = fields unless fields.nil?
|
3996
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
3997
|
+
execute_or_queue_command(command, &block)
|
3998
|
+
end
|
3999
|
+
|
4000
|
+
# Creates an intent in the specified agent.
|
4001
|
+
# @param [String] parent
|
4002
|
+
# Required. The agent to create a intent for.
|
4003
|
+
# Format: `projects/<Project ID>/agent`.
|
4004
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent] google_cloud_dialogflow_v2beta1_intent_object
|
4005
|
+
# @param [String] intent_view
|
4006
|
+
# Optional. The resource view to apply to the returned intent.
|
4007
|
+
# @param [String] language_code
|
4008
|
+
# Optional. The language of training phrases, parameters and rich messages
|
4009
|
+
# defined in `intent`. If not specified, the agent's default language is
|
4010
|
+
# used. [Many
|
4011
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
4012
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
4013
|
+
# be used.
|
4014
|
+
# @param [String] fields
|
4015
|
+
# Selector specifying which fields to include in a partial response.
|
4016
|
+
# @param [String] quota_user
|
4017
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4018
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4019
|
+
# @param [Google::Apis::RequestOptions] options
|
4020
|
+
# Request-specific options
|
4021
|
+
#
|
4022
|
+
# @yield [result, err] Result & error if block supplied
|
4023
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent] parsed result object
|
4024
|
+
# @yieldparam err [StandardError] error object if request failed
|
4025
|
+
#
|
4026
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent]
|
4027
|
+
#
|
4028
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4029
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4030
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4031
|
+
def create_project_location_agent_intent(parent, google_cloud_dialogflow_v2beta1_intent_object = nil, intent_view: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4032
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/intents', options)
|
4033
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent::Representation
|
4034
|
+
command.request_object = google_cloud_dialogflow_v2beta1_intent_object
|
4035
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent::Representation
|
4036
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent
|
4037
|
+
command.params['parent'] = parent unless parent.nil?
|
4038
|
+
command.query['intentView'] = intent_view unless intent_view.nil?
|
4039
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
4040
|
+
command.query['fields'] = fields unless fields.nil?
|
4041
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4042
|
+
execute_or_queue_command(command, &block)
|
4043
|
+
end
|
4044
|
+
|
4045
|
+
# Deletes the specified intent and its direct or indirect followup intents.
|
4046
|
+
# @param [String] name
|
4047
|
+
# Required. The name of the intent to delete. If this intent has direct or
|
4048
|
+
# indirect followup intents, we also delete them.
|
4049
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
4050
|
+
# @param [String] fields
|
4051
|
+
# Selector specifying which fields to include in a partial response.
|
4052
|
+
# @param [String] quota_user
|
4053
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4054
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4055
|
+
# @param [Google::Apis::RequestOptions] options
|
4056
|
+
# Request-specific options
|
4057
|
+
#
|
4058
|
+
# @yield [result, err] Result & error if block supplied
|
4059
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
4060
|
+
# @yieldparam err [StandardError] error object if request failed
|
4061
|
+
#
|
4062
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
4063
|
+
#
|
4064
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4065
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4066
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4067
|
+
def delete_project_location_agent_intent(name, fields: nil, quota_user: nil, options: nil, &block)
|
4068
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
4069
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
4070
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
4071
|
+
command.params['name'] = name unless name.nil?
|
4072
|
+
command.query['fields'] = fields unless fields.nil?
|
4073
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4074
|
+
execute_or_queue_command(command, &block)
|
4075
|
+
end
|
4076
|
+
|
4077
|
+
# Retrieves the specified intent.
|
4078
|
+
# @param [String] name
|
4079
|
+
# Required. The name of the intent.
|
4080
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
4081
|
+
# @param [String] intent_view
|
4082
|
+
# Optional. The resource view to apply to the returned intent.
|
4083
|
+
# @param [String] language_code
|
4084
|
+
# Optional. The language to retrieve training phrases, parameters and rich
|
4085
|
+
# messages for. If not specified, the agent's default language is used.
|
4086
|
+
# [Many
|
4087
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
4088
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
4089
|
+
# be used.
|
4090
|
+
# @param [String] fields
|
4091
|
+
# Selector specifying which fields to include in a partial response.
|
4092
|
+
# @param [String] quota_user
|
4093
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4094
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4095
|
+
# @param [Google::Apis::RequestOptions] options
|
4096
|
+
# Request-specific options
|
4097
|
+
#
|
4098
|
+
# @yield [result, err] Result & error if block supplied
|
4099
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent] parsed result object
|
4100
|
+
# @yieldparam err [StandardError] error object if request failed
|
4101
|
+
#
|
4102
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent]
|
4103
|
+
#
|
4104
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4105
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4106
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4107
|
+
def get_project_location_agent_intent(name, intent_view: nil, language_code: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4108
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
4109
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent::Representation
|
4110
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent
|
4111
|
+
command.params['name'] = name unless name.nil?
|
4112
|
+
command.query['intentView'] = intent_view unless intent_view.nil?
|
4113
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
4114
|
+
command.query['fields'] = fields unless fields.nil?
|
4115
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4116
|
+
execute_or_queue_command(command, &block)
|
4117
|
+
end
|
4118
|
+
|
4119
|
+
# Returns the list of all intents in the specified agent.
|
4120
|
+
# @param [String] parent
|
4121
|
+
# Required. The agent to list all intents from.
|
4122
|
+
# Format: `projects/<Project ID>/agent`.
|
4123
|
+
# @param [String] intent_view
|
4124
|
+
# Optional. The resource view to apply to the returned intent.
|
4125
|
+
# @param [String] language_code
|
4126
|
+
# Optional. The language to list training phrases, parameters and rich
|
4127
|
+
# messages for. If not specified, the agent's default language is used.
|
4128
|
+
# [Many
|
4129
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
4130
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
4131
|
+
# be used.
|
4132
|
+
# @param [Fixnum] page_size
|
4133
|
+
# Optional. The maximum number of items to return in a single page. By
|
4134
|
+
# default 100 and at most 1000.
|
4135
|
+
# @param [String] page_token
|
4136
|
+
# Optional. The next_page_token value returned from a previous list request.
|
4137
|
+
# @param [String] fields
|
4138
|
+
# Selector specifying which fields to include in a partial response.
|
4139
|
+
# @param [String] quota_user
|
4140
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4141
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4142
|
+
# @param [Google::Apis::RequestOptions] options
|
4143
|
+
# Request-specific options
|
4144
|
+
#
|
4145
|
+
# @yield [result, err] Result & error if block supplied
|
4146
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse] parsed result object
|
4147
|
+
# @yieldparam err [StandardError] error object if request failed
|
4148
|
+
#
|
4149
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse]
|
4150
|
+
#
|
4151
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4152
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4153
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4154
|
+
def list_project_location_agent_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4155
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/intents', options)
|
4156
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse::Representation
|
4157
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse
|
4158
|
+
command.params['parent'] = parent unless parent.nil?
|
4159
|
+
command.query['intentView'] = intent_view unless intent_view.nil?
|
4160
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
4161
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4162
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4163
|
+
command.query['fields'] = fields unless fields.nil?
|
4164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4165
|
+
execute_or_queue_command(command, &block)
|
4166
|
+
end
|
4167
|
+
|
4168
|
+
# Updates the specified intent.
|
4169
|
+
# @param [String] name
|
4170
|
+
# The unique identifier of this intent.
|
4171
|
+
# Required for Intents.UpdateIntent and Intents.BatchUpdateIntents
|
4172
|
+
# methods.
|
4173
|
+
# Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
|
4174
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent] google_cloud_dialogflow_v2beta1_intent_object
|
4175
|
+
# @param [String] intent_view
|
4176
|
+
# Optional. The resource view to apply to the returned intent.
|
4177
|
+
# @param [String] language_code
|
4178
|
+
# Optional. The language of training phrases, parameters and rich messages
|
4179
|
+
# defined in `intent`. If not specified, the agent's default language is
|
4180
|
+
# used. [Many
|
4181
|
+
# languages](https://cloud.google.com/dialogflow/docs/reference/language)
|
4182
|
+
# are supported. Note: languages must be enabled in the agent before they can
|
4183
|
+
# be used.
|
4184
|
+
# @param [String] update_mask
|
4185
|
+
# Optional. The mask to control which fields get updated.
|
4186
|
+
# @param [String] fields
|
4187
|
+
# Selector specifying which fields to include in a partial response.
|
4188
|
+
# @param [String] quota_user
|
4189
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4190
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4191
|
+
# @param [Google::Apis::RequestOptions] options
|
4192
|
+
# Request-specific options
|
4193
|
+
#
|
4194
|
+
# @yield [result, err] Result & error if block supplied
|
4195
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent] parsed result object
|
4196
|
+
# @yieldparam err [StandardError] error object if request failed
|
4197
|
+
#
|
4198
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent]
|
4199
|
+
#
|
4200
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4201
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4202
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4203
|
+
def patch_project_location_agent_intent(name, google_cloud_dialogflow_v2beta1_intent_object = nil, intent_view: nil, language_code: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4204
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
4205
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent::Representation
|
4206
|
+
command.request_object = google_cloud_dialogflow_v2beta1_intent_object
|
4207
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent::Representation
|
4208
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Intent
|
4209
|
+
command.params['name'] = name unless name.nil?
|
4210
|
+
command.query['intentView'] = intent_view unless intent_view.nil?
|
4211
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
4212
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4213
|
+
command.query['fields'] = fields unless fields.nil?
|
4214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4215
|
+
execute_or_queue_command(command, &block)
|
4216
|
+
end
|
4217
|
+
|
4218
|
+
# Deletes all active contexts in the specified session.
|
4219
|
+
# @param [String] parent
|
4220
|
+
# Required. The name of the session to delete all contexts from. Format:
|
4221
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>` or `projects/<Project
|
4222
|
+
# ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session
|
4223
|
+
# ID>`. If `Environment ID` is not specified we assume default 'draft'
|
4224
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
4225
|
+
# @param [String] fields
|
4226
|
+
# Selector specifying which fields to include in a partial response.
|
4227
|
+
# @param [String] quota_user
|
4228
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4229
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4230
|
+
# @param [Google::Apis::RequestOptions] options
|
4231
|
+
# Request-specific options
|
4232
|
+
#
|
4233
|
+
# @yield [result, err] Result & error if block supplied
|
4234
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
4235
|
+
# @yieldparam err [StandardError] error object if request failed
|
4236
|
+
#
|
4237
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
4238
|
+
#
|
4239
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4240
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4241
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4242
|
+
def delete_project_location_agent_session_contexts(parent, fields: nil, quota_user: nil, options: nil, &block)
|
4243
|
+
command = make_simple_command(:delete, 'v2beta1/{+parent}/contexts', options)
|
4244
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
4245
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
4246
|
+
command.params['parent'] = parent unless parent.nil?
|
4247
|
+
command.query['fields'] = fields unless fields.nil?
|
4248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4249
|
+
execute_or_queue_command(command, &block)
|
4250
|
+
end
|
4251
|
+
|
4252
|
+
# Processes a natural language query and returns structured, actionable data
|
4253
|
+
# as a result. This method is not idempotent, because it may cause contexts
|
4254
|
+
# and session entity types to be updated, which in turn might affect
|
4255
|
+
# results of future queries.
|
4256
|
+
# @param [String] session
|
4257
|
+
# Required. The name of the session this query is sent to. Format:
|
4258
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>`, or
|
4259
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4260
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
4261
|
+
# default 'draft' environment. If `User ID` is not specified, we are using
|
4262
|
+
# "-". It's up to the API caller to choose an appropriate `Session ID` and
|
4263
|
+
# `User Id`. They can be a random number or some type of user and session
|
4264
|
+
# identifiers (preferably hashed). The length of the `Session ID` and
|
4265
|
+
# `User ID` must not exceed 36 characters.
|
4266
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
4267
|
+
# @param [String] fields
|
4268
|
+
# Selector specifying which fields to include in a partial response.
|
4269
|
+
# @param [String] quota_user
|
4270
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4271
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4272
|
+
# @param [Google::Apis::RequestOptions] options
|
4273
|
+
# Request-specific options
|
4274
|
+
#
|
4275
|
+
# @yield [result, err] Result & error if block supplied
|
4276
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse] parsed result object
|
4277
|
+
# @yieldparam err [StandardError] error object if request failed
|
4278
|
+
#
|
4279
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse]
|
4280
|
+
#
|
4281
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4282
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4283
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4284
|
+
def detect_project_location_agent_session_intent(session, google_cloud_dialogflow_v2beta1_detect_intent_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4285
|
+
command = make_simple_command(:post, 'v2beta1/{+session}:detectIntent', options)
|
4286
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest::Representation
|
4287
|
+
command.request_object = google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
4288
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse::Representation
|
4289
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentResponse
|
4290
|
+
command.params['session'] = session unless session.nil?
|
4291
|
+
command.query['fields'] = fields unless fields.nil?
|
4292
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4293
|
+
execute_or_queue_command(command, &block)
|
4294
|
+
end
|
4295
|
+
|
4296
|
+
# Creates a context.
|
4297
|
+
# If the specified context already exists, overrides the context.
|
4298
|
+
# @param [String] parent
|
4299
|
+
# Required. The session to create a context for.
|
4300
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
4301
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4302
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
4303
|
+
# default 'draft' environment. If `User ID` is not specified, we assume
|
4304
|
+
# default '-' user.
|
4305
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
4306
|
+
# @param [String] fields
|
4307
|
+
# Selector specifying which fields to include in a partial response.
|
4308
|
+
# @param [String] quota_user
|
4309
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4310
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4311
|
+
# @param [Google::Apis::RequestOptions] options
|
4312
|
+
# Request-specific options
|
4313
|
+
#
|
4314
|
+
# @yield [result, err] Result & error if block supplied
|
4315
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object
|
4316
|
+
# @yieldparam err [StandardError] error object if request failed
|
4317
|
+
#
|
4318
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context]
|
4319
|
+
#
|
4320
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4321
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4322
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4323
|
+
def create_project_location_agent_session_context(parent, google_cloud_dialogflow_v2beta1_context_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4324
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/contexts', options)
|
4325
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
4326
|
+
command.request_object = google_cloud_dialogflow_v2beta1_context_object
|
4327
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
4328
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
|
4329
|
+
command.params['parent'] = parent unless parent.nil?
|
4330
|
+
command.query['fields'] = fields unless fields.nil?
|
4331
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4332
|
+
execute_or_queue_command(command, &block)
|
4333
|
+
end
|
4334
|
+
|
4335
|
+
# Deletes the specified context.
|
4336
|
+
# @param [String] name
|
4337
|
+
# Required. The name of the context to delete. Format:
|
4338
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
4339
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4340
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
4341
|
+
# not specified, we assume default 'draft' environment. If `User ID` is not
|
4342
|
+
# specified, we assume default '-' user.
|
4343
|
+
# @param [String] fields
|
4344
|
+
# Selector specifying which fields to include in a partial response.
|
4345
|
+
# @param [String] quota_user
|
4346
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4347
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4348
|
+
# @param [Google::Apis::RequestOptions] options
|
4349
|
+
# Request-specific options
|
4350
|
+
#
|
4351
|
+
# @yield [result, err] Result & error if block supplied
|
4352
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
4353
|
+
# @yieldparam err [StandardError] error object if request failed
|
4354
|
+
#
|
4355
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
4356
|
+
#
|
4357
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4358
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4359
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4360
|
+
def delete_project_location_agent_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
4361
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
4362
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
4363
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
4364
|
+
command.params['name'] = name unless name.nil?
|
4365
|
+
command.query['fields'] = fields unless fields.nil?
|
4366
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4367
|
+
execute_or_queue_command(command, &block)
|
4368
|
+
end
|
4369
|
+
|
4370
|
+
# Retrieves the specified context.
|
4371
|
+
# @param [String] name
|
4372
|
+
# Required. The name of the context. Format:
|
4373
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`
|
4374
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4375
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`. If `Environment ID` is
|
4376
|
+
# not specified, we assume default 'draft' environment. If `User ID` is not
|
4377
|
+
# specified, we assume default '-' user.
|
4378
|
+
# @param [String] fields
|
4379
|
+
# Selector specifying which fields to include in a partial response.
|
4380
|
+
# @param [String] quota_user
|
4381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4383
|
+
# @param [Google::Apis::RequestOptions] options
|
4384
|
+
# Request-specific options
|
4385
|
+
#
|
4386
|
+
# @yield [result, err] Result & error if block supplied
|
4387
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object
|
4388
|
+
# @yieldparam err [StandardError] error object if request failed
|
4389
|
+
#
|
4390
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context]
|
4391
|
+
#
|
4392
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4393
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4394
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4395
|
+
def get_project_location_agent_session_context(name, fields: nil, quota_user: nil, options: nil, &block)
|
4396
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
4397
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
4398
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
|
4399
|
+
command.params['name'] = name unless name.nil?
|
4400
|
+
command.query['fields'] = fields unless fields.nil?
|
4401
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4402
|
+
execute_or_queue_command(command, &block)
|
4403
|
+
end
|
4404
|
+
|
4405
|
+
# Returns the list of all contexts in the specified session.
|
4406
|
+
# @param [String] parent
|
4407
|
+
# Required. The session to list all contexts from.
|
4408
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
4409
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4410
|
+
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
4411
|
+
# default 'draft' environment. If `User ID` is not specified, we assume
|
4412
|
+
# default '-' user.
|
4413
|
+
# @param [Fixnum] page_size
|
4414
|
+
# Optional. The maximum number of items to return in a single page. By
|
4415
|
+
# default 100 and at most 1000.
|
4416
|
+
# @param [String] page_token
|
4417
|
+
# Optional. The next_page_token value returned from a previous list request.
|
4418
|
+
# @param [String] fields
|
4419
|
+
# Selector specifying which fields to include in a partial response.
|
4420
|
+
# @param [String] quota_user
|
4421
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4422
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4423
|
+
# @param [Google::Apis::RequestOptions] options
|
4424
|
+
# Request-specific options
|
4425
|
+
#
|
4426
|
+
# @yield [result, err] Result & error if block supplied
|
4427
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse] parsed result object
|
4428
|
+
# @yieldparam err [StandardError] error object if request failed
|
4429
|
+
#
|
4430
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse]
|
4431
|
+
#
|
4432
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4433
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4434
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4435
|
+
def list_project_location_agent_session_contexts(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4436
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/contexts', options)
|
4437
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse::Representation
|
4438
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListContextsResponse
|
4439
|
+
command.params['parent'] = parent unless parent.nil?
|
4440
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4441
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4442
|
+
command.query['fields'] = fields unless fields.nil?
|
4443
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4444
|
+
execute_or_queue_command(command, &block)
|
4445
|
+
end
|
4446
|
+
|
4447
|
+
# Updates the specified context.
|
4448
|
+
# @param [String] name
|
4449
|
+
# Required. The unique identifier of the context. Format:
|
4450
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
|
4451
|
+
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4452
|
+
# ID>/sessions/<Session ID>/contexts/<Context ID>`.
|
4453
|
+
# The `Context ID` is always converted to lowercase, may only contain
|
4454
|
+
# characters in a-zA-Z0-9_-% and may be at most 250 bytes long.
|
4455
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
4456
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
4457
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] google_cloud_dialogflow_v2beta1_context_object
|
4458
|
+
# @param [String] update_mask
|
4459
|
+
# Optional. The mask to control which fields get updated.
|
4460
|
+
# @param [String] fields
|
4461
|
+
# Selector specifying which fields to include in a partial response.
|
4462
|
+
# @param [String] quota_user
|
4463
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4464
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4465
|
+
# @param [Google::Apis::RequestOptions] options
|
4466
|
+
# Request-specific options
|
4467
|
+
#
|
4468
|
+
# @yield [result, err] Result & error if block supplied
|
4469
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context] parsed result object
|
4470
|
+
# @yieldparam err [StandardError] error object if request failed
|
4471
|
+
#
|
4472
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context]
|
4473
|
+
#
|
4474
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4475
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4476
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4477
|
+
def patch_project_location_agent_session_context(name, google_cloud_dialogflow_v2beta1_context_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4478
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
4479
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
4480
|
+
command.request_object = google_cloud_dialogflow_v2beta1_context_object
|
4481
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation
|
4482
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context
|
4483
|
+
command.params['name'] = name unless name.nil?
|
4484
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4485
|
+
command.query['fields'] = fields unless fields.nil?
|
4486
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4487
|
+
execute_or_queue_command(command, &block)
|
4488
|
+
end
|
4489
|
+
|
4490
|
+
# Creates a session entity type.
|
4491
|
+
# If the specified session entity type already exists, overrides the
|
4492
|
+
# session entity type.
|
4493
|
+
# This method doesn't work with Google Assistant integration.
|
4494
|
+
# Contact Dialogflow support if you need to use session entities
|
4495
|
+
# with Google Assistant integration.
|
4496
|
+
# @param [String] parent
|
4497
|
+
# Required. The session to create a session entity type for.
|
4498
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
4499
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
4500
|
+
# sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
4501
|
+
# default 'draft' environment. If `User ID` is not specified, we assume
|
4502
|
+
# default '-' user.
|
4503
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
4504
|
+
# @param [String] fields
|
4505
|
+
# Selector specifying which fields to include in a partial response.
|
4506
|
+
# @param [String] quota_user
|
4507
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4508
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4509
|
+
# @param [Google::Apis::RequestOptions] options
|
4510
|
+
# Request-specific options
|
4511
|
+
#
|
4512
|
+
# @yield [result, err] Result & error if block supplied
|
4513
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object
|
4514
|
+
# @yieldparam err [StandardError] error object if request failed
|
4515
|
+
#
|
4516
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType]
|
4517
|
+
#
|
4518
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4519
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4520
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4521
|
+
def create_project_location_agent_session_entity_type(parent, google_cloud_dialogflow_v2beta1_session_entity_type_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
4522
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/entityTypes', options)
|
4523
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
4524
|
+
command.request_object = google_cloud_dialogflow_v2beta1_session_entity_type_object
|
4525
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
4526
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
|
4527
|
+
command.params['parent'] = parent unless parent.nil?
|
4528
|
+
command.query['fields'] = fields unless fields.nil?
|
4529
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4530
|
+
execute_or_queue_command(command, &block)
|
4531
|
+
end
|
4532
|
+
|
4533
|
+
# Deletes the specified session entity type.
|
4534
|
+
# This method doesn't work with Google Assistant integration.
|
4535
|
+
# Contact Dialogflow support if you need to use session entities
|
4536
|
+
# with Google Assistant integration.
|
4537
|
+
# @param [String] name
|
4538
|
+
# Required. The name of the entity type to delete. Format:
|
4539
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
4540
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
4541
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
4542
|
+
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
4543
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
4544
|
+
# @param [String] fields
|
4545
|
+
# Selector specifying which fields to include in a partial response.
|
4546
|
+
# @param [String] quota_user
|
4547
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4548
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4549
|
+
# @param [Google::Apis::RequestOptions] options
|
4550
|
+
# Request-specific options
|
4551
|
+
#
|
4552
|
+
# @yield [result, err] Result & error if block supplied
|
4553
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
4554
|
+
# @yieldparam err [StandardError] error object if request failed
|
4555
|
+
#
|
4556
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
4557
|
+
#
|
4558
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4559
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4560
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4561
|
+
def delete_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
4562
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
4563
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
4564
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
4565
|
+
command.params['name'] = name unless name.nil?
|
4566
|
+
command.query['fields'] = fields unless fields.nil?
|
4567
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4568
|
+
execute_or_queue_command(command, &block)
|
4569
|
+
end
|
4570
|
+
|
4571
|
+
# Retrieves the specified session entity type.
|
4572
|
+
# This method doesn't work with Google Assistant integration.
|
4573
|
+
# Contact Dialogflow support if you need to use session entities
|
4574
|
+
# with Google Assistant integration.
|
4575
|
+
# @param [String] name
|
4576
|
+
# Required. The name of the session entity type. Format:
|
4577
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
4578
|
+
# Display Name>` or `projects/<Project ID>/agent/environments/<Environment
|
4579
|
+
# ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display
|
4580
|
+
# Name>`. If `Environment ID` is not specified, we assume default 'draft'
|
4581
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
4582
|
+
# @param [String] fields
|
4583
|
+
# Selector specifying which fields to include in a partial response.
|
4584
|
+
# @param [String] quota_user
|
4585
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4586
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4587
|
+
# @param [Google::Apis::RequestOptions] options
|
4588
|
+
# Request-specific options
|
4589
|
+
#
|
4590
|
+
# @yield [result, err] Result & error if block supplied
|
4591
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object
|
4592
|
+
# @yieldparam err [StandardError] error object if request failed
|
4593
|
+
#
|
4594
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType]
|
4595
|
+
#
|
4596
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4597
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4598
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4599
|
+
def get_project_location_agent_session_entity_type(name, fields: nil, quota_user: nil, options: nil, &block)
|
4600
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
4601
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
4602
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
|
4603
|
+
command.params['name'] = name unless name.nil?
|
4604
|
+
command.query['fields'] = fields unless fields.nil?
|
4605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4606
|
+
execute_or_queue_command(command, &block)
|
4607
|
+
end
|
4608
|
+
|
4609
|
+
# Returns the list of all session entity types in the specified session.
|
4610
|
+
# This method doesn't work with Google Assistant integration.
|
4611
|
+
# Contact Dialogflow support if you need to use session entities
|
4612
|
+
# with Google Assistant integration.
|
4613
|
+
# @param [String] parent
|
4614
|
+
# Required. The session to list all session entity types from.
|
4615
|
+
# Format: `projects/<Project ID>/agent/sessions/<Session ID>` or
|
4616
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/
|
4617
|
+
# sessions/<Session ID>`.
|
4618
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
4619
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
4620
|
+
# @param [Fixnum] page_size
|
4621
|
+
# Optional. The maximum number of items to return in a single page. By
|
4622
|
+
# default 100 and at most 1000.
|
4623
|
+
# @param [String] page_token
|
4624
|
+
# Optional. The next_page_token value returned from a previous list request.
|
4625
|
+
# @param [String] fields
|
4626
|
+
# Selector specifying which fields to include in a partial response.
|
4627
|
+
# @param [String] quota_user
|
4628
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4629
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4630
|
+
# @param [Google::Apis::RequestOptions] options
|
4631
|
+
# Request-specific options
|
4632
|
+
#
|
4633
|
+
# @yield [result, err] Result & error if block supplied
|
4634
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse] parsed result object
|
4635
|
+
# @yieldparam err [StandardError] error object if request failed
|
4636
|
+
#
|
4637
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse]
|
4638
|
+
#
|
4639
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4640
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4641
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4642
|
+
def list_project_location_agent_session_entity_types(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4643
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/entityTypes', options)
|
4644
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse::Representation
|
4645
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
|
4646
|
+
command.params['parent'] = parent unless parent.nil?
|
4647
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4648
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4649
|
+
command.query['fields'] = fields unless fields.nil?
|
4650
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4651
|
+
execute_or_queue_command(command, &block)
|
4652
|
+
end
|
4653
|
+
|
4654
|
+
# Updates the specified session entity type.
|
4655
|
+
# This method doesn't work with Google Assistant integration.
|
4656
|
+
# Contact Dialogflow support if you need to use session entities
|
4657
|
+
# with Google Assistant integration.
|
4658
|
+
# @param [String] name
|
4659
|
+
# Required. The unique identifier of this session entity type. Format:
|
4660
|
+
# `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type
|
4661
|
+
# Display Name>`, or
|
4662
|
+
# `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
|
4663
|
+
# ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>`.
|
4664
|
+
# If `Environment ID` is not specified, we assume default 'draft'
|
4665
|
+
# environment. If `User ID` is not specified, we assume default '-' user.
|
4666
|
+
# `<Entity Type Display Name>` must be the display name of an existing entity
|
4667
|
+
# type in the same agent that will be overridden or supplemented.
|
4668
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] google_cloud_dialogflow_v2beta1_session_entity_type_object
|
4669
|
+
# @param [String] update_mask
|
4670
|
+
# Optional. The mask to control which fields get updated.
|
4671
|
+
# @param [String] fields
|
4672
|
+
# Selector specifying which fields to include in a partial response.
|
4673
|
+
# @param [String] quota_user
|
4674
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4675
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4676
|
+
# @param [Google::Apis::RequestOptions] options
|
4677
|
+
# Request-specific options
|
4678
|
+
#
|
4679
|
+
# @yield [result, err] Result & error if block supplied
|
4680
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType] parsed result object
|
4681
|
+
# @yieldparam err [StandardError] error object if request failed
|
4682
|
+
#
|
4683
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType]
|
4684
|
+
#
|
4685
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4686
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4687
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4688
|
+
def patch_project_location_agent_session_entity_type(name, google_cloud_dialogflow_v2beta1_session_entity_type_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4689
|
+
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
4690
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
4691
|
+
command.request_object = google_cloud_dialogflow_v2beta1_session_entity_type_object
|
4692
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation
|
4693
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType
|
4694
|
+
command.params['name'] = name unless name.nil?
|
4695
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4696
|
+
command.query['fields'] = fields unless fields.nil?
|
4697
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4698
|
+
execute_or_queue_command(command, &block)
|
4699
|
+
end
|
4700
|
+
|
4701
|
+
# Gets the latest state of a long-running operation. Clients can use this
|
4702
|
+
# method to poll the operation result at intervals as recommended by the API
|
4703
|
+
# service.
|
4704
|
+
# @param [String] name
|
4705
|
+
# The name of the operation resource.
|
4706
|
+
# @param [String] fields
|
4707
|
+
# Selector specifying which fields to include in a partial response.
|
4708
|
+
# @param [String] quota_user
|
4709
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4710
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4711
|
+
# @param [Google::Apis::RequestOptions] options
|
4712
|
+
# Request-specific options
|
4713
|
+
#
|
4714
|
+
# @yield [result, err] Result & error if block supplied
|
4715
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation] parsed result object
|
4716
|
+
# @yieldparam err [StandardError] error object if request failed
|
4717
|
+
#
|
4718
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation]
|
4719
|
+
#
|
4720
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4721
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4722
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4723
|
+
def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
|
4724
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
4725
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation::Representation
|
4726
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningOperation
|
4727
|
+
command.params['name'] = name unless name.nil?
|
4728
|
+
command.query['fields'] = fields unless fields.nil?
|
4729
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4730
|
+
execute_or_queue_command(command, &block)
|
4731
|
+
end
|
4732
|
+
|
4733
|
+
# Lists operations that match the specified filter in the request. If the
|
4734
|
+
# server doesn't support this method, it returns `UNIMPLEMENTED`.
|
4735
|
+
# NOTE: the `name` binding allows API services to override the binding
|
4736
|
+
# to use different resource name schemes, such as `users/*/operations`. To
|
4737
|
+
# override the binding, API services can add a binding such as
|
4738
|
+
# `"/v1/`name=users/*`/operations"` to their service configuration.
|
4739
|
+
# For backwards compatibility, the default name includes the operations
|
4740
|
+
# collection id, however overriding users must ensure the name binding
|
4741
|
+
# is the parent resource, without the operations collection id.
|
4742
|
+
# @param [String] name
|
4743
|
+
# The name of the operation's parent resource.
|
4744
|
+
# @param [String] filter
|
4745
|
+
# The standard list filter.
|
4746
|
+
# @param [Fixnum] page_size
|
4747
|
+
# The standard list page size.
|
4748
|
+
# @param [String] page_token
|
4749
|
+
# The standard list page token.
|
4750
|
+
# @param [String] fields
|
4751
|
+
# Selector specifying which fields to include in a partial response.
|
4752
|
+
# @param [String] quota_user
|
4753
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4754
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4755
|
+
# @param [Google::Apis::RequestOptions] options
|
4756
|
+
# Request-specific options
|
4757
|
+
#
|
4758
|
+
# @yield [result, err] Result & error if block supplied
|
4759
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse] parsed result object
|
4760
|
+
# @yieldparam err [StandardError] error object if request failed
|
4761
|
+
#
|
4762
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse]
|
4763
|
+
#
|
4764
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4765
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4766
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4767
|
+
def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4768
|
+
command = make_simple_command(:get, 'v2beta1/{+name}/operations', options)
|
4769
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse::Representation
|
4770
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleLongrunningListOperationsResponse
|
4771
|
+
command.params['name'] = name unless name.nil?
|
4772
|
+
command.query['filter'] = filter unless filter.nil?
|
4773
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
4774
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
4775
|
+
command.query['fields'] = fields unless fields.nil?
|
4776
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4777
|
+
execute_or_queue_command(command, &block)
|
4778
|
+
end
|
4779
|
+
|
2791
4780
|
# Gets the latest state of a long-running operation. Clients can use this
|
2792
4781
|
# method to poll the operation result at intervals as recommended by the API
|
2793
4782
|
# service.
|