google-apis-cloudidentity_v1beta1 0.20.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e87afb764234c9eec8f1953fd4ef8bf7571def7c2b253e039edb602471d7258f
4
- data.tar.gz: 1200dbadb15d98acd660320a99e665667a5e38b648ca7b5101a7b70cab819de0
3
+ metadata.gz: 7f368a583edad270ce2eaac613b11e215ab19a638dcc0c0d9dd38021627b7038
4
+ data.tar.gz: 9eecbf024ec7b7dfa2ecf700fb4759c1fc51d7b206943e168a95c02c134aaa8c
5
5
  SHA512:
6
- metadata.gz: 959743c97b0b519c9512bab1ca1b841a0e8823560613fc7223a54a4129fad63ebb8fed6cb72b3a0d77fcc39f42fb474b68832217a6d5487fa51dcfe5e0d4b3fb
7
- data.tar.gz: ce6fb8ce1f744f3c987a1c1581ad4869b1ed914da21a4fbd38fd2ba7baf9cbd3ec985d76c81585de7d73b7560b20ac4e10685ba92f33f1409bd1bf4cc9de7db5
6
+ metadata.gz: 3b81f135773222e884dc29e6a5434c8072f0b2b6c42b4653c8df602991f810d960a1bf8386998a69dd438a5c4bd8b8aefce646828bfc19e2d5e1ebdfb105feeb
7
+ data.tar.gz: 54f67ecd71e0e508d01ea139fcb10d5bbe2412d67a60c1fabf161388996f1968831894a78e319b80c05d24e895c23794a28271d06aca5d70bf7897e41cdc4edc
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudidentity_v1beta1
2
2
 
3
+ ### v0.21.0 (2022-01-28)
4
+
5
+ * Regenerated from discovery document revision 20220125
6
+ * Regenerated using generator version 0.4.1
7
+
3
8
  ### v0.20.0 (2021-12-16)
4
9
 
5
10
  * Unspecified changes
@@ -2008,6 +2008,32 @@ module Google
2008
2008
  end
2009
2009
  end
2010
2010
 
2011
+ # The response message for OrgMembershipsService.ListOrgMemberships.
2012
+ class ListOrgMembershipsResponse
2013
+ include Google::Apis::Core::Hashable
2014
+
2015
+ # A token, which can be sent as `page_token` to retrieve the next page. If this
2016
+ # field is empty, there are no subsequent pages.
2017
+ # Corresponds to the JSON property `nextPageToken`
2018
+ # @return [String]
2019
+ attr_accessor :next_page_token
2020
+
2021
+ # The non-vacuous membership in an orgUnit.
2022
+ # Corresponds to the JSON property `orgMemberships`
2023
+ # @return [Array<Google::Apis::CloudidentityV1beta1::OrgMembership>]
2024
+ attr_accessor :org_memberships
2025
+
2026
+ def initialize(**args)
2027
+ update!(**args)
2028
+ end
2029
+
2030
+ # Update properties of this object
2031
+ def update!(**args)
2032
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
2033
+ @org_memberships = args[:org_memberships] if args.key?(:org_memberships)
2034
+ end
2035
+ end
2036
+
2011
2037
  # Response message for UserInvitation listing request.
2012
2038
  class ListUserInvitationsResponse
2013
2039
  include Google::Apis::Core::Hashable
@@ -2390,6 +2416,39 @@ module Google
2390
2416
  end
2391
2417
  end
2392
2418
 
2419
+ # The request message for OrgMembershipsService.MoveOrgMembership.
2420
+ class MoveOrgMembershipRequest
2421
+ include Google::Apis::Core::Hashable
2422
+
2423
+ # Required. Immutable. Customer on whose membership change is made. All
2424
+ # authorization will happen on the role assignments of this customer. Format:
2425
+ # customers/`$customerId` where `$customerId` is the `id` from the [Admin SDK `
2426
+ # Customer` resource](https://developers.google.com/admin-sdk/directory/
2427
+ # reference/rest/v1/customers). You may also use `customers/my_customer` to
2428
+ # specify your own organization.
2429
+ # Corresponds to the JSON property `customer`
2430
+ # @return [String]
2431
+ attr_accessor :customer
2432
+
2433
+ # Required. Immutable. OrgUnit where the membership will be moved to. Format:
2434
+ # orgUnits/`$orgUnitId` where `$orgUnitId` is the `orgUnitId` from the [Admin
2435
+ # SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/
2436
+ # reference/rest/v1/orgunits).
2437
+ # Corresponds to the JSON property `destinationOrgUnit`
2438
+ # @return [String]
2439
+ attr_accessor :destination_org_unit
2440
+
2441
+ def initialize(**args)
2442
+ update!(**args)
2443
+ end
2444
+
2445
+ # Update properties of this object
2446
+ def update!(**args)
2447
+ @customer = args[:customer] if args.key?(:customer)
2448
+ @destination_org_unit = args[:destination_org_unit] if args.key?(:destination_org_unit)
2449
+ end
2450
+ end
2451
+
2393
2452
  # This resource represents a long-running operation that is the result of a
