google-api-client 0.37.1 → 0.37.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +105 -0
- data/generated/google/apis/accessapproval_v1.rb +1 -1
- data/generated/google/apis/accessapproval_v1beta1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1/classes.rb +2 -2
- data/generated/google/apis/accesscontextmanager_v1/service.rb +10 -8
- data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
- data/generated/google/apis/accesscontextmanager_v1beta/classes.rb +0 -38
- data/generated/google/apis/accesscontextmanager_v1beta/representations.rb +0 -16
- data/generated/google/apis/androidmanagement_v1.rb +1 -1
- data/generated/google/apis/androidpublisher_v3.rb +1 -1
- data/generated/google/apis/androidpublisher_v3/classes.rb +193 -0
- data/generated/google/apis/androidpublisher_v3/representations.rb +89 -0
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1alpha.rb +1 -1
- data/generated/google/apis/appengine_v1beta.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1.rb +1 -1
- data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +15 -14
- data/generated/google/apis/binaryauthorization_v1.rb +1 -1
- data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +86 -0
- data/generated/google/apis/books_v1/representations.rb +37 -0
- data/generated/google/apis/classroom_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1.rb +1 -1
- data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
- data/generated/google/apis/cloudiot_v1.rb +1 -1
- data/generated/google/apis/cloudkms_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1.rb +1 -1
- data/generated/google/apis/cloudsearch_v1/classes.rb +0 -2
- data/generated/google/apis/cloudsearch_v1/service.rb +12 -0
- data/generated/google/apis/cloudshell_v1.rb +1 -1
- data/generated/google/apis/cloudshell_v1alpha1.rb +1 -1
- data/generated/google/apis/cloudtrace_v1.rb +1 -1
- data/generated/google/apis/cloudtrace_v2.rb +1 -1
- data/generated/google/apis/cloudtrace_v2beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1.rb +1 -1
- data/generated/google/apis/composer_v1beta1/classes.rb +1 -1
- data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
- data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +30 -26
- data/generated/google/apis/content_v2_1.rb +1 -1
- data/generated/google/apis/content_v2_1/classes.rb +30 -26
- data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
- data/generated/google/apis/datacatalog_v1beta1/classes.rb +25 -37
- data/generated/google/apis/datacatalog_v1beta1/representations.rb +2 -15
- data/generated/google/apis/datacatalog_v1beta1/service.rb +0 -43
- data/generated/google/apis/dataproc_v1beta2.rb +1 -1
- data/generated/google/apis/dataproc_v1beta2/classes.rb +15 -0
- data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1beta1.rb +1 -1
- data/generated/google/apis/datastore_v1beta3.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4.rb +1 -1
- data/generated/google/apis/dfareporting_v3_4/classes.rb +0 -7
- data/generated/google/apis/dfareporting_v3_4/representations.rb +0 -1
- data/generated/google/apis/dialogflow_v2.rb +1 -1
- data/generated/google/apis/dialogflow_v2/classes.rb +20 -231
- data/generated/google/apis/dialogflow_v2/representations.rb +1 -95
- data/generated/google/apis/dialogflow_v2/service.rb +26 -390
- data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
- data/generated/google/apis/dialogflow_v2beta1/classes.rb +23 -235
- data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -95
- data/generated/google/apis/dialogflow_v2beta1/service.rb +68 -804
- data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
- data/generated/google/apis/displayvideo_v1.rb +38 -0
- data/generated/google/apis/displayvideo_v1/classes.rb +382 -0
- data/generated/google/apis/displayvideo_v1/representations.rb +167 -0
- data/generated/google/apis/displayvideo_v1/service.rb +176 -0
- data/generated/google/apis/dlp_v2.rb +1 -1
- data/generated/google/apis/dlp_v2/classes.rb +31 -0
- data/generated/google/apis/dlp_v2/representations.rb +5 -0
- data/generated/google/apis/docs_v1.rb +1 -1
- data/generated/google/apis/docs_v1/classes.rb +22 -0
- data/generated/google/apis/docs_v1/representations.rb +3 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -1
- data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1.rb +1 -1
- data/generated/google/apis/firestore_v1beta1.rb +1 -1
- data/generated/google/apis/firestore_v1beta2.rb +1 -1
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +13 -9
- data/generated/google/apis/genomics_v1.rb +1 -1
- data/generated/google/apis/genomics_v1alpha2.rb +1 -1
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta2.rb +1 -1
- data/generated/google/apis/logging_v2.rb +1 -1
- data/generated/google/apis/logging_v2/classes.rb +22 -35
- data/generated/google/apis/logging_v2/representations.rb +0 -2
- data/generated/google/apis/logging_v2/service.rb +14 -14
- data/generated/google/apis/managedidentities_v1.rb +35 -0
- data/generated/google/apis/managedidentities_v1/classes.rb +1662 -0
- data/generated/google/apis/managedidentities_v1/representations.rb +576 -0
- data/generated/google/apis/managedidentities_v1/service.rb +779 -0
- data/generated/google/apis/managedidentities_v1alpha1.rb +35 -0
- data/generated/google/apis/managedidentities_v1alpha1/classes.rb +1661 -0
- data/generated/google/apis/managedidentities_v1alpha1/representations.rb +576 -0
- data/generated/google/apis/managedidentities_v1alpha1/service.rb +782 -0
- data/generated/google/apis/managedidentities_v1beta1.rb +35 -0
- data/generated/google/apis/managedidentities_v1beta1/classes.rb +1659 -0
- data/generated/google/apis/managedidentities_v1beta1/representations.rb +576 -0
- data/generated/google/apis/managedidentities_v1beta1/service.rb +778 -0
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +23 -43
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/classes.rb +0 -68
- data/generated/google/apis/oauth2_v2/representations.rb +0 -32
- data/generated/google/apis/oauth2_v2/service.rb +0 -30
- data/generated/google/apis/pubsub_v1.rb +1 -1
- data/generated/google/apis/pubsub_v1/classes.rb +16 -12
- data/generated/google/apis/pubsub_v1/service.rb +22 -21
- data/generated/google/apis/pubsub_v1beta1a.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
- data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
- data/generated/google/apis/run_v1.rb +1 -1
- data/generated/google/apis/run_v1/classes.rb +48 -0
- data/generated/google/apis/run_v1/representations.rb +17 -0
- data/generated/google/apis/run_v1/service.rb +208 -0
- data/generated/google/apis/run_v1alpha1.rb +1 -1
- data/generated/google/apis/run_v1alpha1/classes.rb +431 -280
- data/generated/google/apis/run_v1alpha1/representations.rb +156 -105
- data/generated/google/apis/run_v1alpha1/service.rb +874 -448
- data/generated/google/apis/run_v1beta1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1.rb +1 -1
- data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
- data/generated/google/apis/secretmanager_v1.rb +3 -3
- data/generated/google/apis/secretmanager_v1/service.rb +2 -2
- data/generated/google/apis/secretmanager_v1beta1.rb +3 -3
- data/generated/google/apis/secretmanager_v1beta1/service.rb +2 -2
- data/generated/google/apis/securitycenter_v1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
- data/generated/google/apis/securitycenter_v1beta1/classes.rb +98 -98
- data/generated/google/apis/securitycenter_v1beta1/representations.rb +37 -37
- data/generated/google/apis/securitycenter_v1beta1/service.rb +36 -36
- data/generated/google/apis/securitycenter_v1p1alpha1.rb +1 -1
- data/generated/google/apis/securitycenter_v1p1beta1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
- data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +56 -0
- data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +17 -0
- data/generated/google/apis/servicecontrol_v1.rb +1 -1
- data/generated/google/apis/servicemanagement_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1.rb +1 -1
- data/generated/google/apis/servicenetworking_v1/classes.rb +56 -0
- data/generated/google/apis/servicenetworking_v1/representations.rb +17 -0
- data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
- data/generated/google/apis/servicenetworking_v1beta/classes.rb +56 -0
- data/generated/google/apis/servicenetworking_v1beta/representations.rb +17 -0
- data/generated/google/apis/serviceusage_v1.rb +1 -1
- data/generated/google/apis/serviceusage_v1/classes.rb +56 -0
- data/generated/google/apis/serviceusage_v1/representations.rb +17 -0
- data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
- data/generated/google/apis/serviceusage_v1beta1/classes.rb +56 -0
- data/generated/google/apis/serviceusage_v1beta1/representations.rb +17 -0
- data/generated/google/apis/spanner_v1.rb +1 -1
- data/generated/google/apis/spanner_v1/classes.rb +38 -11
- data/generated/google/apis/spanner_v1/representations.rb +15 -0
- data/generated/google/apis/speech_v1.rb +1 -1
- data/generated/google/apis/speech_v1p1beta1.rb +1 -1
- data/generated/google/apis/speech_v2beta1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1.rb +1 -1
- data/generated/google/apis/streetviewpublish_v1/service.rb +1 -1
- data/generated/google/apis/texttospeech_v1.rb +1 -1
- data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
- data/generated/google/apis/toolresults_v1.rb +1 -1
- data/generated/google/apis/toolresults_v1/service.rb +1 -1
- data/generated/google/apis/translate_v3.rb +1 -1
- data/generated/google/apis/translate_v3beta1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1/classes.rb +6 -0
- data/generated/google/apis/websecurityscanner_v1/representations.rb +1 -0
- data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
- data/generated/google/apis/websecurityscanner_v1beta/classes.rb +6 -0
- data/generated/google/apis/websecurityscanner_v1beta/representations.rb +1 -0
- data/generated/google/apis/youtube_partner_v1.rb +1 -1
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +72 -33
- data/generated/google/apis/youtube_v3/representations.rb +32 -4
- data/lib/google/apis/version.rb +1 -1
- metadata +19 -3
@@ -48,13 +48,10 @@ module Google
|
|
48
48
|
@batch_path = 'batch'
|
49
49
|
end
|
50
50
|
|
51
|
-
#
|
51
|
+
# Deletes the specified agent.
|
52
52
|
# @param [String] parent
|
53
|
-
# Required. The project
|
53
|
+
# Required. The project that the agent to delete is associated with.
|
54
54
|
# Format: `projects/<Project ID>`.
|
55
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] google_cloud_dialogflow_v2beta1_agent_object
|
56
|
-
# @param [String] update_mask
|
57
|
-
# Optional. The mask to control which fields get updated.
|
58
55
|
# @param [String] fields
|
59
56
|
# Selector specifying which fields to include in a partial response.
|
60
57
|
# @param [String] quota_user
|
@@ -64,30 +61,27 @@ module Google
|
|
64
61
|
# Request-specific options
|
65
62
|
#
|
66
63
|
# @yield [result, err] Result & error if block supplied
|
67
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
64
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
68
65
|
# @yieldparam err [StandardError] error object if request failed
|
69
66
|
#
|
70
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
67
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
71
68
|
#
|
72
69
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
70
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
71
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
-
def
|
76
|
-
command = make_simple_command(:
|
77
|
-
command.
|
78
|
-
command.
|
79
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
80
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent
|
72
|
+
def delete_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
|
73
|
+
command = make_simple_command(:delete, 'v2beta1/{+parent}/agent', options)
|
74
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
75
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
81
76
|
command.params['parent'] = parent unless parent.nil?
|
82
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
83
77
|
command.query['fields'] = fields unless fields.nil?
|
84
78
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
85
79
|
execute_or_queue_command(command, &block)
|
86
80
|
end
|
87
81
|
|
88
|
-
#
|
82
|
+
# Retrieves the specified agent.
|
89
83
|
# @param [String] parent
|
90
|
-
# Required. The project that the agent to
|
84
|
+
# Required. The project that the agent to fetch is associated with.
|
91
85
|
# Format: `projects/<Project ID>`.
|
92
86
|
# @param [String] fields
|
93
87
|
# Selector specifying which fields to include in a partial response.
|
@@ -98,28 +92,31 @@ module Google
|
|
98
92
|
# Request-specific options
|
99
93
|
#
|
100
94
|
# @yield [result, err] Result & error if block supplied
|
101
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
95
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] parsed result object
|
102
96
|
# @yieldparam err [StandardError] error object if request failed
|
103
97
|
#
|
104
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
98
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent]
|
105
99
|
#
|
106
100
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
107
101
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
108
102
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
109
|
-
def
|
110
|
-
command = make_simple_command(:
|
111
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
112
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
103
|
+
def get_project_agent(parent, fields: nil, quota_user: nil, options: nil, &block)
|
104
|
+
command = make_simple_command(:get, 'v2beta1/{+parent}/agent', options)
|
105
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
106
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent
|
113
107
|
command.params['parent'] = parent unless parent.nil?
|
114
108
|
command.query['fields'] = fields unless fields.nil?
|
115
109
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
116
110
|
execute_or_queue_command(command, &block)
|
117
111
|
end
|
118
112
|
|
119
|
-
#
|
113
|
+
# Creates/updates the specified agent.
|
120
114
|
# @param [String] parent
|
121
|
-
# Required. The project
|
115
|
+
# Required. The project of this agent.
|
122
116
|
# Format: `projects/<Project ID>`.
|
117
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent] google_cloud_dialogflow_v2beta1_agent_object
|
118
|
+
# @param [String] update_mask
|
119
|
+
# Optional. The mask to control which fields get updated.
|
123
120
|
# @param [String] fields
|
124
121
|
# Selector specifying which fields to include in a partial response.
|
125
122
|
# @param [String] quota_user
|
@@ -137,11 +134,14 @@ module Google
|
|
137
134
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
138
135
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
139
136
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
140
|
-
def
|
141
|
-
command = make_simple_command(:
|
137
|
+
def set_project_agent(parent, google_cloud_dialogflow_v2beta1_agent_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
138
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/agent', options)
|
139
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
140
|
+
command.request_object = google_cloud_dialogflow_v2beta1_agent_object
|
142
141
|
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent::Representation
|
143
142
|
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Agent
|
144
143
|
command.params['parent'] = parent unless parent.nil?
|
144
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
145
145
|
command.query['fields'] = fields unless fields.nil?
|
146
146
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
147
147
|
execute_or_queue_command(command, &block)
|
@@ -826,229 +826,6 @@ module Google
|
|
826
826
|
execute_or_queue_command(command, &block)
|
827
827
|
end
|
828
828
|
|
829
|
-
# Creates an agent environment.
|
830
|
-
# @param [String] parent
|
831
|
-
# Required. The agent to create a environment for.
|
832
|
-
# Format: `projects/<Project ID>/agent`.
|
833
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
834
|
-
# @param [String] environment_id
|
835
|
-
# Required. The unique id of the new environment.
|
836
|
-
# @param [String] fields
|
837
|
-
# Selector specifying which fields to include in a partial response.
|
838
|
-
# @param [String] quota_user
|
839
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
840
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
841
|
-
# @param [Google::Apis::RequestOptions] options
|
842
|
-
# Request-specific options
|
843
|
-
#
|
844
|
-
# @yield [result, err] Result & error if block supplied
|
845
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
846
|
-
# @yieldparam err [StandardError] error object if request failed
|
847
|
-
#
|
848
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
849
|
-
#
|
850
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
851
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
852
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
853
|
-
def create_project_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
854
|
-
command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
|
855
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
856
|
-
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
857
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
858
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
859
|
-
command.params['parent'] = parent unless parent.nil?
|
860
|
-
command.query['environmentId'] = environment_id unless environment_id.nil?
|
861
|
-
command.query['fields'] = fields unless fields.nil?
|
862
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
863
|
-
execute_or_queue_command(command, &block)
|
864
|
-
end
|
865
|
-
|
866
|
-
# Deletes the specified agent environment.
|
867
|
-
# @param [String] name
|
868
|
-
# Required. The name of the environment to delete.
|
869
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
870
|
-
# @param [String] fields
|
871
|
-
# Selector specifying which fields to include in a partial response.
|
872
|
-
# @param [String] quota_user
|
873
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
874
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
875
|
-
# @param [Google::Apis::RequestOptions] options
|
876
|
-
# Request-specific options
|
877
|
-
#
|
878
|
-
# @yield [result, err] Result & error if block supplied
|
879
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
880
|
-
# @yieldparam err [StandardError] error object if request failed
|
881
|
-
#
|
882
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
883
|
-
#
|
884
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
885
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
886
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
887
|
-
def delete_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
888
|
-
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
889
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
890
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
891
|
-
command.params['name'] = name unless name.nil?
|
892
|
-
command.query['fields'] = fields unless fields.nil?
|
893
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
894
|
-
execute_or_queue_command(command, &block)
|
895
|
-
end
|
896
|
-
|
897
|
-
# Retrieves the specified agent environment.
|
898
|
-
# @param [String] name
|
899
|
-
# Required. The name of the environment.
|
900
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
901
|
-
# @param [String] fields
|
902
|
-
# Selector specifying which fields to include in a partial response.
|
903
|
-
# @param [String] quota_user
|
904
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
905
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
906
|
-
# @param [Google::Apis::RequestOptions] options
|
907
|
-
# Request-specific options
|
908
|
-
#
|
909
|
-
# @yield [result, err] Result & error if block supplied
|
910
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
911
|
-
# @yieldparam err [StandardError] error object if request failed
|
912
|
-
#
|
913
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
914
|
-
#
|
915
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
916
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
917
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
918
|
-
def get_project_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
919
|
-
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
920
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
921
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
922
|
-
command.params['name'] = name unless name.nil?
|
923
|
-
command.query['fields'] = fields unless fields.nil?
|
924
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
925
|
-
execute_or_queue_command(command, &block)
|
926
|
-
end
|
927
|
-
|
928
|
-
# Gets the history of the specified environment.
|
929
|
-
# @param [String] parent
|
930
|
-
# Required. The name of the environment to retrieve history for.
|
931
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
932
|
-
# @param [Fixnum] page_size
|
933
|
-
# Optional. The maximum number of items to return in a single page. By default
|
934
|
-
# 100 and
|
935
|
-
# at most 1000.
|
936
|
-
# @param [String] page_token
|
937
|
-
# Optional. The next_page_token value returned from a previous list request.
|
938
|
-
# @param [String] fields
|
939
|
-
# Selector specifying which fields to include in a partial response.
|
940
|
-
# @param [String] quota_user
|
941
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
942
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
943
|
-
# @param [Google::Apis::RequestOptions] options
|
944
|
-
# Request-specific options
|
945
|
-
#
|
946
|
-
# @yield [result, err] Result & error if block supplied
|
947
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
|
948
|
-
# @yieldparam err [StandardError] error object if request failed
|
949
|
-
#
|
950
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
|
951
|
-
#
|
952
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
953
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
954
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
955
|
-
def get_project_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
956
|
-
command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
|
957
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
|
958
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
|
959
|
-
command.params['parent'] = parent unless parent.nil?
|
960
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
961
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
962
|
-
command.query['fields'] = fields unless fields.nil?
|
963
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
964
|
-
execute_or_queue_command(command, &block)
|
965
|
-
end
|
966
|
-
|
967
|
-
# Returns the list of all environments of the specified agent.
|
968
|
-
# @param [String] parent
|
969
|
-
# Required. The agent to list all environments from.
|
970
|
-
# Format: `projects/<Project ID>/agent`.
|
971
|
-
# @param [Fixnum] page_size
|
972
|
-
# Optional. The maximum number of items to return in a single page. By default
|
973
|
-
# 100 and
|
974
|
-
# at most 1000.
|
975
|
-
# @param [String] page_token
|
976
|
-
# Optional. The next_page_token value returned from a previous list request.
|
977
|
-
# @param [String] fields
|
978
|
-
# Selector specifying which fields to include in a partial response.
|
979
|
-
# @param [String] quota_user
|
980
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
981
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
982
|
-
# @param [Google::Apis::RequestOptions] options
|
983
|
-
# Request-specific options
|
984
|
-
#
|
985
|
-
# @yield [result, err] Result & error if block supplied
|
986
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] parsed result object
|
987
|
-
# @yieldparam err [StandardError] error object if request failed
|
988
|
-
#
|
989
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse]
|
990
|
-
#
|
991
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
992
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
993
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
994
|
-
def list_project_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
995
|
-
command = make_simple_command(:get, 'v2beta1/{+parent}/environments', options)
|
996
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse::Representation
|
997
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
|
998
|
-
command.params['parent'] = parent unless parent.nil?
|
999
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
1000
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
1001
|
-
command.query['fields'] = fields unless fields.nil?
|
1002
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1003
|
-
execute_or_queue_command(command, &block)
|
1004
|
-
end
|
1005
|
-
|
1006
|
-
# Updates the specified agent environment.
|
1007
|
-
# This method allows you to deploy new agent versions into the environment.
|
1008
|
-
# When a environment is pointed to a new agent version by setting
|
1009
|
-
# `environment.agent_version`, the environment is temporarily set to the
|
1010
|
-
# `LOADING` state. During that time, the environment keeps on serving the
|
1011
|
-
# previous version of the agent. After the new agent version is done
|
1012
|
-
# loading, the environment is set back to the `RUNNING` state.
|
1013
|
-
# You can use "-" as Environment ID in environment name to update version
|
1014
|
-
# in "draft" environment.
|
1015
|
-
# @param [String] name
|
1016
|
-
# Output only. The unique identifier of this agent environment.
|
1017
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
1018
|
-
# You can use "-" as Environment ID to refer to 'draft' environment.
|
1019
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
1020
|
-
# @param [String] update_mask
|
1021
|
-
# Required. The mask to control which fields get updated.
|
1022
|
-
# @param [String] fields
|
1023
|
-
# Selector specifying which fields to include in a partial response.
|
1024
|
-
# @param [String] quota_user
|
1025
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
1026
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1027
|
-
# @param [Google::Apis::RequestOptions] options
|
1028
|
-
# Request-specific options
|
1029
|
-
#
|
1030
|
-
# @yield [result, err] Result & error if block supplied
|
1031
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
1032
|
-
# @yieldparam err [StandardError] error object if request failed
|
1033
|
-
#
|
1034
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
1035
|
-
#
|
1036
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1037
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1038
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1039
|
-
def patch_project_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1040
|
-
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
1041
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
1042
|
-
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
1043
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
1044
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
1045
|
-
command.params['name'] = name unless name.nil?
|
1046
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1047
|
-
command.query['fields'] = fields unless fields.nil?
|
1048
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1049
|
-
execute_or_queue_command(command, &block)
|
1050
|
-
end
|
1051
|
-
|
1052
829
|
# Deletes all active contexts in the specified session.
|
1053
830
|
# @param [String] parent
|
1054
831
|
# Required. The name of the session to delete all contexts from. Format:
|
@@ -2736,12 +2513,13 @@ module Google
|
|
2736
2513
|
execute_or_queue_command(command, &block)
|
2737
2514
|
end
|
2738
2515
|
|
2739
|
-
# Creates
|
2740
|
-
# The
|
2516
|
+
# Creates a knowledge base.
|
2517
|
+
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
2518
|
+
# only use `projects.knowledgeBases`.
|
2741
2519
|
# @param [String] parent
|
2742
|
-
# Required. The
|
2743
|
-
# Format: `projects/<Project ID
|
2744
|
-
# @param [Google::Apis::DialogflowV2beta1::
|
2520
|
+
# Required. The project to create a knowledge base for.
|
2521
|
+
# Format: `projects/<Project ID>`.
|
2522
|
+
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_object
|
2745
2523
|
# @param [String] fields
|
2746
2524
|
# Selector specifying which fields to include in a partial response.
|
2747
2525
|
# @param [String] quota_user
|
@@ -2751,30 +2529,35 @@ module Google
|
|
2751
2529
|
# Request-specific options
|
2752
2530
|
#
|
2753
2531
|
# @yield [result, err] Result & error if block supplied
|
2754
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2532
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
|
2755
2533
|
# @yieldparam err [StandardError] error object if request failed
|
2756
2534
|
#
|
2757
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2535
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
|
2758
2536
|
#
|
2759
2537
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2760
2538
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2761
2539
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2762
|
-
def
|
2763
|
-
command = make_simple_command(:post, 'v2beta1/{+parent}/
|
2764
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::
|
2765
|
-
command.request_object =
|
2766
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2767
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2540
|
+
def create_project_knowledge_basis(parent, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2541
|
+
command = make_simple_command(:post, 'v2beta1/{+parent}/knowledgeBases', options)
|
2542
|
+
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
|
2543
|
+
command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object
|
2544
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
|
2545
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
|
2768
2546
|
command.params['parent'] = parent unless parent.nil?
|
2769
2547
|
command.query['fields'] = fields unless fields.nil?
|
2770
2548
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2771
2549
|
execute_or_queue_command(command, &block)
|
2772
2550
|
end
|
2773
2551
|
|
2774
|
-
#
|
2552
|
+
# Deletes the specified knowledge base.
|
2553
|
+
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
2554
|
+
# only use `projects.knowledgeBases`.
|
2775
2555
|
# @param [String] name
|
2776
|
-
# Required. The name of the
|
2777
|
-
# Format: `projects/<Project ID>/
|
2556
|
+
# Required. The name of the knowledge base to delete.
|
2557
|
+
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
2558
|
+
# @param [Boolean] force
|
2559
|
+
# Optional. Force deletes the knowledge base. When set to true, any documents
|
2560
|
+
# in the knowledge base are also deleted.
|
2778
2561
|
# @param [String] fields
|
2779
2562
|
# Selector specifying which fields to include in a partial response.
|
2780
2563
|
# @param [String] quota_user
|
@@ -2784,34 +2567,31 @@ module Google
|
|
2784
2567
|
# Request-specific options
|
2785
2568
|
#
|
2786
2569
|
# @yield [result, err] Result & error if block supplied
|
2787
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2570
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
2788
2571
|
# @yieldparam err [StandardError] error object if request failed
|
2789
2572
|
#
|
2790
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2573
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
2791
2574
|
#
|
2792
2575
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2793
2576
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2794
2577
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2795
|
-
def
|
2796
|
-
command = make_simple_command(:
|
2797
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2798
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2578
|
+
def delete_project_knowledge_basis(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2579
|
+
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
2580
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
2581
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
2799
2582
|
command.params['name'] = name unless name.nil?
|
2583
|
+
command.query['force'] = force unless force.nil?
|
2800
2584
|
command.query['fields'] = fields unless fields.nil?
|
2801
2585
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2802
2586
|
execute_or_queue_command(command, &block)
|
2803
2587
|
end
|
2804
2588
|
|
2805
|
-
#
|
2806
|
-
#
|
2807
|
-
#
|
2808
|
-
#
|
2809
|
-
#
|
2810
|
-
#
|
2811
|
-
# 100 and
|
2812
|
-
# at most 1000.
|
2813
|
-
# @param [String] page_token
|
2814
|
-
# Optional. The next_page_token value returned from a previous list request.
|
2589
|
+
# Retrieves the specified knowledge base.
|
2590
|
+
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
2591
|
+
# only use `projects.knowledgeBases`.
|
2592
|
+
# @param [String] name
|
2593
|
+
# Required. The name of the knowledge base to retrieve.
|
2594
|
+
# Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
2815
2595
|
# @param [String] fields
|
2816
2596
|
# Selector specifying which fields to include in a partial response.
|
2817
2597
|
# @param [String] quota_user
|
@@ -2821,167 +2601,19 @@ module Google
|
|
2821
2601
|
# Request-specific options
|
2822
2602
|
#
|
2823
2603
|
# @yield [result, err] Result & error if block supplied
|
2824
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::
|
2604
|
+
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
|
2825
2605
|
# @yieldparam err [StandardError] error object if request failed
|
2826
2606
|
#
|
2827
|
-
# @return [Google::Apis::DialogflowV2beta1::
|
2607
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
|
2828
2608
|
#
|
2829
2609
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2830
2610
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2831
2611
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2832
|
-
def
|
2833
|
-
command = make_simple_command(:get, 'v2beta1/{+
|
2834
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::
|
2835
|
-
command.response_class = Google::Apis::DialogflowV2beta1::
|
2836
|
-
command.params['
|
2837
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
2838
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
2839
|
-
command.query['fields'] = fields unless fields.nil?
|
2840
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2841
|
-
execute_or_queue_command(command, &block)
|
2842
|
-
end
|
2843
|
-
|
2844
|
-
# Updates the specified agent version.
|
2845
|
-
# Note that this method does not allow you to update the state of the agent
|
2846
|
-
# the given version points to. It allows you to update only mutable
|
2847
|
-
# properties of the version resource.
|
2848
|
-
# @param [String] name
|
2849
|
-
# Output only. The unique identifier of this agent version.
|
2850
|
-
# Format: `projects/<Project ID>/agent/versions/<Version ID>`.
|
2851
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
2852
|
-
# @param [String] update_mask
|
2853
|
-
# Required. The mask to control which fields get updated.
|
2854
|
-
# @param [String] fields
|
2855
|
-
# Selector specifying which fields to include in a partial response.
|
2856
|
-
# @param [String] quota_user
|
2857
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
2858
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2859
|
-
# @param [Google::Apis::RequestOptions] options
|
2860
|
-
# Request-specific options
|
2861
|
-
#
|
2862
|
-
# @yield [result, err] Result & error if block supplied
|
2863
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
2864
|
-
# @yieldparam err [StandardError] error object if request failed
|
2865
|
-
#
|
2866
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
2867
|
-
#
|
2868
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2869
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2870
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2871
|
-
def patch_project_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2872
|
-
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
2873
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2874
|
-
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
2875
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
2876
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
2877
|
-
command.params['name'] = name unless name.nil?
|
2878
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
2879
|
-
command.query['fields'] = fields unless fields.nil?
|
2880
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2881
|
-
execute_or_queue_command(command, &block)
|
2882
|
-
end
|
2883
|
-
|
2884
|
-
# Creates a knowledge base.
|
2885
|
-
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
2886
|
-
# only use `projects.knowledgeBases`.
|
2887
|
-
# @param [String] parent
|
2888
|
-
# Required. The project to create a knowledge base for.
|
2889
|
-
# Format: `projects/<Project ID>`.
|
2890
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] google_cloud_dialogflow_v2beta1_knowledge_base_object
|
2891
|
-
# @param [String] fields
|
2892
|
-
# Selector specifying which fields to include in a partial response.
|
2893
|
-
# @param [String] quota_user
|
2894
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
2895
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2896
|
-
# @param [Google::Apis::RequestOptions] options
|
2897
|
-
# Request-specific options
|
2898
|
-
#
|
2899
|
-
# @yield [result, err] Result & error if block supplied
|
2900
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
|
2901
|
-
# @yieldparam err [StandardError] error object if request failed
|
2902
|
-
#
|
2903
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
|
2904
|
-
#
|
2905
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2906
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2907
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2908
|
-
def create_project_knowledge_basis(parent, google_cloud_dialogflow_v2beta1_knowledge_base_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
2909
|
-
command = make_simple_command(:post, 'v2beta1/{+parent}/knowledgeBases', options)
|
2910
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
|
2911
|
-
command.request_object = google_cloud_dialogflow_v2beta1_knowledge_base_object
|
2912
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
|
2913
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
|
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
|
-
# Deletes the specified knowledge base.
|
2921
|
-
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
2922
|
-
# only use `projects.knowledgeBases`.
|
2923
|
-
# @param [String] name
|
2924
|
-
# Required. The name of the knowledge base to delete.
|
2925
|
-
# Format: `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
2926
|
-
# @param [Boolean] force
|
2927
|
-
# Optional. Force deletes the knowledge base. When set to true, any documents
|
2928
|
-
# in the knowledge base are also deleted.
|
2929
|
-
# @param [String] fields
|
2930
|
-
# Selector specifying which fields to include in a partial response.
|
2931
|
-
# @param [String] quota_user
|
2932
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
2933
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2934
|
-
# @param [Google::Apis::RequestOptions] options
|
2935
|
-
# Request-specific options
|
2936
|
-
#
|
2937
|
-
# @yield [result, err] Result & error if block supplied
|
2938
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
2939
|
-
# @yieldparam err [StandardError] error object if request failed
|
2940
|
-
#
|
2941
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
2942
|
-
#
|
2943
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2944
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2945
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2946
|
-
def delete_project_knowledge_basis(name, force: nil, fields: nil, quota_user: nil, options: nil, &block)
|
2947
|
-
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
2948
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
2949
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
2950
|
-
command.params['name'] = name unless name.nil?
|
2951
|
-
command.query['force'] = force unless force.nil?
|
2952
|
-
command.query['fields'] = fields unless fields.nil?
|
2953
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2954
|
-
execute_or_queue_command(command, &block)
|
2955
|
-
end
|
2956
|
-
|
2957
|
-
# Retrieves the specified knowledge base.
|
2958
|
-
# Note: The `projects.agent.knowledgeBases` resource is deprecated;
|
2959
|
-
# only use `projects.knowledgeBases`.
|
2960
|
-
# @param [String] name
|
2961
|
-
# Required. The name of the knowledge base to retrieve.
|
2962
|
-
# Format `projects/<Project ID>/knowledgeBases/<Knowledge Base ID>`.
|
2963
|
-
# @param [String] fields
|
2964
|
-
# Selector specifying which fields to include in a partial response.
|
2965
|
-
# @param [String] quota_user
|
2966
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
2967
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
2968
|
-
# @param [Google::Apis::RequestOptions] options
|
2969
|
-
# Request-specific options
|
2970
|
-
#
|
2971
|
-
# @yield [result, err] Result & error if block supplied
|
2972
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase] parsed result object
|
2973
|
-
# @yieldparam err [StandardError] error object if request failed
|
2974
|
-
#
|
2975
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase]
|
2976
|
-
#
|
2977
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2978
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2979
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2980
|
-
def get_project_knowledge_basis(name, fields: nil, quota_user: nil, options: nil, &block)
|
2981
|
-
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2982
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
|
2983
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
|
2984
|
-
command.params['name'] = name unless name.nil?
|
2612
|
+
def get_project_knowledge_basis(name, fields: nil, quota_user: nil, options: nil, &block)
|
2613
|
+
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
2614
|
+
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase::Representation
|
2615
|
+
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeBase
|
2616
|
+
command.params['name'] = name unless name.nil?
|
2985
2617
|
command.query['fields'] = fields unless fields.nil?
|
2986
2618
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2987
2619
|
execute_or_queue_command(command, &block)
|
@@ -3999,229 +3631,6 @@ module Google
|
|
3999
3631
|
execute_or_queue_command(command, &block)
|
4000
3632
|
end
|
4001
3633
|
|
4002
|
-
# Creates an agent environment.
|
4003
|
-
# @param [String] parent
|
4004
|
-
# Required. The agent to create a environment for.
|
4005
|
-
# Format: `projects/<Project ID>/agent`.
|
4006
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
4007
|
-
# @param [String] environment_id
|
4008
|
-
# Required. The unique id of the new environment.
|
4009
|
-
# @param [String] fields
|
4010
|
-
# Selector specifying which fields to include in a partial response.
|
4011
|
-
# @param [String] quota_user
|
4012
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4013
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4014
|
-
# @param [Google::Apis::RequestOptions] options
|
4015
|
-
# Request-specific options
|
4016
|
-
#
|
4017
|
-
# @yield [result, err] Result & error if block supplied
|
4018
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
4019
|
-
# @yieldparam err [StandardError] error object if request failed
|
4020
|
-
#
|
4021
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
4022
|
-
#
|
4023
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4024
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4025
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4026
|
-
def create_project_location_agent_environment(parent, google_cloud_dialogflow_v2beta1_environment_object = nil, environment_id: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4027
|
-
command = make_simple_command(:post, 'v2beta1/{+parent}/environments', options)
|
4028
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
4029
|
-
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
4030
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
4031
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
4032
|
-
command.params['parent'] = parent unless parent.nil?
|
4033
|
-
command.query['environmentId'] = environment_id unless environment_id.nil?
|
4034
|
-
command.query['fields'] = fields unless fields.nil?
|
4035
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4036
|
-
execute_or_queue_command(command, &block)
|
4037
|
-
end
|
4038
|
-
|
4039
|
-
# Deletes the specified agent environment.
|
4040
|
-
# @param [String] name
|
4041
|
-
# Required. The name of the environment to delete.
|
4042
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
4043
|
-
# @param [String] fields
|
4044
|
-
# Selector specifying which fields to include in a partial response.
|
4045
|
-
# @param [String] quota_user
|
4046
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4047
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4048
|
-
# @param [Google::Apis::RequestOptions] options
|
4049
|
-
# Request-specific options
|
4050
|
-
#
|
4051
|
-
# @yield [result, err] Result & error if block supplied
|
4052
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty] parsed result object
|
4053
|
-
# @yieldparam err [StandardError] error object if request failed
|
4054
|
-
#
|
4055
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty]
|
4056
|
-
#
|
4057
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4058
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4059
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4060
|
-
def delete_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
4061
|
-
command = make_simple_command(:delete, 'v2beta1/{+name}', options)
|
4062
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty::Representation
|
4063
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleProtobufEmpty
|
4064
|
-
command.params['name'] = name unless name.nil?
|
4065
|
-
command.query['fields'] = fields unless fields.nil?
|
4066
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4067
|
-
execute_or_queue_command(command, &block)
|
4068
|
-
end
|
4069
|
-
|
4070
|
-
# Retrieves the specified agent environment.
|
4071
|
-
# @param [String] name
|
4072
|
-
# Required. The name of the environment.
|
4073
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
4074
|
-
# @param [String] fields
|
4075
|
-
# Selector specifying which fields to include in a partial response.
|
4076
|
-
# @param [String] quota_user
|
4077
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4078
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4079
|
-
# @param [Google::Apis::RequestOptions] options
|
4080
|
-
# Request-specific options
|
4081
|
-
#
|
4082
|
-
# @yield [result, err] Result & error if block supplied
|
4083
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
4084
|
-
# @yieldparam err [StandardError] error object if request failed
|
4085
|
-
#
|
4086
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
4087
|
-
#
|
4088
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4089
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4090
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4091
|
-
def get_project_location_agent_environment(name, fields: nil, quota_user: nil, options: nil, &block)
|
4092
|
-
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
4093
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
4094
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
4095
|
-
command.params['name'] = name unless name.nil?
|
4096
|
-
command.query['fields'] = fields unless fields.nil?
|
4097
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4098
|
-
execute_or_queue_command(command, &block)
|
4099
|
-
end
|
4100
|
-
|
4101
|
-
# Gets the history of the specified environment.
|
4102
|
-
# @param [String] parent
|
4103
|
-
# Required. The name of the environment to retrieve history for.
|
4104
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
4105
|
-
# @param [Fixnum] page_size
|
4106
|
-
# Optional. The maximum number of items to return in a single page. By default
|
4107
|
-
# 100 and
|
4108
|
-
# at most 1000.
|
4109
|
-
# @param [String] page_token
|
4110
|
-
# Optional. The next_page_token value returned from a previous list request.
|
4111
|
-
# @param [String] fields
|
4112
|
-
# Selector specifying which fields to include in a partial response.
|
4113
|
-
# @param [String] quota_user
|
4114
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4115
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4116
|
-
# @param [Google::Apis::RequestOptions] options
|
4117
|
-
# Request-specific options
|
4118
|
-
#
|
4119
|
-
# @yield [result, err] Result & error if block supplied
|
4120
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory] parsed result object
|
4121
|
-
# @yieldparam err [StandardError] error object if request failed
|
4122
|
-
#
|
4123
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory]
|
4124
|
-
#
|
4125
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4126
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4127
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4128
|
-
def get_project_location_agent_environment_history(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4129
|
-
command = make_simple_command(:get, 'v2beta1/{+parent}/history', options)
|
4130
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory::Representation
|
4131
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistory
|
4132
|
-
command.params['parent'] = parent unless parent.nil?
|
4133
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
4134
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
4135
|
-
command.query['fields'] = fields unless fields.nil?
|
4136
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4137
|
-
execute_or_queue_command(command, &block)
|
4138
|
-
end
|
4139
|
-
|
4140
|
-
# Returns the list of all environments of the specified agent.
|
4141
|
-
# @param [String] parent
|
4142
|
-
# Required. The agent to list all environments from.
|
4143
|
-
# Format: `projects/<Project ID>/agent`.
|
4144
|
-
# @param [Fixnum] page_size
|
4145
|
-
# Optional. The maximum number of items to return in a single page. By default
|
4146
|
-
# 100 and
|
4147
|
-
# at most 1000.
|
4148
|
-
# @param [String] page_token
|
4149
|
-
# Optional. The next_page_token value returned from a previous list request.
|
4150
|
-
# @param [String] fields
|
4151
|
-
# Selector specifying which fields to include in a partial response.
|
4152
|
-
# @param [String] quota_user
|
4153
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4154
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4155
|
-
# @param [Google::Apis::RequestOptions] options
|
4156
|
-
# Request-specific options
|
4157
|
-
#
|
4158
|
-
# @yield [result, err] Result & error if block supplied
|
4159
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse] parsed result object
|
4160
|
-
# @yieldparam err [StandardError] error object if request failed
|
4161
|
-
#
|
4162
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse]
|
4163
|
-
#
|
4164
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4165
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4166
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4167
|
-
def list_project_location_agent_environments(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4168
|
-
command = make_simple_command(:get, 'v2beta1/{+parent}/environments', options)
|
4169
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse::Representation
|
4170
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
|
4171
|
-
command.params['parent'] = parent unless parent.nil?
|
4172
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
4173
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
4174
|
-
command.query['fields'] = fields unless fields.nil?
|
4175
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4176
|
-
execute_or_queue_command(command, &block)
|
4177
|
-
end
|
4178
|
-
|
4179
|
-
# Updates the specified agent environment.
|
4180
|
-
# This method allows you to deploy new agent versions into the environment.
|
4181
|
-
# When a environment is pointed to a new agent version by setting
|
4182
|
-
# `environment.agent_version`, the environment is temporarily set to the
|
4183
|
-
# `LOADING` state. During that time, the environment keeps on serving the
|
4184
|
-
# previous version of the agent. After the new agent version is done
|
4185
|
-
# loading, the environment is set back to the `RUNNING` state.
|
4186
|
-
# You can use "-" as Environment ID in environment name to update version
|
4187
|
-
# in "draft" environment.
|
4188
|
-
# @param [String] name
|
4189
|
-
# Output only. The unique identifier of this agent environment.
|
4190
|
-
# Format: `projects/<Project ID>/agent/environments/<Environment ID>`.
|
4191
|
-
# You can use "-" as Environment ID to refer to 'draft' environment.
|
4192
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] google_cloud_dialogflow_v2beta1_environment_object
|
4193
|
-
# @param [String] update_mask
|
4194
|
-
# Required. The mask to control which fields get updated.
|
4195
|
-
# @param [String] fields
|
4196
|
-
# Selector specifying which fields to include in a partial response.
|
4197
|
-
# @param [String] quota_user
|
4198
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
4199
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4200
|
-
# @param [Google::Apis::RequestOptions] options
|
4201
|
-
# Request-specific options
|
4202
|
-
#
|
4203
|
-
# @yield [result, err] Result & error if block supplied
|
4204
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment] parsed result object
|
4205
|
-
# @yieldparam err [StandardError] error object if request failed
|
4206
|
-
#
|
4207
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment]
|
4208
|
-
#
|
4209
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4210
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4211
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4212
|
-
def patch_project_location_agent_environment(name, google_cloud_dialogflow_v2beta1_environment_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
4213
|
-
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
4214
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
4215
|
-
command.request_object = google_cloud_dialogflow_v2beta1_environment_object
|
4216
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment::Representation
|
4217
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Environment
|
4218
|
-
command.params['name'] = name unless name.nil?
|
4219
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
4220
|
-
command.query['fields'] = fields unless fields.nil?
|
4221
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4222
|
-
execute_or_queue_command(command, &block)
|
4223
|
-
end
|
4224
|
-
|
4225
3634
|
# Deletes all active contexts in the specified session.
|
4226
3635
|
# @param [String] parent
|
4227
3636
|
# Required. The name of the session to delete all contexts from. Format:
|
@@ -5486,151 +4895,6 @@ module Google
|
|
5486
4895
|
execute_or_queue_command(command, &block)
|
5487
4896
|
end
|
5488
4897
|
|
5489
|
-
# Creates an agent version.
|
5490
|
-
# The new version points to the agent instance in the "default" environment.
|
5491
|
-
# @param [String] parent
|
5492
|
-
# Required. The agent to create a version for.
|
5493
|
-
# Format: `projects/<Project ID>/agent`.
|
5494
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
5495
|
-
# @param [String] fields
|
5496
|
-
# Selector specifying which fields to include in a partial response.
|
5497
|
-
# @param [String] quota_user
|
5498
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5499
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5500
|
-
# @param [Google::Apis::RequestOptions] options
|
5501
|
-
# Request-specific options
|
5502
|
-
#
|
5503
|
-
# @yield [result, err] Result & error if block supplied
|
5504
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
5505
|
-
# @yieldparam err [StandardError] error object if request failed
|
5506
|
-
#
|
5507
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
5508
|
-
#
|
5509
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5510
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5511
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5512
|
-
def create_project_location_agent_version(parent, google_cloud_dialogflow_v2beta1_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
5513
|
-
command = make_simple_command(:post, 'v2beta1/{+parent}/versions', options)
|
5514
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
5515
|
-
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
5516
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
5517
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
5518
|
-
command.params['parent'] = parent unless parent.nil?
|
5519
|
-
command.query['fields'] = fields unless fields.nil?
|
5520
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5521
|
-
execute_or_queue_command(command, &block)
|
5522
|
-
end
|
5523
|
-
|
5524
|
-
# Retrieves the specified agent version.
|
5525
|
-
# @param [String] name
|
5526
|
-
# Required. The name of the version.
|
5527
|
-
# Format: `projects/<Project ID>/agent/versions/<Version ID>`.
|
5528
|
-
# @param [String] fields
|
5529
|
-
# Selector specifying which fields to include in a partial response.
|
5530
|
-
# @param [String] quota_user
|
5531
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5532
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5533
|
-
# @param [Google::Apis::RequestOptions] options
|
5534
|
-
# Request-specific options
|
5535
|
-
#
|
5536
|
-
# @yield [result, err] Result & error if block supplied
|
5537
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
5538
|
-
# @yieldparam err [StandardError] error object if request failed
|
5539
|
-
#
|
5540
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
5541
|
-
#
|
5542
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5543
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5544
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5545
|
-
def get_project_location_agent_version(name, fields: nil, quota_user: nil, options: nil, &block)
|
5546
|
-
command = make_simple_command(:get, 'v2beta1/{+name}', options)
|
5547
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
5548
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
5549
|
-
command.params['name'] = name unless name.nil?
|
5550
|
-
command.query['fields'] = fields unless fields.nil?
|
5551
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5552
|
-
execute_or_queue_command(command, &block)
|
5553
|
-
end
|
5554
|
-
|
5555
|
-
# Returns the list of all versions of the specified agent.
|
5556
|
-
# @param [String] parent
|
5557
|
-
# Required. The agent to list all versions from.
|
5558
|
-
# Format: `projects/<Project ID>/agent`.
|
5559
|
-
# @param [Fixnum] page_size
|
5560
|
-
# Optional. The maximum number of items to return in a single page. By default
|
5561
|
-
# 100 and
|
5562
|
-
# at most 1000.
|
5563
|
-
# @param [String] page_token
|
5564
|
-
# Optional. The next_page_token value returned from a previous list request.
|
5565
|
-
# @param [String] fields
|
5566
|
-
# Selector specifying which fields to include in a partial response.
|
5567
|
-
# @param [String] quota_user
|
5568
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5569
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5570
|
-
# @param [Google::Apis::RequestOptions] options
|
5571
|
-
# Request-specific options
|
5572
|
-
#
|
5573
|
-
# @yield [result, err] Result & error if block supplied
|
5574
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse] parsed result object
|
5575
|
-
# @yieldparam err [StandardError] error object if request failed
|
5576
|
-
#
|
5577
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse]
|
5578
|
-
#
|
5579
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5580
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5581
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5582
|
-
def list_project_location_agent_versions(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5583
|
-
command = make_simple_command(:get, 'v2beta1/{+parent}/versions', options)
|
5584
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse::Representation
|
5585
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListVersionsResponse
|
5586
|
-
command.params['parent'] = parent unless parent.nil?
|
5587
|
-
command.query['pageSize'] = page_size unless page_size.nil?
|
5588
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
5589
|
-
command.query['fields'] = fields unless fields.nil?
|
5590
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5591
|
-
execute_or_queue_command(command, &block)
|
5592
|
-
end
|
5593
|
-
|
5594
|
-
# Updates the specified agent version.
|
5595
|
-
# Note that this method does not allow you to update the state of the agent
|
5596
|
-
# the given version points to. It allows you to update only mutable
|
5597
|
-
# properties of the version resource.
|
5598
|
-
# @param [String] name
|
5599
|
-
# Output only. The unique identifier of this agent version.
|
5600
|
-
# Format: `projects/<Project ID>/agent/versions/<Version ID>`.
|
5601
|
-
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] google_cloud_dialogflow_v2beta1_version_object
|
5602
|
-
# @param [String] update_mask
|
5603
|
-
# Required. The mask to control which fields get updated.
|
5604
|
-
# @param [String] fields
|
5605
|
-
# Selector specifying which fields to include in a partial response.
|
5606
|
-
# @param [String] quota_user
|
5607
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
5608
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5609
|
-
# @param [Google::Apis::RequestOptions] options
|
5610
|
-
# Request-specific options
|
5611
|
-
#
|
5612
|
-
# @yield [result, err] Result & error if block supplied
|
5613
|
-
# @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version] parsed result object
|
5614
|
-
# @yieldparam err [StandardError] error object if request failed
|
5615
|
-
#
|
5616
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version]
|
5617
|
-
#
|
5618
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5619
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5620
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5621
|
-
def patch_project_location_agent_version(name, google_cloud_dialogflow_v2beta1_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5622
|
-
command = make_simple_command(:patch, 'v2beta1/{+name}', options)
|
5623
|
-
command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
5624
|
-
command.request_object = google_cloud_dialogflow_v2beta1_version_object
|
5625
|
-
command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version::Representation
|
5626
|
-
command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version
|
5627
|
-
command.params['name'] = name unless name.nil?
|
5628
|
-
command.query['updateMask'] = update_mask unless update_mask.nil?
|
5629
|
-
command.query['fields'] = fields unless fields.nil?
|
5630
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5631
|
-
execute_or_queue_command(command, &block)
|
5632
|
-
end
|
5633
|
-
|
5634
4898
|
# Starts asynchronous cancellation on a long-running operation. The server
|
5635
4899
|
# makes a best effort to cancel the operation, but success is not
|
5636
4900
|
# guaranteed. If the server doesn't support this method, it returns
|