generated/google-apis-dialogflow_v2beta1/lib/google/apis/dialogflow_v2beta1/service.rb
# Returns the list of all intents in the specified agent.
# @param [String] parent
#   Required. The agent to list all intents from. Format: `projects//agent` or `
#   projects//locations//agent`. Alternatively, you can specify the environment to
#   list intents for. Format: `projects//agent/environments/` or `projects//
#   locations//agent/environments/`. Note: training phrases of the intents will
#   not be returned for non-draft environment.
# @param [String] intent_view
#   Optional. The resource view to apply to the returned intent.
# @param [String] language_code
#   Optional. The language used to access language-specific data. If not specified,
#   the agent's default language is used. For more information, see [Multilingual
#   intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
#   multilingual#intent-entity).
# @param [Fixnum] page_size
#   Optional. The maximum number of items to return in a single page. By default
#   100 and at most 1000.
# @param [String] page_token
#   Optional. The next_page_token value returned from a previous list request.
# @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::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse]
#
# @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
Returns the list of all intents in the specified agent.
Returns the list of all intents in the specified agent .
def list_project_agent_environment_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
          command = make_simple_command(:get, 'v2beta1/{+parent}/intents', options)
          command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse::Representation
          command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse
          command.params['parent'] = parent unless parent.nil?
          command.query['intentView'] = intent_view unless intent_view.nil?
          command.query['languageCode'] = language_code unless language_code.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
def list_project_agent_environment_intents ( parent , intent_view : nil , language_code : nil , page_size : nil , page_token : nil , fields : nil , quota_user : nil , options : nil , & block ) command = make_simple_command ( :get , 'v2beta1/{+parent}/intents' , options ) command . response_representation = Google :: Apis :: DialogflowV2beta1 :: GoogleCloudDialogflowV2beta1ListIntentsResponse :: Representation command . response_class = Google :: Apis :: DialogflowV2beta1 :: GoogleCloudDialogflowV2beta1ListIntentsResponse command . params [ 'parent' ] = parent unless parent . nil? command . query [ 'intentView' ] = intent_view unless intent_view . nil? command . query [ 'languageCode' ] = language_code unless language_code . 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
Returns the list of all intents in the specified agent.
Returns the list of all intents in the specified agent .
None
Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListIntentsResponse
[Google::Apis::ServerError] An error occurred on the server and the request can be retried
[ Google :: Apis :: ServerError ] An error occurred on the server and the request can be retried
[Google::Apis::ClientError] The request is invalid and should not be retried without modification
[ Google :: Apis :: ClientError ] The request is invalid and should not be retried without modification
[Google::Apis::AuthorizationError] Authorization is required
[ Google :: Apis :: AuthorizationError ] Authorization is required
parent
intent_view
language_code
page_size
page_token
fields
quota_user
options
block
options Request-specific options
options Request - specific options
]
Result & error if block supplied
Result & error if block supplied
result
parsed result object
parsed result object
err
error object if request failed
error object if request failed