2394
2453
  # network API call.
2395
2454
  class Operation
@@ -2452,6 +2511,60 @@ module Google
2452
2511
  end
2453
2512
  end
2454
2513
 
2514
+ # A membership in an OrgUnit. An `OrgMembership` defines a relationship between
2515
+ # an `OrgUnit` and an entity belonging to that `OrgUnit`, referred to as a "
2516
+ # member".
2517
+ class OrgMembership
2518
+ include Google::Apis::Core::Hashable
2519
+
2520
+ # Immutable. Org member id as full resource name. Format for shared drive
2521
+ # resource: //drive.googleapis.com/drives/`$memberId` where `$memberId` is the `
2522
+ # id` from [Drive API (V3) `Drive` resource](https://developers.google.com/drive/
2523
+ # api/v3/reference/drives#resource).
2524
+ # Corresponds to the JSON property `member`
2525
+ # @return [String]
2526
+ attr_accessor :member
2527
+
2528
+ # Uri with which you can read the member. This follows https://aip.dev/122
2529
+ # Format for shared drive resource: https://drive.googleapis.com/drive/v3/drives/
2530
+ # `$memberId` where `$memberId` is the `id` from [Drive API (V3) `Drive`
2531
+ # resource](https://developers.google.com/drive/api/v3/reference/drives#resource)
2532
+ # .
2533
+ # Corresponds to the JSON property `memberUri`
2534
+ # @return [String]
2535
+ attr_accessor :member_uri
2536
+
2537
+ # Required. Immutable. The [resource name](https://cloud.google.com/apis/design/
2538
+ # resource_names) of the OrgMembership. Format: orgUnits/`$orgUnitId`/
2539
+ # memberships/`$membership` The `$orgUnitId` is the `orgUnitId` from the [Admin
2540
+ # SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/
2541
+ # reference/rest/v1/orgunits). The `$membership` shall be of the form ``$
2542
+ # entityType`;`$memberId``, where `$entityType` is the enum value of [
2543
+ # OrgMembership.EntityType], and `memberId` is the `id` from [Drive API (V3) `
2544
+ # Drive` resource](https://developers.google.com/drive/api/v3/reference/drives#
2545
+ # resource) for OrgMembership.EntityType.SHARED_DRIVE.
2546
+ # Corresponds to the JSON property `name`
2547
+ # @return [String]
2548
+ attr_accessor :name
2549
+
2550
+ # Immutable. Entity type for the org member.
2551
+ # Corresponds to the JSON property `type`
2552
+ # @return [String]
2553
+ attr_accessor :type
2554
+
2555
+ def initialize(**args)
2556
+ update!(**args)
2557
+ end
2558
+
2559
+ # Update properties of this object
2560
+ def update!(**args)
2561
+ @member = args[:member] if args.key?(:member)
2562
+ @member_uri = args[:member_uri] if args.key?(:member_uri)
2563
+ @name = args[:name] if args.key?(:name)
2564
+ @type = args[:type] if args.key?(:type)
2565
+ end
2566
+ end
2567
+
2455
2568
  # POSIX Group definition to represent a group in a POSIX compliant system.
2456
2569
  class PosixGroup
2457
2570
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudidentityV1beta1
18
18
  # Version of the google-apis-cloudidentity_v1beta1 gem
19
- GEM_VERSION = "0.20.0"
19
+ GEM_VERSION = "0.21.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211207"
25
+ REVISION = "20220125"
26
26
  end
27
27
  end
28
28
  end
@@ -370,6 +370,12 @@ module Google
370
370
  include Google::Apis::Core::JsonObjectSupport
371
371
  end
372
372
 
373
+ class ListOrgMembershipsResponse
374
+ class Representation < Google::Apis::Core::JsonRepresentation; end
375
+
376
+ include Google::Apis::Core::JsonObjectSupport
377
+ end
378
+
373
379
  class ListUserInvitationsResponse
374
380
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
381
 
@@ -442,12 +448,24 @@ module Google
442
448
  include Google::Apis::Core::JsonObjectSupport
443
449
  end
444
450
 
