Skip to content

Commit da6121a

Browse files
feat: Automated regeneration of discoveryengine v1 client (googleapis#22371)
Auto-created at 2025-04-06 10:06:35 +0000 using the toys pull request generator.
1 parent 4d95fbb commit da6121a

File tree

5 files changed

+206
-2
lines changed

5 files changed

+206
-2
lines changed

api_names_out.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192504,6 +192504,7 @@
192504192504
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest": google_cloud_discoveryengine_v1_disable_advanced_site_search_request
192505192505
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse": google_cloud_discoveryengine_v1_disable_advanced_site_search_response
192506192506
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document": google_cloud_discoveryengine_v1_document
192507+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/aclInfo": acl_info
192507192508
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/content": content
192508192509
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/derivedStructData": derived_struct_data
192509192510
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/derivedStructData/derived_struct_datum": derived_struct_datum
@@ -192516,6 +192517,13 @@
192516192517
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/schemaId": schema_id
192517192518
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/structData": struct_data
192518192519
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Document/structData/struct_datum": struct_datum
192520+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfo": google_cloud_discoveryengine_v1_document_acl_info
192521+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfo/readers": readers
192522+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfo/readers/reader": reader
192523+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction": google_cloud_discoveryengine_v1_document_acl_info_access_restriction
192524+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction/idpWide": idp_wide
192525+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction/principals": principals
192526+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction/principals/principal": principal
192519192527
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentContent": google_cloud_discoveryengine_v1_document_content
192520192528
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentContent/mimeType": mime_type
192521192529
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1DocumentContent/rawBytes": raw_bytes
@@ -192919,6 +192927,9 @@
192919192927
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1PanelInfo/panelId": panel_id
192920192928
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1PanelInfo/panelPosition": panel_position
192921192929
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1PanelInfo/totalPanels": total_panels
192930+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Principal": google_cloud_discoveryengine_v1_principal
192931+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Principal/groupId": group_id
192932+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Principal/userId": user_id
192922192933
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Project": google_cloud_discoveryengine_v1_project
192923192934
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Project/createTime": create_time
192924192935
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1Project/name": name
@@ -193716,13 +193727,17 @@
193716193727
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/params/param": param
193717193728
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/privateConnectivityProjectId": private_connectivity_project_id
193718193729
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/realtimeState": realtime_state
193730+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/realtimeSyncConfig": realtime_sync_config
193719193731
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/refreshInterval": refresh_interval
193720193732
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/state": state
193721193733
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/staticIpAddresses": static_ip_addresses
193722193734
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/staticIpAddresses/static_ip_address": static_ip_address
193723193735
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/staticIpEnabled": static_ip_enabled
193724193736
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/syncMode": sync_mode
193725193737
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnector/updateTime": update_time
193738+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig": google_cloud_discoveryengine_v1alpha_data_connector_realtime_sync_config
193739+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig/realtimeSyncSecret": realtime_sync_secret
193740+
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig/webhookUri": webhook_uri
193726193741
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity": google_cloud_discoveryengine_v1alpha_data_connector_source_entity
193727193742
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity/dataStore": data_store
193728193743
"/discoveryengine:v1/GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity/entityName": entity_name

generated/google-apis-discoveryengine_v1/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_v1
22

3+
### v0.33.0 (2025-04-06)
4+
5+
* Regenerated from discovery document revision 20250331
6+
37
### v0.32.0 (2025-03-30)
48

59
* Regenerated from discovery document revision 20250322

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

Lines changed: 124 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4807,6 +4807,11 @@ def update!(**args)
48074807
class GoogleCloudDiscoveryengineV1Document
48084808
include Google::Apis::Core::Hashable
48094809

4810+
# ACL Information of the Document.
4811+
# Corresponds to the JSON property `aclInfo`
4812+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentAclInfo]
4813+
attr_accessor :acl_info
4814+
48104815
# Unstructured data linked to this document.
48114816
# Corresponds to the JSON property `content`
48124817
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentContent]
@@ -4875,6 +4880,7 @@ def initialize(**args)
48754880

