Skip to content

Commit d38b6c1

Browse files
feat: Automated regeneration of discoveryengine v1alpha client (googleapis#24632)
Auto-created at 2025-10-12 10:52:44 +0000 using the toys pull request generator.
1 parent 0160b98 commit d38b6c1

File tree

6 files changed

+145
-2
lines changed

6 files changed

+145
-2
lines changed

api_names_out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213565,6 +213565,8 @@
213565213565
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec": google_cloud_discoveryengine_v1alpha_check_grounding_spec
213566213566
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec/citationThreshold": citation_threshold
213567213567
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec/enableClaimLevelScore": enable_claim_level_score
213568+
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse": google_cloud_discoveryengine_v1alpha_check_refresh_token_response
213569+
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse/refreshTokenInfo": refresh_token_info
213568213570
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest": google_cloud_discoveryengine_v1alpha_check_requirement_request
213569213571
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest/requirementType": requirement_type
213570213572
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest/resources": resources
@@ -215819,6 +215821,8 @@
215819215821
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaWorkspaceConfig/superAdminEmailAddress": super_admin_email_address
215820215822
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaWorkspaceConfig/superAdminServiceAccount": super_admin_service_account
215821215823
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaWorkspaceConfig/type": type
215824+
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaWorkspaceSettings": google_cloud_discoveryengine_v1alpha_workspace_settings
215825+
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1alphaWorkspaceSettings/workspaceAccessEnabled": workspace_access_enabled
215822215826
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1betaAclConfig": google_cloud_discoveryengine_v1beta_acl_config
215823215827
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1betaAclConfig/idpConfig": idp_config
215824215828
"/discoveryengine:v1alpha/GoogleCloudDiscoveryengineV1betaAclConfig/name": name
@@ -216785,6 +216789,8 @@
216785216789
"/discoveryengine:v1alpha/discoveryengine.projects.locations.cmekConfigs.patch/setDefault": set_default
216786216790
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.acquireAccessToken": acquire_project_location_collection_data_connector_access_token
216787216791
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.acquireAccessToken/name": name
216792+
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.checkRefreshToken": check_project_location_collection_data_connector_refresh_token
216793+
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.checkRefreshToken/name": name
216788216794
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.connectorRuns.list": list_project_location_collection_data_connector_connector_runs
216789216795
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.connectorRuns.list/pageSize": page_size
216790216796
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.dataConnector.connectorRuns.list/pageToken": page_token
@@ -217153,6 +217159,8 @@
217153217159
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.delete/name": name
217154217160
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.get": get_project_location_collection_engine
217155217161
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.get/name": name
217162+
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.getWorkspaceSettings": get_project_location_collection_engine_workspace_settings
217163+
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.getWorkspaceSettings/name": name
217156217164
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.list": list_project_location_collection_engines
217157217165
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.list/filter": filter
217158217166
"/discoveryengine:v1alpha/discoveryengine.projects.locations.collections.engines.list/pageSize": page_size

generated/google-apis-discoveryengine_v1alpha/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-discoveryengine_v1alpha
22

3+
### v0.80.0 (2025-10-12)
4+
5+
* Regenerated from discovery document revision 20251008
6+
37
### v0.79.0 (2025-10-05)
48

59
* Regenerated from discovery document revision 20250929

generated/google-apis-discoveryengine_v1alpha/lib/google/apis/discoveryengine_v1alpha/classes.rb

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11032,6 +11032,25 @@ def update!(**args)
1103211032
end
1103311033
end
1103411034

11035+
# Response message for the DataConnectorService.CheckRefreshToken method.
11036+
class GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse
11037+
include Google::Apis::Core::Hashable
11038+
11039+
# Describes a refresh token.
11040+
# Corresponds to the JSON property `refreshTokenInfo`
11041+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo]
11042+
attr_accessor :refresh_token_info
11043+
11044+
def initialize(**args)
11045+
update!(**args)
11046+
end
11047+
11048+
# Update properties of this object
11049+
def update!(**args)
11050+
@refresh_token_info = args[:refresh_token_info] if args.key?(:refresh_token_info)
11051+
end
11052+
end
11053+
1103511054
# Request for CheckRequirement method.
1103611055
class GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest
1103711056
include Google::Apis::Core::Hashable
@@ -26239,6 +26258,26 @@ def update!(**args)
2623926258
end
2624026259
end
2624126260

