google-apis-accesscontextmanager_v1 0.24.0 → 0.25.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: 33bf72be1b6c8aad2bd6506692edba70d2eb59a86310b041b3b20e38b35a1253
4
- data.tar.gz: e0889e5f59ae7e65d77643fd336bb1efb3046e74b0e2dcd043429c59e2d7f9d9
3
+ metadata.gz: 510e203b19ab13e99f282ed69127a242378b5a0b85dfa8f31ddf2180eca2e202
4
+ data.tar.gz: f9408b26369f3c0ae053e203fc9b4fc64fbed3920b3c7c9743c139f712fae1f1
5
5
  SHA512:
6
- metadata.gz: c417818ef37fd0ff76d57becaa66407c5c5509cb6485896dc14975692288d1a959f6c0568cff57ad42d9ae43ba9e9e5ba970fcaae25f2697e8fec02024ad5972
7
- data.tar.gz: 16fe873bdeed2b7e95fa80e9218f8fb101237bf9178ce3b626578ca8c820a5e1a78b8bbddec40f2bdf41d57b52849db382726ab2c1894acacb43efcdf794c7f0
6
+ metadata.gz: 38d3e734c1810d535ceab219c2beb0eaa757864e870259fc18cf759e8566076e34b755b1e69facf07b7314e25a3f875fcca551da72d1b3388f4de4cd85813994
7
+ data.tar.gz: a96e3a95959d03a95524532064655c0de481ea7c9e945c670b06e6a0ac68cb9e679765cdb6b212910bf88fb8aa20726e66b54b44ee941f28f207abb1e9eefe29
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-accesscontextmanager_v1
2
2
 
3
+ ### v0.25.0 (2022-12-26)
4
+
5
+ * Regenerated from discovery document revision 20221213
6
+
3
7
  ### v0.24.0 (2022-12-07)
4
8
 
5
9
  * Regenerated from discovery document revision 20221205
@@ -248,6 +248,65 @@ module Google
248
248
  end
249
249
  end
250
250
 
251
+ # `AuthorizedOrgsDesc` is a resource that contains a list of organizations for a
252
+ # authorization type and asset type and its authorization direction.
253
+ class AuthorizedOrgsDesc
254
+ include Google::Apis::Core::Hashable
255
+
256
+ # The asset type of this authorized orgs desc. e.g. device, credential strength.
257
+ # Corresponds to the JSON property `assetType`
258
+ # @return [String]
259
+ attr_accessor :asset_type
260
+
261
+ # Authorization direction of this authorization relationship. i.e. Whether to
262
+ # allow specified orgs to evaluate this org's traffic, or allow specified orgs'
263
+ # traffic to be evaluated by this org. Orgs specified as `
264
+ # AUTHORIZATION_DIRECTION_TO` in this AuthorizedOrgsDesc[com.google.identity.
265
+ # accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `
266
+ # AUTHORIZATION_DIRECTION_FROM` in their own AuthorizedOrgsDesc in order for
267
+ # this relationship to take effect. Orgs specified as `
268
+ # AUTHORIZATION_DIRECTION_FROM` in this AuthorizedOrgsDesc[com.google.identity.
269
+ # accesscontextmanager.v1.AuthorizedOrgsDesc] must also specify this org as the `
270
+ # AUTHORIZATION_DIRECTION_TO` in their own AuthorizedOrgsDesc in order for this
271
+ # relationship to take effect.
272
+ # Corresponds to the JSON property `authorizationDirection`
273
+ # @return [String]
274
+ attr_accessor :authorization_direction
275
+
276
+ # The authorization type of this authorized orgs desc. e.g.authorization,
277
+ # troubleshooting or logging.
278
+ # Corresponds to the JSON property `authorizationType`
279
+ # @return [String]
280
+ attr_accessor :authorization_type
281
+
282
+ # Assigned by the server during creation. The last segment has an arbitrary
283
+ # length and has only URI unreserved characters (as defined by [RFC 3986 Section
284
+ # 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be
285
+ # specified by the client during creation. Example: "accessPolicies/122256/
286
+ # authorizedOrgs/b3-BhcX_Ud5N"
287
+ # Corresponds to the JSON property `name`
288
+ # @return [String]
289
+ attr_accessor :name
290
+
291
+ # The list of organization ids in this AuthorizedOrgsDesc.
292
+ # Corresponds to the JSON property `orgs`
293
+ # @return [Array<String>]
294
+ attr_accessor :orgs
295
+
296
+ def initialize(**args)
297
+ update!(**args)
298
+ end
299
+
300
+ # Update properties of this object
301
+ def update!(**args)
302
+ @asset_type = args[:asset_type] if args.key?(:asset_type)
303
+ @authorization_direction = args[:authorization_direction] if args.key?(:authorization_direction)
304
+ @authorization_type = args[:authorization_type] if args.key?(:authorization_type)
305
+ @name = args[:name] if args.key?(:name)
306
+ @orgs = args[:orgs] if args.key?(:orgs)
307
+ end
308
+ end
309
+
251
310
  # `BasicLevel` is an `AccessLevel` using a set of recommended features.
