google-apis-connectors_v2 0.14.0 → 0.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6309a893fffe2f91894fcbb740b42d5f382be925ac397b5fb6a78a3f84be8352
4
- data.tar.gz: 87c45ca109be01d99f60db398fd4f92a0f90198032457138ebeb2c13e4407167
3
+ metadata.gz: bb27cef22f198f78576a8670c446458d08b351e9041abfceb9aa53b6265371d8
4
+ data.tar.gz: fec77c5bf0fafd02f77148345963c9a49a07a5852d0aaf5f3e3caa5bd789f07b
5
5
  SHA512:
6
- metadata.gz: 6a4f8135f666a913124ea0c93fa9b4ddae5ccef618471e6e60770a84f76d55e777b21691e10d1cd64a51f159872ea4ae0313aa0cd4e73f3c96b3d3b0ae7aae9c
7
- data.tar.gz: 7a91c0f0df33f7e85bf56c9cd45b546f40b5d4d4cd94058a5148a8cc2d8f284ed21d41f8706a45755ff618cad84850930737a3aa31b222dbdcc63fa51cb8d0b7
6
+ metadata.gz: b40f12ae96a4f6b4cf9fbab02ee60a39febaae67e33c9435f9a0d359a23cc79751d93ade1b1d29ab88a3211e7c543ef37817505dcc1ddd98537cbd1ec1299166
7
+ data.tar.gz: 3206dad0c69a03340edc4ef0fcb94f21636feb06de5633c1a2cb501b7748793e97b043a8e9ef71c7f5cd59bf3f635189adbca882d4473dfe7690353a2b64f1a7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-connectors_v2
2
2
 
3
+ ### v0.15.0 (2024-06-02)
4
+
5
+ * Regenerated from discovery document revision 20240529
6
+
3
7
  ### v0.14.0 (2024-05-19)
4
8
 
5
9
  * Regenerated using generator version 0.15.0
@@ -54,6 +54,27 @@ module Google
54
54
  end
55
55
  end
56
56
 
57
+ # AclInfo has a list of readers for a resource. This is defined as per the below
58
+ # docs https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/
59
+ # v1alpha/projects.locations.collections.dataStores.branches.documents#aclinfo
60
+ class AclInfo
61
+ include Google::Apis::Core::Hashable
62
+
63
+ # A list of readers for a resource.
64
+ # Corresponds to the JSON property `readers`
65
+ # @return [Array<Google::Apis::ConnectorsV2::Readers>]
66
+ attr_accessor :readers
67
+
68
+ def initialize(**args)
69
+ update!(**args)
70
+ end
71
+
72
+ # Update properties of this object
73
+ def update!(**args)
74
+ @readers = args[:readers] if args.key?(:readers)
75
+ end
76
+ end
77
+
57
78
  # Action message contains metadata information about a single action present in
58
79
  # the external system.
59
80
  class Action
@@ -352,6 +373,39 @@ module Google
352
373
  end
353
374
  end
354
375
 
376
+ # EntityWithACL refers to a single row of an entity type with ACL information.
377
+ class EntityWithAcl
378
+ include Google::Apis::Core::Hashable
379
+
380
+ # AclInfo has a list of readers for a resource. This is defined as per the below
381
+ # docs https://cloud.google.com/generative-ai-app-builder/docs/reference/rest/
382
+ # v1alpha/projects.locations.collections.dataStores.branches.documents#aclinfo
383
+ # Corresponds to the JSON property `acl_info`
384
+ # @return [Google::Apis::ConnectorsV2::AclInfo]
385
+ attr_accessor :acl_info
386
+
387
+ #
388
+ # Corresponds to the JSON property `id`
389
+ # @return [String]
390
+ attr_accessor :id
391
+
392
+ # Entity data in JSON format.
393
+ # Corresponds to the JSON property `jsonData`
394
+ # @return [String]
395
+ attr_accessor :json_data
396
+
397
+ def initialize(**args)
398
+ update!(**args)
399
+ end
400
+
401
+ # Update properties of this object
402
+ def update!(**args)
403
+ @acl_info = args[:acl_info] if args.key?(:acl_info)
404
+ @id = args[:id] if args.key?(:id)
405
+ @json_data = args[:json_data] if args.key?(:json_data)
406
+ end
407
+ end
408
+
355
409
  # ExchangeAuthCodeRequest currently includes no fields.
