google-apis-discoveryengine_v1alpha 0.82.0 → 0.83.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/discoveryengine_v1alpha/classes.rb +663 -0
- data/lib/google/apis/discoveryengine_v1alpha/gem_version.rb +2 -2
- data/lib/google/apis/discoveryengine_v1alpha/representations.rb +208 -0
- data/lib/google/apis/discoveryengine_v1alpha/service.rb +337 -7
- metadata +2 -2
|
@@ -5696,6 +5696,74 @@ module Google
|
|
|
5696
5696
|
execute_or_queue_command(command, &block)
|
|
5697
5697
|
end
|
|
5698
5698
|
|
|
5699
|
+
# Lists the data for displaying the Agents under an Assistant which are
|
|
5700
|
+
# available to the caller.
|
|
5701
|
+
# @param [String] parent
|
|
5702
|
+
# Required. The parent resource name. Format: `projects/`project`/locations/`
|
|
5703
|
+
# location`/collections/`collection`/engines/`engine`/assistants/`assistant``
|
|
5704
|
+
# @param [String] agent_origin
|
|
5705
|
+
# Optional. The origin of the Agent.
|
|
5706
|
+
# @param [String] filter
|
|
5707
|
+
# Optional. The filter syntax consists of an expression language for
|
|
5708
|
+
# constructing a predicate from one or more fields of the files being filtered.
|
|
5709
|
+
# Filter expression is case-sensitive. Allowed fields are: * `display_name` * `
|
|
5710
|
+
# state` Some examples of filters would be: * `display_name = 'agent_1'` * `
|
|
5711
|
+
# display_name = 'agent_1' AND state = ENABLED` For a full description of the
|
|
5712
|
+
# filter format, please see https://google.aip.dev/160.
|
|
5713
|
+
# @param [String] language_code
|
|
5714
|
+
# Optional. The UI language currently shown to the user. Specifying this field
|
|
5715
|
+
# request that the texts in the AgentViews in the response should be translated
|
|
5716
|
+
# to this language.
|
|
5717
|
+
# @param [Fixnum] max_suggested_prompts
|
|
5718
|
+
# Optional. The maximum number of suggested prompts to return per agent.
|
|
5719
|
+
# @param [Fixnum] page_size
|
|
5720
|
+
# Optional. Maximum number of AgentViewss to return. If unspecified, defaults to
|
|
5721
|
+
# 100. The maximum allowed value is 1000; anything above that will be coerced
|
|
5722
|
+
# down to 1000.
|
|
5723
|
+
# @param [String] page_token
|
|
5724
|
+
# Optional. A page token ListAvailableAgentViewsResponse.next_page_token,
|
|
5725
|
+
# received from a previous AgentService.ListAvailableAgentViews call. Provide
|
|
5726
|
+
# this to retrieve the subsequent page. When paginating, all other parameters
|
|
5727
|
+
# provided to ListAvailableAgentViews must match the call that provided the page
|
|
5728
|
+
# token.
|
|
5729
|
+
# @param [String] sort_by
|
|
5730
|
+
# Optional. The field to sort by. Can have the following values: - display-name:
|
|
5731
|
+
# The display name of the agent. - description: The description of the agent. -
|
|
5732
|
+
# create-time: The creation time of the agent. - state: The state of the agent.
|
|
5733
|
+
# @param [String] fields
|
|
5734
|
+
# Selector specifying which fields to include in a partial response.
|
|
5735
|
+
# @param [String] quota_user
|
|
5736
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5737
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5738
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5739
|
+
# Request-specific options
|
|
5740
|
+
#
|
|
5741
|
+
# @yield [result, err] Result & error if block supplied
|
|
5742
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse] parsed result object
|
|
5743
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5744
|
+
#
|
|
5745
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse]
|
|
5746
|
+
#
|
|
5747
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5748
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5749
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5750
|
+
def list_project_location_collection_engine_assistant_available_agent_views(parent, agent_origin: nil, filter: nil, language_code: nil, max_suggested_prompts: nil, page_size: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
5751
|
+
command = make_simple_command(:post, 'v1alpha/{+parent}:listAvailableAgentViews', options)
|
|
5752
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse::Representation
|
|
5753
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListAvailableAgentViewsResponse
|
|
5754
|
+
command.params['parent'] = parent unless parent.nil?
|
|
5755
|
+
command.query['agentOrigin'] = agent_origin unless agent_origin.nil?
|
|
5756
|
+
command.query['filter'] = filter unless filter.nil?
|
|
5757
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
|
5758
|
+
command.query['maxSuggestedPrompts'] = max_suggested_prompts unless max_suggested_prompts.nil?
|
|
5759
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
|
5760
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
5761
|
+
command.query['sortBy'] = sort_by unless sort_by.nil?
|
|
5762
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5763
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5764
|
+
execute_or_queue_command(command, &block)
|
|
5765
|
+
end
|
|
5766
|
+
|
|
5699
5767
|
# Updates an Assistant
|
|
5700
5768
|
# @param [String] name
|
|
5701
5769
|
# Immutable. Resource name of the assistant. Format: `projects/`project`/
|
|
@@ -5839,6 +5907,73 @@ module Google
|
|
|
5839
5907
|
execute_or_queue_command(command, &block)
|
|
5840
5908
|
end
|
|
5841
5909
|
|
|
5910
|
+
# Disables an Agent. The `state` of the Agent becomes `DISABLED`. Can be called
|
|
5911
|
+
# on an Agent in the state `ENABLED` or`SUSPENDED`, otherwise it returns an
|
|
5912
|
+
# error.
|
|
5913
|
+
# @param [String] name
|
|
5914
|
+
# Required. The name of the Agent to disable. Format: `projects/`project`/
|
|
5915
|
+
# locations/`location`/collections/`collection`/engines/`engine`/assistants/`
|
|
5916
|
+
# assistant`/agents/`agent``
|
|
5917
|
+
# @param [String] fields
|
|
5918
|
+
# Selector specifying which fields to include in a partial response.
|
|
5919
|
+
# @param [String] quota_user
|
|
5920
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5921
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5922
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5923
|
+
# Request-specific options
|
|
5924
|
+
#
|
|
5925
|
+
# @yield [result, err] Result & error if block supplied
|
|
5926
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent] parsed result object
|
|
5927
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5928
|
+
#
|
|
5929
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent]
|
|
5930
|
+
#
|
|
5931
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5932
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5933
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5934
|
+
def disable_project_location_collection_engine_assistant_agent_agent(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
5935
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:disableAgent', options)
|
|
5936
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent::Representation
|
|
5937
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent
|
|
5938
|
+
command.params['name'] = name unless name.nil?
|
|
5939
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5940
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5941
|
+
execute_or_queue_command(command, &block)
|
|
5942
|
+
end
|
|
5943
|
+
|
|
5944
|
+
# Enables an Agent. The `state` of the Agent becomes `ENABLED`. Can be called on
|
|
5945
|
+
# an Agent in the state `DISABLED` or 'SUSPENDED', otherwise it returns an error.
|
|
5946
|
+
# @param [String] name
|
|
5947
|
+
# Required. The name of the Agent to enable. Format: `projects/`project`/
|
|
5948
|
+
# locations/`location`/collections/`collection`/engines/`engine`/assistants/`
|
|
5949
|
+
# assistant`/agents/`agent``
|
|
5950
|
+
# @param [String] fields
|
|
5951
|
+
# Selector specifying which fields to include in a partial response.
|
|
5952
|
+
# @param [String] quota_user
|
|
5953
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
5954
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
5955
|
+
# @param [Google::Apis::RequestOptions] options
|
|
5956
|
+
# Request-specific options
|
|
5957
|
+
#
|
|
5958
|
+
# @yield [result, err] Result & error if block supplied
|
|
5959
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent] parsed result object
|
|
5960
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
5961
|
+
#
|
|
5962
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent]
|
|
5963
|
+
#
|
|
5964
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
5965
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
5966
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
5967
|
+
def enable_project_location_collection_engine_assistant_agent_agent(name, fields: nil, quota_user: nil, options: nil, &block)
|
|
5968
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:enableAgent', options)
|
|
5969
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent::Representation
|
|
5970
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent
|
|
5971
|
+
command.params['name'] = name unless name.nil?
|
|
5972
|
+
command.query['fields'] = fields unless fields.nil?
|
|
5973
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
5974
|
+
execute_or_queue_command(command, &block)
|
|
5975
|
+
end
|
|
5976
|
+
|
|
5842
5977
|
# Gets an Agent.
|
|
5843
5978
|
# @param [String] name
|
|
5844
5979
|
# Required. Resource name of Agent. Format: `projects/`project`/locations/`
|
|
@@ -5871,6 +6006,93 @@ module Google
|
|
|
5871
6006
|
execute_or_queue_command(command, &block)
|
|
5872
6007
|
end
|
|
5873
6008
|
|
|
6009
|
+
# Returns a AgentView for a given Agent, which contains additional information
|
|
6010
|
+
# about the Agent.
|
|
6011
|
+
# @param [String] name
|
|
6012
|
+
# Required. The name of the Agent to get. Format: `projects/`project`/locations/`
|
|
6013
|
+
# location`/collections/`collection`/engines/`engine`/assistants/`assistant`/
|
|
6014
|
+
# agents/`agent``
|
|
6015
|
+
# @param [String] language_code
|
|
6016
|
+
# Optional. The UI language currently shown to the user. Specifying this field
|
|
6017
|
+
# request that the texts in the AgentView in the response should be translated
|
|
6018
|
+
# to this language.
|
|
6019
|
+
# @param [Fixnum] max_suggested_prompts
|
|
6020
|
+
# Optional. The maximum number of suggested prompts to return per agent.
|
|
6021
|
+
# @param [String] fields
|
|
6022
|
+
# Selector specifying which fields to include in a partial response.
|
|
6023
|
+
# @param [String] quota_user
|
|
6024
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6025
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6026
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6027
|
+
# Request-specific options
|
|
6028
|
+
#
|
|
6029
|
+
# @yield [result, err] Result & error if block supplied
|
|
6030
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse] parsed result object
|
|
6031
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6032
|
+
#
|
|
6033
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse]
|
|
6034
|
+
#
|
|
6035
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6036
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6037
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6038
|
+
def get_project_location_collection_engine_assistant_agent_agent_view(name, language_code: nil, max_suggested_prompts: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
6039
|
+
command = make_simple_command(:get, 'v1alpha/{+name}:getAgentView', options)
|
|
6040
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse::Representation
|
|
6041
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGetAgentViewResponse
|
|
6042
|
+
command.params['name'] = name unless name.nil?
|
|
6043
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
|
6044
|
+
command.query['maxSuggestedPrompts'] = max_suggested_prompts unless max_suggested_prompts.nil?
|
|
6045
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6046
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6047
|
+
execute_or_queue_command(command, &block)
|
|
6048
|
+
end
|
|
6049
|
+
|
|
6050
|
+
# Gets the access control policy for an agent resource. A `NOT_FOUND` error is
|
|
6051
|
+
# returned if the resource does not exist. An empty policy is returned if the
|
|
6052
|
+
# resource exists but does not have a policy set on it.
|
|
6053
|
+
# @param [String] resource
|
|
6054
|
+
# REQUIRED: The resource for which the policy is being requested. See [Resource
|
|
6055
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
|
6056
|
+
# appropriate value for this field.
|
|
6057
|
+
# @param [Fixnum] options_requested_policy_version
|
|
6058
|
+
# Optional. The maximum policy version that will be used to format the policy.
|
|
6059
|
+
# Valid values are 0, 1, and 3. Requests specifying an invalid value will be
|
|
6060
|
+
# rejected. Requests for policies with any conditional role bindings must
|
|
6061
|
+
# specify version 3. Policies with no conditional role bindings may specify any
|
|
6062
|
+
# valid value or leave the field unset. The policy in the response might use the
|
|
6063
|
+
# policy version that you specified, or it might use a lower policy version. For
|
|
6064
|
+
# example, if you specify version 3, but the policy has no conditional role
|
|
6065
|
+
# bindings, the response uses version 1. To learn which resources support
|
|
6066
|
+
# conditions in their IAM policies, see the [IAM documentation](https://cloud.
|
|
6067
|
+
# google.com/iam/help/conditions/resource-policies).
|
|
6068
|
+
# @param [String] fields
|
|
6069
|
+
# Selector specifying which fields to include in a partial response.
|
|
6070
|
+
# @param [String] quota_user
|
|
6071
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6072
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6073
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6074
|
+
# Request-specific options
|
|
6075
|
+
#
|
|
6076
|
+
# @yield [result, err] Result & error if block supplied
|
|
6077
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy] parsed result object
|
|
6078
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6079
|
+
#
|
|
6080
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy]
|
|
6081
|
+
#
|
|
6082
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6083
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6084
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6085
|
+
def get_project_location_collection_engine_assistant_agent_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
6086
|
+
command = make_simple_command(:get, 'v1alpha/{+resource}:getIamPolicy', options)
|
|
6087
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy::Representation
|
|
6088
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy
|
|
6089
|
+
command.params['resource'] = resource unless resource.nil?
|
|
6090
|
+
command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
|
6091
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6092
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6093
|
+
execute_or_queue_command(command, &block)
|
|
6094
|
+
end
|
|
6095
|
+
|
|
5874
6096
|
# Lists all Agents under an Assistant which were created by the caller.
|
|
5875
6097
|
# @param [String] parent
|
|
5876
6098
|
# Required. The parent resource name. Format: `projects/`project`/locations/`
|
|
@@ -5957,6 +6179,82 @@ module Google
|
|
|
5957
6179
|
execute_or_queue_command(command, &block)
|
|
5958
6180
|
end
|
|
5959
6181
|
|
|
6182
|
+
# Sets the access control policy for an agent resource. A `NOT_FOUND` error is
|
|
6183
|
+
# returned if the resource does not exist. Policy can only contain `roles/
|
|
6184
|
+
# discoveryengine.agentUser`, `roles/discoveryengine.agentViewer` and `roles/
|
|
6185
|
+
# discoveryengine.agentEditor` roles.
|
|
6186
|
+
# @param [String] resource
|
|
6187
|
+
# REQUIRED: The resource for which the policy is being specified. See [Resource
|
|
6188
|
+
# names](https://cloud.google.com/apis/design/resource_names) for the
|
|
6189
|
+
# appropriate value for this field.
|
|
6190
|
+
# @param [Google::Apis::DiscoveryengineV1alpha::GoogleIamV1SetIamPolicyRequest] google_iam_v1_set_iam_policy_request_object
|
|
6191
|
+
# @param [String] fields
|
|
6192
|
+
# Selector specifying which fields to include in a partial response.
|
|
6193
|
+
# @param [String] quota_user
|
|
6194
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6195
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6196
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6197
|
+
# Request-specific options
|
|
6198
|
+
#
|
|
6199
|
+
# @yield [result, err] Result & error if block supplied
|
|
6200
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy] parsed result object
|
|
6201
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6202
|
+
#
|
|
6203
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy]
|
|
6204
|
+
#
|
|
6205
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6206
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6207
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6208
|
+
def set_project_location_collection_engine_assistant_agent_iam_policy(resource, google_iam_v1_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
6209
|
+
command = make_simple_command(:post, 'v1alpha/{+resource}:setIamPolicy', options)
|
|
6210
|
+
command.request_representation = Google::Apis::DiscoveryengineV1alpha::GoogleIamV1SetIamPolicyRequest::Representation
|
|
6211
|
+
command.request_object = google_iam_v1_set_iam_policy_request_object
|
|
6212
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy::Representation
|
|
6213
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleIamV1Policy
|
|
6214
|
+
command.params['resource'] = resource unless resource.nil?
|
|
6215
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6216
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6217
|
+
execute_or_queue_command(command, &block)
|
|
6218
|
+
end
|
|
6219
|
+
|
|
6220
|
+
# Suspends an Agent. It is still available for viewing but not for use. The `
|
|
6221
|
+
# state` of the Agent becomes `SUSPENDED`. Can be called on an Agent in the
|
|
6222
|
+
# state `ENABLED`, otherwise it returns an error.
|
|
6223
|
+
# @param [String] name
|
|
6224
|
+
# Required. The name of the Agent to suspend. Format: `projects/`project`/
|
|
6225
|
+
# locations/`location`/collections/`collection`/engines/`engine`/assistants/`
|
|
6226
|
+
# assistant`/agents/`agent``
|
|
6227
|
+
# @param [String] suspension_reason
|
|
6228
|
+
# Required. The reason for suspending the Agent. This will be shown to the users
|
|
6229
|
+
# of the Agent.
|
|
6230
|
+
# @param [String] fields
|
|
6231
|
+
# Selector specifying which fields to include in a partial response.
|
|
6232
|
+
# @param [String] quota_user
|
|
6233
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
6234
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
6235
|
+
# @param [Google::Apis::RequestOptions] options
|
|
6236
|
+
# Request-specific options
|
|
6237
|
+
#
|
|
6238
|
+
# @yield [result, err] Result & error if block supplied
|
|
6239
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent] parsed result object
|
|
6240
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
6241
|
+
#
|
|
6242
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent]
|
|
6243
|
+
#
|
|
6244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
6245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
6246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
6247
|
+
def suspend_project_location_collection_engine_assistant_agent_agent(name, suspension_reason: nil, fields: nil, quota_user: nil, options: nil, &block)
|
|
6248
|
+
command = make_simple_command(:post, 'v1alpha/{+name}:suspendAgent', options)
|
|
6249
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent::Representation
|
|
6250
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAgent
|
|
6251
|
+
command.params['name'] = name unless name.nil?
|
|
6252
|
+
command.query['suspensionReason'] = suspension_reason unless suspension_reason.nil?
|
|
6253
|
+
command.query['fields'] = fields unless fields.nil?
|
|
6254
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
6255
|
+
execute_or_queue_command(command, &block)
|
|
6256
|
+
end
|
|
6257
|
+
|
|
5960
6258
|
# Imports a file to an Agent. Currently only No-Code agents are supported.
|
|
5961
6259
|
# @param [String] parent
|
|
5962
6260
|
# Required. The resource name of the Agent. Format: `projects/`project`/
|
|
@@ -12733,6 +13031,37 @@ module Google
|
|
|
12733
13031
|
execute_or_queue_command(command, &block)
|
|
12734
13032
|
end
|
|
12735
13033
|
|
|
13034
|
+
# Lists all the LicenseConfigUsageStatss associated with the project.
|
|
13035
|
+
# @param [String] parent
|
|
13036
|
+
# Required. The parent branch resource name, such as `projects/`project`/
|
|
13037
|
+
# locations/`location`/userStores/`user_store_id``.
|
|
13038
|
+
# @param [String] fields
|
|
13039
|
+
# Selector specifying which fields to include in a partial response.
|
|
13040
|
+
# @param [String] quota_user
|
|
13041
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
13042
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
13043
|
+
# @param [Google::Apis::RequestOptions] options
|
|
13044
|
+
# Request-specific options
|
|
13045
|
+
#
|
|
13046
|
+
# @yield [result, err] Result & error if block supplied
|
|
13047
|
+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListLicenseConfigsUsageStatsResponse] parsed result object
|
|
13048
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
13049
|
+
#
|
|
13050
|
+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListLicenseConfigsUsageStatsResponse]
|
|
13051
|
+
#
|
|
13052
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
13053
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
13054
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
13055
|
+
def list_project_location_user_store_license_configs_usage_stats(parent, fields: nil, quota_user: nil, options: nil, &block)
|
|
13056
|
+
command = make_simple_command(:get, 'v1alpha/{+parent}/licenseConfigsUsageStats', options)
|
|
13057
|
+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListLicenseConfigsUsageStatsResponse::Representation
|
|
13058
|
+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaListLicenseConfigsUsageStatsResponse
|
|
13059
|
+
command.params['parent'] = parent unless parent.nil?
|
|
13060
|
+
command.query['fields'] = fields unless fields.nil?
|
|
13061
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
13062
|
+
execute_or_queue_command(command, &block)
|
|
13063
|
+
end
|
|
13064
|
+
|
|
12736
13065
|
# Gets the latest state of a long-running operation. Clients can use this method
|
|
12737
13066
|
# to poll the operation result at intervals as recommended by the API service.
|
|
12738
13067
|
# @param [String] name
|
|
@@ -12817,13 +13146,14 @@ module Google
|
|
|
12817
13146
|
# Required. The parent UserStore resource name, format: `projects/`project`/
|
|
12818
13147
|
# locations/`location`/userStores/`user_store_id``.
|
|
12819
13148
|
# @param [String] filter
|
|
12820
|
-
# Optional. Filter for the list request. Supported fields: * `
|
|
12821
|
-
#
|
|
12822
|
-
# list assigned user licenses. * `
|
|
12823
|
-
# not licensed users. * `
|
|
12824
|
-
# to list users who attempted
|
|
12825
|
-
#
|
|
12826
|
-
# who attempted login but no
|
|
13149
|
+
# Optional. Filter for the list request. Supported fields: * `license`_`
|
|
13150
|
+
# assignment`_`state` * `user_principal` * `user_profile` Examples: * `license`_`
|
|
13151
|
+
# assignment`_`state = ASSIGNED` to list assigned user licenses. * `license`_`
|
|
13152
|
+
# assignment`_`state = NO_LICENSE` to list not licensed users. * `license`_`
|
|
13153
|
+
# assignment`_`state = NO_LICENSE_ATTEMPTED_LOGIN` to list users who attempted
|
|
13154
|
+
# login but no license assigned. * `license`_`assignment`_`state !=
|
|
13155
|
+
# NO_LICENSE_ATTEMPTED_LOGIN` to filter out users who attempted login but no
|
|
13156
|
+
# license assigned.
|
|
12827
13157
|
# @param [Fixnum] page_size
|
|
12828
13158
|
# Optional. Requested page size. Server may return fewer items than requested.
|
|
12829
13159
|
# If unspecified, defaults to 10. The maximum value is 50; values above 50 will
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-apis-discoveryengine_v1alpha
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.83.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Google LLC
|
|
@@ -57,7 +57,7 @@ licenses:
|
|
|
57
57
|
metadata:
|
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md
|
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.
|
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-discoveryengine_v1alpha/v0.83.0
|
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-discoveryengine_v1alpha
|
|
62
62
|
rdoc_options: []
|
|
63
63
|
require_paths:
|