48764881
# Update properties of this object
48774882
def update!(**args)
4883+
@acl_info = args[:acl_info] if args.key?(:acl_info)
48784884
@content = args[:content] if args.key?(:content)
48794885
@derived_struct_data = args[:derived_struct_data] if args.key?(:derived_struct_data)
48804886
@id = args[:id] if args.key?(:id)
@@ -4888,6 +4894,59 @@ def update!(**args)
48884894
end
48894895
end
48904896

4897+
# ACL Information of the Document.
4898+
class GoogleCloudDiscoveryengineV1DocumentAclInfo
4899+
include Google::Apis::Core::Hashable
4900+
4901+
# Readers of the document.
4902+
# Corresponds to the JSON property `readers`
4903+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction>]
4904+
attr_accessor :readers
4905+
4906+
def initialize(**args)
4907+
update!(**args)
4908+
end
4909+
4910+
# Update properties of this object
4911+
def update!(**args)
4912+
@readers = args[:readers] if args.key?(:readers)
4913+
end
4914+
end
4915+
4916+
# AclRestriction to model complex inheritance restrictions. Example: Modeling a "
4917+
# Both Permit" inheritance, where to access a child document, user needs to have
4918+
# access to parent document. Document Hierarchy - Space_S --> Page_P. Readers:
4919+
# Space_S: group_1, user_1 Page_P: group_2, group_3, user_2 Space_S ACL
4920+
# Restriction - ` "acl_info": ` "readers": [ ` "principals": [ ` "group_id": "
4921+
# group_1" `, ` "user_id": "user_1" ` ] ` ] ` ` Page_P ACL Restriction. ` "
4922+
# acl_info": ` "readers": [ ` "principals": [ ` "group_id": "group_2" `, ` "
4923+
# group_id": "group_3" `, ` "user_id": "user_2" ` ], `, ` "principals": [ ` "
4924+
# group_id": "group_1" `, ` "user_id": "user_1" ` ], ` ] ` `
4925+
class GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction
4926+
include Google::Apis::Core::Hashable
4927+
4928+
# All users within the Identity Provider.
4929+
# Corresponds to the JSON property `idpWide`
4930+
# @return [Boolean]
4931+
attr_accessor :idp_wide
4932+
alias_method :idp_wide?, :idp_wide
4933+
4934+
# List of principals.
4935+
# Corresponds to the JSON property `principals`
4936+
# @return [Array<Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Principal>]
4937+
attr_accessor :principals
4938+
4939+
def initialize(**args)
4940+
update!(**args)
4941+
end
4942+
4943+
# Update properties of this object
4944+
def update!(**args)
4945+
@idp_wide = args[:idp_wide] if args.key?(:idp_wide)
4946+
@principals = args[:principals] if args.key?(:principals)
4947+
end
4948+
end
4949+
48914950
# Unstructured data linked to this document.
48924951
class GoogleCloudDiscoveryengineV1DocumentContent
48934952
include Google::Apis::Core::Hashable
@@ -7100,6 +7159,37 @@ def update!(**args)
71007159
end
71017160
end
71027161

7162+
# Principal identifier of a user or a group.
7163+
class GoogleCloudDiscoveryengineV1Principal
7164+
include Google::Apis::Core::Hashable
7165+
7166+
# Group identifier. For Google Workspace user account, group_id should be the
7167+
# google workspace group email. For non-google identity provider user account,
7168+
# group_id is the mapped group identifier configured during the workforcepool
7169+
# config.
7170+
# Corresponds to the JSON property `groupId`
7171+
# @return [String]
7172+
attr_accessor :group_id
7173+
7174+
# User identifier. For Google Workspace user account, user_id should be the
7175+
# google workspace user email. For non-google identity provider user account,
7176+
# user_id is the mapped user identifier configured during the workforcepool
7177+
# config.
7178+
# Corresponds to the JSON property `userId`
7179+
# @return [String]
7180+
attr_accessor :user_id
7181+
7182+
def initialize(**args)
7183+
update!(**args)
7184+
end
7185+
7186+
# Update properties of this object
7187+
def update!(**args)
7188+
@group_id = args[:group_id] if args.key?(:group_id)
7189+
@user_id = args[:user_id] if args.key?(:user_id)
7190+
end
7191+
end
7192+
71037193
# Metadata and configurations for a Google Cloud project in the service.
71047194
class GoogleCloudDiscoveryengineV1Project
71057195
include Google::Apis::Core::Hashable
@@ -13121,6 +13211,12 @@ class GoogleCloudDiscoveryengineV1alphaDataConnector
1312113211
# @return [String]
1312213212
attr_accessor :realtime_state
1312313213