356
410
  class ExchangeAuthCodeRequest
357
411
  include Google::Apis::Core::Hashable
@@ -904,6 +958,31 @@ module Google
904
958
  end
905
959
  end
906
960
 
961
+ # Response message for EntityService.ListEntitiesWithACLs
962
+ class ListEntitiesWithAcLsResponse
963
+ include Google::Apis::Core::Hashable
964
+
965
+ # List containing entity rows.
966
+ # Corresponds to the JSON property `entitiesWithAcl`
967
+ # @return [Array<Google::Apis::ConnectorsV2::EntityWithAcl>]
968
+ attr_accessor :entities_with_acl
969
+
970
+ # Next page token if more records are available.
971
+ # Corresponds to the JSON property `nextPageToken`
972
+ # @return [String]
973
+ attr_accessor :next_page_token
974
+
975
+ def initialize(**args)
976
+ update!(**args)
977
+ end
978
+
979
+ # Update properties of this object
980
+ def update!(**args)
981
+ @entities_with_acl = args[:entities_with_acl] if args.key?(:entities_with_acl)
982
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
983
+ end
984
+ end
985
+
907
986
  # Response message for EntityService.ListEntityTypes
908
987
  class ListEntityTypesResponse
909
988
  include Google::Apis::Core::Hashable
@@ -1198,6 +1277,31 @@ module Google
1198
1277
  end
1199
1278
  end
1200
1279
 
1280
+ # Principal is a user or group that has access to a resource.
1281
+ class Principal
1282
+ include Google::Apis::Core::Hashable
1283
+
1284
+ # The group that has access to a resource.
1285
+ # Corresponds to the JSON property `group_id`
1286
+ # @return [String]
1287
+ attr_accessor :group_id
1288
+
1289
+ # The user that has access to a resource.
1290
+ # Corresponds to the JSON property `user_id`
1291
+ # @return [String]
1292
+ attr_accessor :user_id
1293
+
1294
+ def initialize(**args)
1295
+ update!(**args)
1296
+ end
1297
+
1298
+ # Update properties of this object
1299
+ def update!(**args)
1300
+ @group_id = args[:group_id] if args.key?(:group_id)
1301
+ @user_id = args[:user_id] if args.key?(:user_id)
1302
+ end
1303
+ end
1304
+
1201
1305
  # Describes provisioned dataplane resources.
1202
1306
  class ProvisionedResource
1203
1307
  include Google::Apis::Core::Hashable
@@ -1294,6 +1398,25 @@ module Google
1294
1398
  end
1295
1399
  end
1296
1400
 
1401
+ # Readers is a list of principals that have read access to a resource.
1402
+ class Readers
1403
+ include Google::Apis::Core::Hashable
1404
+
1405
+ # A list of principals that have read access to a resource.
1406
+ # Corresponds to the JSON property `principals`
1407
+ # @return [Array<Google::Apis::ConnectorsV2::Principal>]
1408
+ attr_accessor :principals
1409
+
1410
+ def initialize(**args)
1411
+ update!(**args)
1412
+ end
1413
+
1414
+ # Update properties of this object
1415
+ def update!(**args)
1416
+ @principals = args[:principals] if args.key?(:principals)
1417
+ end
1418
+ end
1419
+
1297
1420
  #
1298
1421
  class Reference
1299
1422
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module ConnectorsV2
18
18
  # Version of the google-apis-connectors_v2 gem
19
- GEM_VERSION = "0.14.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240415"
25
+ REVISION = "20240529"
26
26
  end
27
27
  end
28
28
  end