451
+ class MoveOrgMembershipRequest
452
+ class Representation < Google::Apis::Core::JsonRepresentation; end
453
+
454
+ include Google::Apis::Core::JsonObjectSupport
455
+ end
456
+
445
457
  class Operation
446
458
  class Representation < Google::Apis::Core::JsonRepresentation; end
447
459
 
448
460
  include Google::Apis::Core::JsonObjectSupport
449
461
  end
450
462
 
463
+ class OrgMembership
464
+ class Representation < Google::Apis::Core::JsonRepresentation; end
465
+
466
+ include Google::Apis::Core::JsonObjectSupport
467
+ end
468
+
451
469
  class PosixGroup
452
470
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
471
 
@@ -1106,6 +1124,15 @@ module Google
1106
1124
  end
1107
1125
  end
1108
1126
 
1127
+ class ListOrgMembershipsResponse
1128
+ # @private
1129
+ class Representation < Google::Apis::Core::JsonRepresentation
1130
+ property :next_page_token, as: 'nextPageToken'
1131
+ collection :org_memberships, as: 'orgMemberships', class: Google::Apis::CloudidentityV1beta1::OrgMembership, decorator: Google::Apis::CloudidentityV1beta1::OrgMembership::Representation
1132
+
1133
+ end
1134
+ end
1135
+
1109
1136
  class ListUserInvitationsResponse
1110
1137
  # @private
1111
1138
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1221,6 +1248,14 @@ module Google
1221
1248
  end
1222
1249
  end
1223
1250
 
1251
+ class MoveOrgMembershipRequest
1252
+ # @private
1253
+ class Representation < Google::Apis::Core::JsonRepresentation
1254
+ property :customer, as: 'customer'
1255
+ property :destination_org_unit, as: 'destinationOrgUnit'
1256
+ end
1257
+ end
1258
+
1224
1259
  class Operation
1225
1260
  # @private
1226
1261
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1233,6 +1268,16 @@ module Google
1233
1268
  end
1234
1269
  end
1235
1270
 
1271
+ class OrgMembership
1272
+ # @private
1273
+ class Representation < Google::Apis::Core::JsonRepresentation
1274
+ property :member, as: 'member'
1275
+ property :member_uri, as: 'memberUri'
1276
+ property :name, as: 'name'
1277
+ property :type, as: 'type'
1278
+ end
1279
+ end
1280
+
1236
1281
  class PosixGroup
1237
1282
  # @private
1238
1283
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1658,6 +1658,111 @@ module Google
1658
1658
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1659
1659
  execute_or_queue_command(command, &block)
1660
1660
  end