26261+
# Workspace settings for the end user.
26262+
class GoogleCloudDiscoveryengineV1alphaWorkspaceSettings
26263+
include Google::Apis::Core::Hashable
26264+
26265+
# Whether an end user has workspace access enabled.
26266+
# Corresponds to the JSON property `workspaceAccessEnabled`
26267+
# @return [Boolean]
26268+
attr_accessor :workspace_access_enabled
26269+
alias_method :workspace_access_enabled?, :workspace_access_enabled
26270+
26271+
def initialize(**args)
26272+
update!(**args)
26273+
end
26274+
26275+
# Update properties of this object
26276+
def update!(**args)
26277+
@workspace_access_enabled = args[:workspace_access_enabled] if args.key?(:workspace_access_enabled)
26278+
end
26279+
end
26280+
2624226281
# Access Control Configuration.
2624326282
class GoogleCloudDiscoveryengineV1betaAclConfig
2624426283
include Google::Apis::Core::Hashable

generated/google-apis-discoveryengine_v1alpha/lib/google/apis/discoveryengine_v1alpha/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module DiscoveryengineV1alpha
1818
# Version of the google-apis-discoveryengine_v1alpha gem
19-
GEM_VERSION = "0.79.0"
19+
GEM_VERSION = "0.80.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20250929"
25+
REVISION = "20251008"
2626
end
2727
end
2828
end

generated/google-apis-discoveryengine_v1alpha/lib/google/apis/discoveryengine_v1alpha/representations.rb

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,6 +1750,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
17501750
include Google::Apis::Core::JsonObjectSupport
17511751
end
17521752

1753+
class GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse
1754+
class Representation < Google::Apis::Core::JsonRepresentation; end
1755+
1756+
include Google::Apis::Core::JsonObjectSupport
1757+
end
1758+
17531759
class GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest
17541760
class Representation < Google::Apis::Core::JsonRepresentation; end
17551761

@@ -4084,6 +4090,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
40844090
include Google::Apis::Core::JsonObjectSupport
40854091
end
40864092

4093+
class GoogleCloudDiscoveryengineV1alphaWorkspaceSettings
4094+
class Representation < Google::Apis::Core::JsonRepresentation; end
4095+
4096+
include Google::Apis::Core::JsonObjectSupport
4097+
end
4098+
40874099
class GoogleCloudDiscoveryengineV1betaAclConfig
40884100
class Representation < Google::Apis::Core::JsonRepresentation; end
40894101

@@ -8274,6 +8286,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
82748286
end
82758287
end
82768288

8289+
class GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse
8290+
# @private
8291+
class Representation < Google::Apis::Core::JsonRepresentation
8292+
property :refresh_token_info, as: 'refreshTokenInfo', class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo, decorator: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaRefreshTokenInfo::Representation
8293+
8294+
end
8295+
end
8296+
82778297
class GoogleCloudDiscoveryengineV1alphaCheckRequirementRequest
82788298
# @private
82798299
class Representation < Google::Apis::Core::JsonRepresentation
@@ -12326,6 +12346,13 @@ class Representation < Google::Apis::Core::JsonRepresentation
1232612346
end
1232712347
end
1232812348