@@ -28,6 +28,12 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class AclInfo
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
31
37
  class Action
32
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
39
 
@@ -82,6 +88,12 @@ module Google
82
88
  include Google::Apis::Core::JsonObjectSupport
83
89
  end
84
90
 
91
+ class EntityWithAcl
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
85
97
  class ExchangeAuthCodeRequest
86
98
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
99
 
@@ -154,6 +166,12 @@ module Google
154
166
  include Google::Apis::Core::JsonObjectSupport
155
167
  end
156
168
 
169
+ class ListEntitiesWithAcLsResponse
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
157
175
  class ListEntityTypesResponse
158
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
159
177
 
@@ -202,6 +220,12 @@ module Google
202
220
  include Google::Apis::Core::JsonObjectSupport
203
221
  end
204
222
 
223
+ class Principal
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
205
229
  class ProvisionedResource
206
230
  class Representation < Google::Apis::Core::JsonRepresentation; end
207
231
 
@@ -220,6 +244,12 @@ module Google
220
244
  include Google::Apis::Core::JsonObjectSupport
221
245
  end
222
246
 
247
+ class Readers
248
+ class Representation < Google::Apis::Core::JsonRepresentation; end
249
+
250
+ include Google::Apis::Core::JsonObjectSupport
251
+ end
252
+
223
253
  class Reference
224
254
  class Representation < Google::Apis::Core::JsonRepresentation; end
225
255
 
@@ -295,6 +325,14 @@ module Google
295
325
  end
296
326
  end
297
327
 
328
+ class AclInfo
329
+ # @private
330
+ class Representation < Google::Apis::Core::JsonRepresentation
331
+ collection :readers, as: 'readers', class: Google::Apis::ConnectorsV2::Readers, decorator: Google::Apis::ConnectorsV2::Readers::Representation
332
+
333
+ end
334
+ end
335
+
298
336
  class Action
299
337
  # @private
300
338
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -383,6 +421,16 @@ module Google
383
421
  end
384
422
  end
385
423
 
424
+ class EntityWithAcl
425
+ # @private
426
+ class Representation < Google::Apis::Core::JsonRepresentation
427
+ property :acl_info, as: 'acl_info', class: Google::Apis::ConnectorsV2::AclInfo, decorator: Google::Apis::ConnectorsV2::AclInfo::Representation
428
+
429
+ property :id, as: 'id'
430
+ property :json_data, as: 'jsonData'
431
+ end
432
+ end
433
+
386
434
  class ExchangeAuthCodeRequest
387
435
  # @private
388
436
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -522,6 +570,15 @@ module Google
522
570
  end
523
571
  end
524
572
 
573
+ class ListEntitiesWithAcLsResponse
574
+ # @private
575
+ class Representation < Google::Apis::Core::JsonRepresentation
576
+ collection :entities_with_acl, as: 'entitiesWithAcl', class: Google::Apis::ConnectorsV2::EntityWithAcl, decorator: Google::Apis::ConnectorsV2::EntityWithAcl::Representation
577
+
578
+ property :next_page_token, as: 'nextPageToken'
579
+ end
580
+ end
581
+
525
582
  class ListEntityTypesResponse
526
583
  # @private
527
584
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -602,6 +659,14 @@ module Google
602
659
  end
603
660
  end
604
661
 
662
+ class Principal
663
+ # @private
664
+ class Representation < Google::Apis::Core::JsonRepresentation
665
+ property :group_id, as: 'group_id'
666
+ property :user_id, as: 'user_id'
667
+ end
668
+ end
669
+
605
670
  class ProvisionedResource
606
671
  # @private
607
672
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -629,6 +694,14 @@ module Google
629
694
  end
630
695
  end
631
696
 
697
+ class Readers
698
+ # @private
699
+ class Representation < Google::Apis::Core::JsonRepresentation
700
+ collection :principals, as: 'principals', class: Google::Apis::ConnectorsV2::Principal, decorator: Google::Apis::ConnectorsV2::Principal::Representation
701
+
702
+ end
703
+ end
704
+
632
705
  class Reference