252
311
  class BasicLevel
253
312
  include Google::Apis::Core::Hashable
@@ -1082,6 +1141,32 @@ module Google
1082
1141
  end
1083
1142
  end
1084
1143
 
1144
+ # A response to `ListAuthorizedOrgsDescsRequest`.
1145
+ class ListAuthorizedOrgsDescsResponse
1146
+ include Google::Apis::Core::Hashable
1147
+
1148
+ # List of the Authorized Orgs Desc instances.
1149
+ # Corresponds to the JSON property `authorizedOrgsDescs`
1150
+ # @return [Array<Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc>]
1151
+ attr_accessor :authorized_orgs_descs
1152
+
1153
+ # The pagination token to retrieve the next page of results. If the value is
1154
+ # empty, no further results remain.
1155
+ # Corresponds to the JSON property `nextPageToken`
1156
+ # @return [String]
1157
+ attr_accessor :next_page_token
1158
+
1159
+ def initialize(**args)
1160
+ update!(**args)
1161
+ end
1162
+
1163
+ # Update properties of this object
1164
+ def update!(**args)
1165
+ @authorized_orgs_descs = args[:authorized_orgs_descs] if args.key?(:authorized_orgs_descs)
1166
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1167
+ end
1168
+ end
1169
+
1085
1170
  # Response of ListGcpUserAccessBindings.
1086
1171
  class ListGcpUserAccessBindingsResponse
1087
1172
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AccesscontextmanagerV1
18
18
  # Version of the google-apis-accesscontextmanager_v1 gem
19
- GEM_VERSION = "0.24.0"
19
+ GEM_VERSION = "0.25.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20221205"
25
+ REVISION = "20221213"
26
26
  end
27
27
  end
28
28
  end
@@ -58,6 +58,12 @@ module Google
58
58
  include Google::Apis::Core::JsonObjectSupport
59
59
  end
60
60
 
61
+ class AuthorizedOrgsDesc
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
61
67
  class BasicLevel
62
68
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
69
 
@@ -196,6 +202,12 @@ module Google
196
202
  include Google::Apis::Core::JsonObjectSupport
197
203
  end
198
204
 
205
+ class ListAuthorizedOrgsDescsResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
199
211
  class ListGcpUserAccessBindingsResponse
200
212
  class Representation < Google::Apis::Core::JsonRepresentation; end
201
213
 
@@ -360,6 +372,17 @@ module Google
360
372
  end
361
373
  end
362
374
 
375
+ class AuthorizedOrgsDesc
376
+ # @private
377
+ class Representation < Google::Apis::Core::JsonRepresentation
378
+ property :asset_type, as: 'assetType'
379
+ property :authorization_direction, as: 'authorizationDirection'
380
+ property :authorization_type, as: 'authorizationType'
381
+ property :name, as: 'name'
382
+ collection :orgs, as: 'orgs'
383
+ end
384
+ end
385
+
363
386
  class BasicLevel
364
387
  # @private
365
388
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -563,6 +586,15 @@ module Google
563
586
  end
564
587
  end
565
588
 
589
+ class ListAuthorizedOrgsDescsResponse
590
+ # @private
591
+ class Representation < Google::Apis::Core::JsonRepresentation
592
+ collection :authorized_orgs_descs, as: 'authorizedOrgsDescs', class: Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc, decorator: Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc::Representation
593
+
594
+ property :next_page_token, as: 'nextPageToken'
595
+ end
596
+ end
597
+
566
598
  class ListGcpUserAccessBindingsResponse
567
599
  # @private
568
600
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -604,6 +604,191 @@ module Google
604
604
  execute_or_queue_command(command, &block)
605
605
  end
606
606
 