12349+
class GoogleCloudDiscoveryengineV1alphaWorkspaceSettings
12350+
# @private
12351+
class Representation < Google::Apis::Core::JsonRepresentation
12352+
property :workspace_access_enabled, as: 'workspaceAccessEnabled'
12353+
end
12354+
end
12355+
1232912356
class GoogleCloudDiscoveryengineV1betaAclConfig
1233012357
# @private
1233112358
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-discoveryengine_v1alpha/lib/google/apis/discoveryengine_v1alpha/service.rb

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,40 @@ def acquire_project_location_collection_data_connector_access_token(name, google
10151015
execute_or_queue_command(command, &block)
10161016
end
10171017

1018+
# Deprecated: Checks the existence of a refresh token for the EUC user for a
1019+
# given connection and returns its details. Use AcquireAccessToken instead and
1020+
# then check the validity of the returned token by asking the 3rd party system.
1021+
# There's no way to know for sure if a refresh token is valid without asking the
1022+
# 3rd party system.
1023+
# @param [String] name
1024+
# Required. The resource name of the connector for which a token is queried.
1025+
# @param [String] fields
1026+
# Selector specifying which fields to include in a partial response.
1027+
# @param [String] quota_user
1028+
# Available to use for quota purposes for server-side applications. Can be any
1029+
# arbitrary string assigned to a user, but should not exceed 40 characters.
1030+
# @param [Google::Apis::RequestOptions] options
1031+
# Request-specific options
1032+
#
1033+
# @yield [result, err] Result & error if block supplied
1034+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse] parsed result object
1035+
# @yieldparam err [StandardError] error object if request failed
1036+
#
1037+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse]
1038+
#
1039+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1040+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1041+
# @raise [Google::Apis::AuthorizationError] Authorization is required
1042+
def check_project_location_collection_data_connector_refresh_token(name, fields: nil, quota_user: nil, options: nil, &block)
1043+
command = make_simple_command(:get, 'v1alpha/{+name}:checkRefreshToken', options)
1044+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse::Representation
1045+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaCheckRefreshTokenResponse
1046+
command.params['name'] = name unless name.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+
10181052
# Get the secret for the associated connector.
10191053
# @param [String] name
10201054
# Required. The full resource name of the associated data connector.
@@ -4910,6 +4944,37 @@ def get_project_location_collection_engine(name, fields: nil, quota_user: nil, o
49104944
execute_or_queue_command(command, &block)
49114945
end
49124946

4947+
# Get Workspace settings for the end user.
4948+
# @param [String] name
4949+
# Required. Full Engine resource name. Format: `projects/`project`/locations/`
4950+
# location`/collections/`collection_id`/engines/`engine_id``
4951+
# @param [String] fields
4952+
# Selector specifying which fields to include in a partial response.
4953+
# @param [String] quota_user
4954+
# Available to use for quota purposes for server-side applications. Can be any
4955+
# arbitrary string assigned to a user, but should not exceed 40 characters.
4956+
# @param [Google::Apis::RequestOptions] options
4957+
# Request-specific options
4958+
#
4959+
# @yield [result, err] Result & error if block supplied
4960+
# @yieldparam result [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWorkspaceSettings] parsed result object
4961+
# @yieldparam err [StandardError] error object if request failed
4962+
#
4963+
# @return [Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWorkspaceSettings]
4964+
#
4965+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4966+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4967+
# @raise [Google::Apis::AuthorizationError] Authorization is required
4968+
def get_project_location_collection_engine_workspace_settings(name, fields: nil, quota_user: nil, options: nil, &block)
4969+
command = make_simple_command(:get, 'v1alpha/{+name}:getWorkspaceSettings', options)
4970+
command.response_representation = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWorkspaceSettings::Representation
4971+
command.response_class = Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWorkspaceSettings
4972+
command.params['name'] = name unless name.nil?
4973+
command.query['fields'] = fields unless fields.nil?
4974+
command.query['quotaUser'] = quota_user unless quota_user.nil?
4975+
execute_or_queue_command(command, &block)
4976+
end
4977+
49134978
# Lists all the Engines associated with the project.
49144979
# @param [String] parent
49154980
# Required. The parent resource name, such as `projects/`project`/locations/`

0 commit comments

Comments
 (0)