13214+
# The configuration for realtime sync to store additional params for realtime
13215+
# sync.
13216+
# Corresponds to the JSON property `realtimeSyncConfig`
13217+
# @return [Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig]
13218+
attr_accessor :realtime_sync_config
13219+
1312413220
# Required. The refresh interval for data sync. If duration is set to 0, the
1312513221
# data will be synced in real time. The streaming feature is not supported yet.
1312613222
# The minimum is 30 minutes and maximum is 7 days.
@@ -13181,6 +13277,7 @@ def update!(**args)
1318113277
@params = args[:params] if args.key?(:params)
1318213278
@private_connectivity_project_id = args[:private_connectivity_project_id] if args.key?(:private_connectivity_project_id)
1318313279
@realtime_state = args[:realtime_state] if args.key?(:realtime_state)
13280+
@realtime_sync_config = args[:realtime_sync_config] if args.key?(:realtime_sync_config)
1318413281
@refresh_interval = args[:refresh_interval] if args.key?(:refresh_interval)
1318513282
@state = args[:state] if args.key?(:state)
1318613283
@static_ip_addresses = args[:static_ip_addresses] if args.key?(:static_ip_addresses)
@@ -13190,6 +13287,33 @@ def update!(**args)
1319013287
end
1319113288
end
1319213289

13290+
# The configuration for realtime sync to store additional params for realtime
13291+
# sync.
13292+
class GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig
13293+
include Google::Apis::Core::Hashable
13294+
13295+
# Optional. The ID of the Secret Manager secret used for webhook secret.
13296+
# Corresponds to the JSON property `realtimeSyncSecret`
13297+
# @return [String]
13298+
attr_accessor :realtime_sync_secret
13299+
13300+
# Optional. Webhook url for the connector to specify additional params for
13301+
# realtime sync.
13302+
# Corresponds to the JSON property `webhookUri`
13303+
# @return [String]
13304+
attr_accessor :webhook_uri
13305+
13306+
def initialize(**args)
13307+
update!(**args)
13308+
end
13309+
13310+
# Update properties of this object
13311+
def update!(**args)
13312+
@realtime_sync_secret = args[:realtime_sync_secret] if args.key?(:realtime_sync_secret)
13313+
@webhook_uri = args[:webhook_uri] if args.key?(:webhook_uri)
13314+
end
13315+
end
13316+
1319313317
# Represents an entity in the data source. For example, the `Account` object in
1319413318
# Salesforce.
1319513319
class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity

generated/google-apis-discoveryengine_v1/lib/google/apis/discoveryengine_v1/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 DiscoveryengineV1
1818
# Version of the google-apis-discoveryengine_v1 gem
19-
GEM_VERSION = "0.32.0"
19+
GEM_VERSION = "0.33.0"
2020

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

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

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

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
808808
include Google::Apis::Core::JsonObjectSupport
809809
end
810810

811+
class GoogleCloudDiscoveryengineV1DocumentAclInfo
812+
class Representation < Google::Apis::Core::JsonRepresentation; end
813+
814+
include Google::Apis::Core::JsonObjectSupport
815+
end
816+
817+
class GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction
818+
class Representation < Google::Apis::Core::JsonRepresentation; end
819+
820+
include Google::Apis::Core::JsonObjectSupport
821+
end
822+
811823
class GoogleCloudDiscoveryengineV1DocumentContent
812824
class Representation < Google::Apis::Core::JsonRepresentation; end
813825

@@ -1216,6 +1228,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
12161228
include Google::Apis::Core::JsonObjectSupport
12171229
end
12181230