1661
+
1662
+ # List OrgMembership resources in an OrgUnit treated as 'parent'. Parent format:
1663
+ # orgUnits/`$orgUnitId` where `$orgUnitId` is the `orgUnitId` from the [Admin
1664
+ # SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/
1665
+ # reference/rest/v1/orgunits)
1666
+ # @param [String] parent
1667
+ # Required. Immutable. OrgUnit which is queried for a list of memberships.
1668
+ # Format: orgUnits/`$orgUnitId` where `$orgUnitId` is the `orgUnitId` from the [
1669
+ # Admin SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/
1670
+ # directory/reference/rest/v1/orgunits).
1671
+ # @param [String] customer
1672
+ # Required. Immutable. Customer that this OrgMembership belongs to. All
1673
+ # authorization will happen on the role assignments of this customer. Format:
1674
+ # customers/`$customerId` where `$customerId` is the `id` from the [Admin SDK `
1675
+ # Customer` resource](https://developers.google.com/admin-sdk/directory/
1676
+ # reference/rest/v1/customers). You may also use `customers/my_customer` to
1677
+ # specify your own organization.
1678
+ # @param [String] filter
1679
+ # The search query. Must be specified in [Common Expression Language](https://
1680
+ # opensource.google/projects/cel). May only contain equality operators on the `
1681
+ # type` (e.g., `type == 'shared_drive'`).
1682
+ # @param [Fixnum] page_size
1683
+ # The maximum number of results to return. The service may return fewer than
1684
+ # this value. If omitted (or defaulted to zero) the server will default to 50.
1685
+ # The maximum allowed value is 100, though requests with page_size greater than
1686
+ # that will be silently interpreted as 100.
1687
+ # @param [String] page_token
1688
+ # A page token, received from a previous `OrgMembershipsService.
1689
+ # ListOrgMemberships` call. Provide this to retrieve the subsequent page. When
1690
+ # paginating, all other parameters provided to `ListOrgMembershipsRequest` must
1691
+ # match the call that provided the page token.
1692
+ # @param [String] fields
1693
+ # Selector specifying which fields to include in a partial response.
1694
+ # @param [String] quota_user
1695
+ # Available to use for quota purposes for server-side applications. Can be any
1696
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1697
+ # @param [Google::Apis::RequestOptions] options
1698
+ # Request-specific options
1699
+ #
1700
+ # @yield [result, err] Result & error if block supplied
1701
+ # @yieldparam result [Google::Apis::CloudidentityV1beta1::ListOrgMembershipsResponse] parsed result object
1702
+ # @yieldparam err [StandardError] error object if request failed
1703
+ #
1704
+ # @return [Google::Apis::CloudidentityV1beta1::ListOrgMembershipsResponse]
1705
+ #
1706
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1707
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1708
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1709
+ def list_org_unit_memberships(parent, customer: nil, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1710
+ command = make_simple_command(:get, 'v1beta1/{+parent}/memberships', options)
1711
+ command.response_representation = Google::Apis::CloudidentityV1beta1::ListOrgMembershipsResponse::Representation
1712
+ command.response_class = Google::Apis::CloudidentityV1beta1::ListOrgMembershipsResponse
1713
+ command.params['parent'] = parent unless parent.nil?
1714
+ command.query['customer'] = customer unless customer.nil?
1715
+ command.query['filter'] = filter unless filter.nil?
1716
+ command.query['pageSize'] = page_size unless page_size.nil?
1717
+ command.query['pageToken'] = page_token unless page_token.nil?
1718
+ command.query['fields'] = fields unless fields.nil?
1719
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1720
+ execute_or_queue_command(command, &block)
1721
+ end
1722
+
1723
+ # Move an OrgMembership to a new OrgUnit. NOTE: This is an atomic copy-and-
1724
+ # delete. The resource will have a new copy under the destination OrgUnit and be
1725
+ # deleted from the source OrgUnit. The resource can only be searched under the
1726
+ # destination OrgUnit afterwards.
1727
+ # @param [String] name
1728
+ # Required. Immutable. The [resource name](https://cloud.google.com/apis/design/
1729
+ # resource_names) of the OrgMembership. Format: orgUnits/`$orgUnitId`/
1730
+ # memberships/`$membership` The `$orgUnitId` is the `orgUnitId` from the [Admin
1731
+ # SDK `OrgUnit` resource](https://developers.google.com/admin-sdk/directory/
1732
+ # reference/rest/v1/orgunits), The `$membership` shall be of the form ``$
1733
+ # entityType`;`$memberId``, where `$entityType` is the enum value of
1734
+ # OrgMembership.EntityType, and `memberId` is the `id` from [Drive API (V3) `
1735
+ # Drive` resource](https://developers.google.com/drive/api/v3/reference/drives#
1736
+ # resource) for OrgMembership.EntityType.SHARED_DRIVE.
1737
+ # @param [Google::Apis::CloudidentityV1beta1::MoveOrgMembershipRequest] move_org_membership_request_object
1738
+ # @param [String] fields
1739
+ # Selector specifying which fields to include in a partial response.
1740
+ # @param [String] quota_user
1741
+ # Available to use for quota purposes for server-side applications. Can be any
1742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1743
+ # @param [Google::Apis::RequestOptions] options
1744
+ # Request-specific options
1745
+ #
1746
+ # @yield [result, err] Result & error if block supplied
1747
+ # @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
1748
+ # @yieldparam err [StandardError] error object if request failed
1749
+ #
1750
+ # @return [Google::Apis::CloudidentityV1beta1::Operation]
1751
+ #
1752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1755
+ def move_org_membership(name, move_org_membership_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1756
+ command = make_simple_command(:post, 'v1beta1/{+name}:move', options)
1757
+ command.request_representation = Google::Apis::CloudidentityV1beta1::MoveOrgMembershipRequest::Representation
1758
+ command.request_object = move_org_membership_request_object
1759
+ command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
1760
+ command.response_class = Google::Apis::CloudidentityV1beta1::Operation
1761
+ command.params['name'] = name unless name.nil?
1762
+ command.query['fields'] = fields unless fields.nil?
1763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1764
+ execute_or_queue_command(command, &block)
1765
+ end
1661
1766
 
1662
1767
  protected
1663
1768
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudidentity_v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.0
4
+ version: 0.21.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-01-10 00:00:00.000000000 Z
11
+ date: 2022-01-31 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-cloudidentity_v1beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1beta1/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1beta1/v0.21.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudidentity_v1beta1
63
63
  post_install_message:
64
64
  rdoc_options: []
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubygems_version: 3.3.4
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Identity API V1beta1