generated/google/apis/dialogflow_v2/service.rb in google-api-client-0.30.8 vs generated/google/apis/dialogflow_v2/service.rb in google-api-client-0.30.9

- old
+ new

@@ -1252,10 +1252,13 @@ end # Creates a session entity type. # If the specified session entity type already exists, overrides the session # entity type. + # This method doesn't work with Google Assistant integration. + # Contact Dialogflow support if you need to use session entities + # with Google Assistant integration. # @param [String] parent # Required. The session to create a session entity type for. # Format: `projects/<Project ID>/agent/sessions/<Session ID>`. # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType] google_cloud_dialogflow_v2_session_entity_type_object # @param [String] fields @@ -1286,10 +1289,13 @@ command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Deletes the specified session entity type. + # This method doesn't work with Google Assistant integration. + # Contact Dialogflow support if you need to use session entities + # with Google Assistant integration. # @param [String] name # Required. The name of the entity type to delete. Format: # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type # Display Name>`. # @param [String] fields @@ -1318,10 +1324,13 @@ command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Retrieves the specified session entity type. + # This method doesn't work with Google Assistant integration. + # Contact Dialogflow support if you need to use session entities + # with Google Assistant integration. # @param [String] name # Required. The name of the session entity type. Format: # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type # Display Name>`. # @param [String] fields @@ -1350,10 +1359,13 @@ command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Returns the list of all session entity types in the specified session. + # This method doesn't work with Google Assistant integration. + # Contact Dialogflow support if you need to use session entities + # with Google Assistant integration. # @param [String] parent # Required. The session to list all session entity types from. # Format: `projects/<Project ID>/agent/sessions/<Session ID>`. # @param [Fixnum] page_size # Optional. The maximum number of items to return in a single page. By @@ -1388,10 +1400,13 @@ command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end # Updates the specified session entity type. + # This method doesn't work with Google Assistant integration. + # Contact Dialogflow support if you need to use session entities + # with Google Assistant integration. # @param [String] name # Required. The unique identifier of this session entity type. Format: # `projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type # Display Name>`. # `<Entity Type Display Name>` must be the display name of an existing entity @@ -1422,9 +1437,88 @@ command.request_object = google_cloud_dialogflow_v2_session_entity_type_object command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets the latest state of a long-running operation. Clients can use this + # method to poll the operation result at intervals as recommended by the API + # service. + # @param [String] name + # The name of the operation resource. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningOperation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleLongrunningOperation] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningOperation::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningOperation + command.params['name'] = name unless name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists operations that match the specified filter in the request. If the + # server doesn't support this method, it returns `UNIMPLEMENTED`. + # NOTE: the `name` binding allows API services to override the binding + # to use different resource name schemes, such as `users/*/operations`. To + # override the binding, API services can add a binding such as + # `"/v1/`name=users/*`/operations"` to their service configuration. + # For backwards compatibility, the default name includes the operations + # collection id, however overriding users must ensure the name binding + # is the parent resource, without the operations collection id. + # @param [String] name + # The name of the operation's parent resource. + # @param [String] filter + # The standard list filter. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] page_token + # The standard list page token. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2/{+name}/operations', options) + command.response_representation = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse::Representation + command.response_class = Google::Apis::DialogflowV2::GoogleLongrunningListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end