607
+ # Creates a authorized orgs desc. The long-running operation from this RPC has a
608
+ # successful status after the authorized orgs desc propagates to long-lasting
609
+ # storage. If a authorized orgs desc contains errors, an error response is
610
+ # returned for the first error encountered. The name of this `AuthorizedOrgsDesc`
611
+ # will be assigned during creation.
612
+ # @param [String] parent
613
+ # Required. Resource name for the access policy which owns this Authorized Orgs
614
+ # Desc. Format: `accessPolicies/`policy_id``
615
+ # @param [Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc] authorized_orgs_desc_object
616
+ # @param [String] fields
617
+ # Selector specifying which fields to include in a partial response.
618
+ # @param [String] quota_user
619
+ # Available to use for quota purposes for server-side applications. Can be any
620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
621
+ # @param [Google::Apis::RequestOptions] options
622
+ # Request-specific options
623
+ #
624
+ # @yield [result, err] Result & error if block supplied
625
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object
626
+ # @yieldparam err [StandardError] error object if request failed
627
+ #
628
+ # @return [Google::Apis::AccesscontextmanagerV1::Operation]
629
+ #
630
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
631
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
632
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
633
+ def create_access_policy_authorized_orgs_desc(parent, authorized_orgs_desc_object = nil, fields: nil, quota_user: nil, options: nil, &block)
634
+ command = make_simple_command(:post, 'v1/{+parent}/authorizedOrgsDescs', options)
635
+ command.request_representation = Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc::Representation
636
+ command.request_object = authorized_orgs_desc_object
637
+ command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
638
+ command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
639
+ command.params['parent'] = parent unless parent.nil?
640
+ command.query['fields'] = fields unless fields.nil?
641
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
642
+ execute_or_queue_command(command, &block)
643
+ end
644
+
645
+ # Deletes a authorized orgs desc based on the resource name. The long-running
646
+ # operation from this RPC has a successful status after the authorized orgs desc
647
+ # is removed from long-lasting storage.
648
+ # @param [String] name
649
+ # Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/`
650
+ # policy_id`/authorizedOrgsDesc/`authorized_orgs_desc_id``
651
+ # @param [String] fields
652
+ # Selector specifying which fields to include in a partial response.
653
+ # @param [String] quota_user
654
+ # Available to use for quota purposes for server-side applications. Can be any
655
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
656
+ # @param [Google::Apis::RequestOptions] options
657
+ # Request-specific options
658
+ #
659
+ # @yield [result, err] Result & error if block supplied
660
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object
661
+ # @yieldparam err [StandardError] error object if request failed
662
+ #
663
+ # @return [Google::Apis::AccesscontextmanagerV1::Operation]
664
+ #
665
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
666
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
667
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
668
+ def delete_access_policy_authorized_orgs_desc(name, fields: nil, quota_user: nil, options: nil, &block)
669
+ command = make_simple_command(:delete, 'v1/{+name}', options)
670
+ command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
671
+ command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
672
+ command.params['name'] = name unless name.nil?
673
+ command.query['fields'] = fields unless fields.nil?
674
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
675
+ execute_or_queue_command(command, &block)
676
+ end
677
+
678
+ # Gets a authorized orgs desc based on the resource name.
679
+ # @param [String] name
680
+ # Required. Resource name for the Authorized Orgs Desc. Format: `accessPolicies/`
681
+ # policy_id`/authorizedOrgsDescs/`authorized_orgs_descs_id``
682
+ # @param [String] fields
683
+ # Selector specifying which fields to include in a partial response.
684
+ # @param [String] quota_user
685
+ # Available to use for quota purposes for server-side applications. Can be any
686
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
687
+ # @param [Google::Apis::RequestOptions] options
688
+ # Request-specific options
689
+ #
690
+ # @yield [result, err] Result & error if block supplied
691
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc] parsed result object
692
+ # @yieldparam err [StandardError] error object if request failed
693
+ #
694
+ # @return [Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc]
695
+ #
696
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
697
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
698
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
699
+ def get_access_policy_authorized_orgs_desc(name, fields: nil, quota_user: nil, options: nil, &block)
700
+ command = make_simple_command(:get, 'v1/{+name}', options)
701
+ command.response_representation = Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc::Representation
702
+ command.response_class = Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc
703
+ command.params['name'] = name unless name.nil?
704
+ command.query['fields'] = fields unless fields.nil?
705
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
706
+ execute_or_queue_command(command, &block)
707
+ end
708
+
709
+ # Lists all authorized orgs descs for an access policy.
710
+ # @param [String] parent
711
+ # Required. Resource name for the access policy to list Authorized Orgs Desc
712
+ # from. Format: `accessPolicies/`policy_id``
713
+ # @param [Fixnum] page_size
714
+ # Number of Authorized Orgs Descs to include in the list. Default 100.
715
+ # @param [String] page_token
716
+ # Next page token for the next batch of Authorized Orgs Desc instances. Defaults
717
+ # to the first page of results.
718
+ # @param [String] fields
719
+ # Selector specifying which fields to include in a partial response.
720
+ # @param [String] quota_user
721
+ # Available to use for quota purposes for server-side applications. Can be any
722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
723
+ # @param [Google::Apis::RequestOptions] options
724
+ # Request-specific options
725
+ #
726
+ # @yield [result, err] Result & error if block supplied
727
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1::ListAuthorizedOrgsDescsResponse] parsed result object
728
+ # @yieldparam err [StandardError] error object if request failed
729
+ #
730
+ # @return [Google::Apis::AccesscontextmanagerV1::ListAuthorizedOrgsDescsResponse]
731
+ #
732
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
733
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
734
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
735
+ def list_access_policy_authorized_orgs_descs(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
736
+ command = make_simple_command(:get, 'v1/{+parent}/authorizedOrgsDescs', options)
737
+ command.response_representation = Google::Apis::AccesscontextmanagerV1::ListAuthorizedOrgsDescsResponse::Representation
738
+ command.response_class = Google::Apis::AccesscontextmanagerV1::ListAuthorizedOrgsDescsResponse
739
+ command.params['parent'] = parent unless parent.nil?
740
+ command.query['pageSize'] = page_size unless page_size.nil?
741
+ command.query['pageToken'] = page_token unless page_token.nil?
742
+ command.query['fields'] = fields unless fields.nil?
743
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
744
+ execute_or_queue_command(command, &block)
745
+ end
746
+
747
+ # Updates a authorized orgs desc. The long-running operation from this RPC has a
748
+ # successful status after the authorized orgs desc propagates to long-lasting
749
+ # storage. If a authorized orgs desc contains errors, an error response is
750
+ # returned for the first error encountered. Only the organization list in `
751
+ # AuthorizedOrgsDesc` can be updated. The name, authorization_type, asset_type
752
+ # and authorization_direction cannot be updated.
753
+ # @param [String] name
754
+ # Assigned by the server during creation. The last segment has an arbitrary
755
+ # length and has only URI unreserved characters (as defined by [RFC 3986 Section
756
+ # 2.3](https://tools.ietf.org/html/rfc3986#section-2.3)). Should not be
757
+ # specified by the client during creation. Example: "accessPolicies/122256/
758
+ # authorizedOrgs/b3-BhcX_Ud5N"
759
+ # @param [Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc] authorized_orgs_desc_object
760
+ # @param [String] update_mask
761
+ # Required. Mask to control which fields get updated. Must be non-empty.
762
+ # @param [String] fields
763
+ # Selector specifying which fields to include in a partial response.
764
+ # @param [String] quota_user
765
+ # Available to use for quota purposes for server-side applications. Can be any
766
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
767
+ # @param [Google::Apis::RequestOptions] options
768
+ # Request-specific options
769
+ #
770
+ # @yield [result, err] Result & error if block supplied
771
+ # @yieldparam result [Google::Apis::AccesscontextmanagerV1::Operation] parsed result object
772
+ # @yieldparam err [StandardError] error object if request failed
773
+ #
774
+ # @return [Google::Apis::AccesscontextmanagerV1::Operation]
775
+ #
776
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
777
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
778
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
779
+ def patch_access_policy_authorized_orgs_desc(name, authorized_orgs_desc_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
780
+ command = make_simple_command(:patch, 'v1/{+name}', options)
781
+ command.request_representation = Google::Apis::AccesscontextmanagerV1::AuthorizedOrgsDesc::Representation
782
+ command.request_object = authorized_orgs_desc_object
783
+ command.response_representation = Google::Apis::AccesscontextmanagerV1::Operation::Representation
784
+ command.response_class = Google::Apis::AccesscontextmanagerV1::Operation
785
+ command.params['name'] = name unless name.nil?
786
+ command.query['updateMask'] = update_mask unless update_mask.nil?
787
+ command.query['fields'] = fields unless fields.nil?
788
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
789
+ execute_or_queue_command(command, &block)
790
+ end
791
+
607
792
  # Commits the dry-run specification for all the service perimeters in an access
608
793
  # policy. A commit operation on a service perimeter involves copying its `spec`
609
794
  # field to the `status` field of the service perimeter. Only service perimeters
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-accesscontextmanager_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.24.0
4
+ version: 0.25.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: 2022-12-12 00:00:00.000000000 Z
11
+ date: 2023-01-04 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-accesscontextmanager_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.24.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-accesscontextmanager_v1/v0.25.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-accesscontextmanager_v1
63
63
  post_install_message:
64
64
  rdoc_options: []