1231+
class GoogleCloudDiscoveryengineV1Principal
1232+
class Representation < Google::Apis::Core::JsonRepresentation; end
1233+
1234+
include Google::Apis::Core::JsonObjectSupport
1235+
end
1236+
12191237
class GoogleCloudDiscoveryengineV1Project
12201238
class Representation < Google::Apis::Core::JsonRepresentation; end
12211239

@@ -2098,6 +2116,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
20982116
include Google::Apis::Core::JsonObjectSupport
20992117
end
21002118

2119+
class GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig
2120+
class Representation < Google::Apis::Core::JsonRepresentation; end
2121+
2122+
include Google::Apis::Core::JsonObjectSupport
2123+
end
2124+
21012125
class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity
21022126
class Representation < Google::Apis::Core::JsonRepresentation; end
21032127

@@ -5101,6 +5125,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
51015125
class GoogleCloudDiscoveryengineV1Document
51025126
# @private
51035127
class Representation < Google::Apis::Core::JsonRepresentation
5128+
property :acl_info, as: 'aclInfo', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentAclInfo, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentAclInfo::Representation
5129+
51045130
property :content, as: 'content', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentContent, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentContent::Representation
51055131

51065132
hash :derived_struct_data, as: 'derivedStructData'
@@ -5116,6 +5142,23 @@ class Representation < Google::Apis::Core::JsonRepresentation
51165142
end
51175143
end
51185144

5145+
class GoogleCloudDiscoveryengineV1DocumentAclInfo
5146+
# @private
5147+
class Representation < Google::Apis::Core::JsonRepresentation
5148+
collection :readers, as: 'readers', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction::Representation
5149+
5150+
end
5151+
end
5152+
5153+
class GoogleCloudDiscoveryengineV1DocumentAclInfoAccessRestriction
5154+
# @private
5155+
class Representation < Google::Apis::Core::JsonRepresentation
5156+
property :idp_wide, as: 'idpWide'
5157+
collection :principals, as: 'principals', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Principal, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Principal::Representation
5158+
5159+
end
5160+
end
5161+
51195162
class GoogleCloudDiscoveryengineV1DocumentContent
51205163
# @private
51215164
class Representation < Google::Apis::Core::JsonRepresentation
@@ -5770,6 +5813,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
57705813
end
57715814
end
57725815

5816+
class GoogleCloudDiscoveryengineV1Principal
5817+
# @private
5818+
class Representation < Google::Apis::Core::JsonRepresentation
5819+
property :group_id, as: 'groupId'
5820+
property :user_id, as: 'userId'
5821+
end
5822+
end
5823+
57735824
class GoogleCloudDiscoveryengineV1Project
57745825
# @private
57755826
class Representation < Google::Apis::Core::JsonRepresentation
@@ -7313,6 +7364,8 @@ class Representation < Google::Apis::Core::JsonRepresentation
73137364
hash :params, as: 'params'
73147365
property :private_connectivity_project_id, as: 'privateConnectivityProjectId'
73157366
property :realtime_state, as: 'realtimeState'
7367+
property :realtime_sync_config, as: 'realtimeSyncConfig', class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig, decorator: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig::Representation
7368+
73167369
property :refresh_interval, as: 'refreshInterval'
73177370
property :state, as: 'state'
73187371
collection :static_ip_addresses, as: 'staticIpAddresses'
@@ -7322,6 +7375,14 @@ class Representation < Google::Apis::Core::JsonRepresentation
73227375
end
73237376
end
73247377

7378+
class GoogleCloudDiscoveryengineV1alphaDataConnectorRealtimeSyncConfig
7379+
# @private
7380+
class Representation < Google::Apis::Core::JsonRepresentation
7381+
property :realtime_sync_secret, as: 'realtimeSyncSecret'
7382+
property :webhook_uri, as: 'webhookUri'
7383+
end
7384+
end
7385+
73257386
class GoogleCloudDiscoveryengineV1alphaDataConnectorSourceEntity
73267387
# @private
73277388
class Representation < Google::Apis::Core::JsonRepresentation

0 commit comments

Comments
 (0)