633
706
  # @private
634
707
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -676,6 +676,63 @@ module Google
676
676
  command.query['quotaUser'] = quota_user unless quota_user.nil?
677
677
  execute_or_queue_command(command, &block)
678
678
  end
679
+
680
+ # Lists entity rows with ACLs of a particular entity type contained in the
681
+ # request. Note: 1. Currently, only max of one 'sort_by' column is supported. 2.
682
+ # If no 'sort_by' column is provided, the primary key of the table is used. If
683
+ # zero or more than one primary key is available, we default to the unpaginated
684
+ # list entities logic which only returns the first page. 3. The values of the '
685
+ # sort_by' columns must uniquely identify an entity row, otherwise undefined
686
+ # behaviors may be observed during pagination. 4. Since transactions are not
687
+ # supported, any updates, inserts or deletes during pagination can lead to stale
688
+ # data being returned or other unexpected behaviors.
689
+ # @param [String] parent
690
+ # Required. Resource name of the Entity Type. Format: projects/`project`/
691
+ # locations/`location`/connections/`connection`/entityTypes/`type`
692
+ # @param [String] conditions
693
+ # Conditions to be used when listing entities. From a proto standpoint, There
694
+ # are no restrictions on what can be passed using this field. The connector
695
+ # documentation should have information about what format of filters/conditions
696
+ # are supported.
697
+ # @param [String] gsutil_uri
698
+ # Format: gs://object_path
699
+ # @param [Fixnum] page_size
700
+ # Number of entity rows to return. Defaults page size = 25. Max page size = 200.
701
+ # @param [String] page_token
702
+ # Page token value if available from a previous request.
703
+ # @param [Array<String>, String] sort_by
704
+ # List of 'sort_by' columns to use when returning the results.
705
+ # @param [String] fields
706
+ # Selector specifying which fields to include in a partial response.
707
+ # @param [String] quota_user
708
+ # Available to use for quota purposes for server-side applications. Can be any
709
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
710
+ # @param [Google::Apis::RequestOptions] options
711
+ # Request-specific options
712
+ #
713
+ # @yield [result, err] Result & error if block supplied
714
+ # @yieldparam result [Google::Apis::ConnectorsV2::ListEntitiesWithAcLsResponse] parsed result object
715
+ # @yieldparam err [StandardError] error object if request failed
716
+ #
717
+ # @return [Google::Apis::ConnectorsV2::ListEntitiesWithAcLsResponse]
718
+ #
719
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
720
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
721
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
722
+ def list_project_location_connection_entity_type_entitieswithacls(parent, conditions: nil, gsutil_uri: nil, page_size: nil, page_token: nil, sort_by: nil, fields: nil, quota_user: nil, options: nil, &block)
723
+ command = make_simple_command(:get, 'v2/{+parent}/entitieswithacls', options)
724
+ command.response_representation = Google::Apis::ConnectorsV2::ListEntitiesWithAcLsResponse::Representation
725
+ command.response_class = Google::Apis::ConnectorsV2::ListEntitiesWithAcLsResponse
726
+ command.params['parent'] = parent unless parent.nil?
727
+ command.query['conditions'] = conditions unless conditions.nil?
728
+ command.query['gsutilUri'] = gsutil_uri unless gsutil_uri.nil?
729
+ command.query['pageSize'] = page_size unless page_size.nil?
730
+ command.query['pageToken'] = page_token unless page_token.nil?
731
+ command.query['sortBy'] = sort_by unless sort_by.nil?
732
+ command.query['fields'] = fields unless fields.nil?
733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
734
+ execute_or_queue_command(command, &block)
735
+ end
679
736
 
680
737
  protected
681
738
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-connectors_v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-19 00:00:00.000000000 Z
11
+ date: 2024-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.14.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-connectors_v2/v0.15.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-connectors_v2
63
63
  post_install_message:
64
64
  rdoc_options: []