google-apis-cloudidentity_v1 0.1.0 → 0.2.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: bbde5fa16b87c88394e688744ad642450fd0c2936979e061edbb6373ebc1ed7d
4
- data.tar.gz: 9664b292e9ffa7cb54cf1efe9a104b3134e228a727c15419f2fc6b917adb7bc9
3
+ metadata.gz: 35ba532c55d3b01efa2762c4caa697fb3156cd42b03c1f95a96cff44de93a6ae
4
+ data.tar.gz: ee97e0543c70119e951ac2988388c4fba2d9fddc456129640b57a8d80d875946
5
5
  SHA512:
6
- metadata.gz: 12e98aa22ce50a97e0e7dabec07e7e96de51e831323fa55c362514df65c4bfe5a8834879af22dacf75547c4bc0a6555a113e668211d431d08c2842be2bd1f52d
7
- data.tar.gz: 56a8779c385142aaa0cf039c792dd93be44ea8fd24ff6d73f67f28aa8dd3023aa08685fcbb00483bcfac9783ca481d94ff1acb39a9917e4095413b4dc8f3421b
6
+ metadata.gz: b920e101afdc15897591afd68f4452daa15c1df55104702611d8f838327be0113836b9ff5ac38861a8326db5bc29e423760b136cf1f6c379f689199b54ec825b
7
+ data.tar.gz: 1ce4c1f4d02eb16d359c2fb22cae0aee5d3f37e15ccccf7838ef95d6876ad31916acc20db27fa930694a6fbfaf1b02093aa6e9af3805e5be9e038929ed86df4a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-cloudidentity_v1
2
2
 
3
+ ### v0.2.0 (2021-01-29)
4
+
5
+ * Regenerated from discovery document revision 20210124
6
+ * Regenerated using generator version 0.1.2
7
+
3
8
  ### v0.1.0 (2021-01-07)
4
9
 
5
10
  * Regenerated using generator version 0.1.1
@@ -45,6 +45,89 @@ module Google
45
45
  end
46
46
  end
47
47
 
48
+ # Dynamic group metadata like queries and status.
49
+ class DynamicGroupMetadata
50
+ include Google::Apis::Core::Hashable
51
+
52
+ # Memberships will be the union of all queries. Only one entry with USER
53
+ # resource is currently supported. Customers can create up to 100 dynamic groups.
54
+ # Corresponds to the JSON property `queries`
55
+ # @return [Array<Google::Apis::CloudidentityV1::DynamicGroupQuery>]
56
+ attr_accessor :queries
57
+
58
+ # The current status of a dynamic group along with timestamp.
59
+ # Corresponds to the JSON property `status`
60
+ # @return [Google::Apis::CloudidentityV1::DynamicGroupStatus]
61
+ attr_accessor :status
62
+
63
+ def initialize(**args)
64
+ update!(**args)
65
+ end
66
+
67
+ # Update properties of this object
68
+ def update!(**args)
69
+ @queries = args[:queries] if args.key?(:queries)
70
+ @status = args[:status] if args.key?(:status)
71
+ end
72
+ end
73
+
74
+ # Defines a query on a resource.
75
+ class DynamicGroupQuery
76
+ include Google::Apis::Core::Hashable
77
+
78
+ # Query that determines the memberships of the dynamic group. Examples: All
79
+ # users with at least one `organizations.department` of engineering. `user.
80
+ # organizations.exists(org, org.department=='engineering')` All users with at
81
+ # least one location that has `area` of `foo` and `building_id` of `bar`. `user.
82
+ # locations.exists(loc, loc.area=='foo' && loc.building_id=='bar')`
83
+ # Corresponds to the JSON property `query`
84
+ # @return [String]
85
+ attr_accessor :query
86
+
87
+ # Resource type for the Dynamic Group Query
88
+ # Corresponds to the JSON property `resourceType`
89
+ # @return [String]
90
+ attr_accessor :resource_type
91
+
92
+ def initialize(**args)
93
+ update!(**args)
94
+ end
95
+
96
+ # Update properties of this object
97
+ def update!(**args)
98
+ @query = args[:query] if args.key?(:query)
99
+ @resource_type = args[:resource_type] if args.key?(:resource_type)
100
+ end
101
+ end
102
+
103
+ # The current status of a dynamic group along with timestamp.
104
+ class DynamicGroupStatus
105
+ include Google::Apis::Core::Hashable
106
+
107
+ # Status of the dynamic group.
108
+ # Corresponds to the JSON property `status`
109
+ # @return [String]
110
+ attr_accessor :status
111
+
112
+ # The latest time at which the dynamic group is guaranteed to be in the given
113
+ # status. If status is `UP_TO_DATE`, the latest time at which the dynamic group
114
+ # was confirmed to be up-to-date. If status is `UPDATING_MEMBERSHIPS`, the time
115
+ # at which dynamic group was created.
116
+ # Corresponds to the JSON property `statusTime`
117
+ # @return [String]
118
+ attr_accessor :status_time
119
+
120
+ def initialize(**args)
121
+ update!(**args)
122
+ end
123
+
124
+ # Update properties of this object
125
+ def update!(**args)
126
+ @status = args[:status] if args.key?(:status)
127
+ @status_time = args[:status_time] if args.key?(:status_time)
128
+ end
129
+ end
130
+
48
131
  # A unique identifier for an entity in the Cloud Identity Groups API. An entity
49
132
  # can represent either a group with an optional `namespace` or a user without a `
50
133
  # namespace`. The combination of `id` and `namespace` must be unique; however,
@@ -80,6 +163,25 @@ module Google
80
163
  end
81
164
  end
82
165
 
166
+ # The `MembershipRole` expiry details.
167
+ class ExpiryDetail
168
+ include Google::Apis::Core::Hashable
169
+
170
+ # The time at which the `MembershipRole` will expire.
171
+ # Corresponds to the JSON property `expireTime`
172
+ # @return [String]
173
+ attr_accessor :expire_time
174
+
175
+ def initialize(**args)
176
+ update!(**args)
177
+ end
178
+
179
+ # Update properties of this object
180
+ def update!(**args)
181
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
182
+ end
183
+ end
184
+
83
185
  # The response message for MembershipsService.GetMembershipGraph.
84
186
  class GetMembershipGraphResponse
85
187
  include Google::Apis::Core::Hashable
@@ -951,6 +1053,11 @@ module Google
951
1053
  # @return [String]
952
1054
  attr_accessor :display_name
953
1055
 
1056
+ # Dynamic group metadata like queries and status.
1057
+ # Corresponds to the JSON property `dynamicGroupMetadata`
1058
+ # @return [Google::Apis::CloudidentityV1::DynamicGroupMetadata]
1059
+ attr_accessor :dynamic_group_metadata
1060
+
954
1061
  # A unique identifier for an entity in the Cloud Identity Groups API. An entity
955
1062
  # can represent either a group with an optional `namespace` or a user without a `
956
1063
  # namespace`. The combination of `id` and `namespace` must be unique; however,
@@ -1002,6 +1109,7 @@ module Google
1002
1109
  @create_time = args[:create_time] if args.key?(:create_time)
1003
1110
  @description = args[:description] if args.key?(:description)
1004
1111
  @display_name = args[:display_name] if args.key?(:display_name)
1112
+ @dynamic_group_metadata = args[:dynamic_group_metadata] if args.key?(:dynamic_group_metadata)
1005
1113
  @group_key = args[:group_key] if args.key?(:group_key)
1006
1114
  @labels = args[:labels] if args.key?(:labels)
1007
1115
  @name = args[:name] if args.key?(:name)
@@ -1284,6 +1392,11 @@ module Google
1284
1392
  class MembershipRole
1285
1393
  include Google::Apis::Core::Hashable
1286
1394
 
1395
+ # The `MembershipRole` expiry details.
1396
+ # Corresponds to the JSON property `expiryDetail`
1397
+ # @return [Google::Apis::CloudidentityV1::ExpiryDetail]
1398
+ attr_accessor :expiry_detail
1399
+
1287
1400
  # The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`.
1288
1401
  # Corresponds to the JSON property `name`
1289
1402
  # @return [String]
@@ -1295,6 +1408,7 @@ module Google
1295
1408
 
1296
1409
  # Update properties of this object
1297
1410
  def update!(**args)
1411
+ @expiry_detail = args[:expiry_detail] if args.key?(:expiry_detail)
1298
1412
  @name = args[:name] if args.key?(:name)
1299
1413
  end
1300
1414
  end
@@ -1319,6 +1433,13 @@ module Google
1319
1433
  # @return [Array<String>]
1320
1434
  attr_accessor :remove_roles
1321
1435
 
1436
+ # The `MembershipRole`s to be updated. Updating roles in the same request as
1437
+ # adding or removing roles is not supported. Must not be set if either `
1438
+ # add_roles` or `remove_roles` is set.
1439
+ # Corresponds to the JSON property `updateRolesParams`
1440
+ # @return [Array<Google::Apis::CloudidentityV1::UpdateMembershipRolesParams>]
1441
+ attr_accessor :update_roles_params
1442
+
1322
1443
  def initialize(**args)
1323
1444
  update!(**args)
1324
1445
  end
@@ -1327,6 +1448,7 @@ module Google
1327
1448
  def update!(**args)
1328
1449
  @add_roles = args[:add_roles] if args.key?(:add_roles)
1329
1450
  @remove_roles = args[:remove_roles] if args.key?(:remove_roles)
1451
+ @update_roles_params = args[:update_roles_params] if args.key?(:update_roles_params)
1330
1452
  end
1331
1453
  end
1332
1454
 
@@ -1549,6 +1671,71 @@ module Google
1549
1671
  @role = args[:role] if args.key?(:role)
1550
1672
  end
1551
1673
  end
1674
+
1675
+ # The details of an update to a `MembershipRole`.
1676
+ class UpdateMembershipRolesParams
1677
+ include Google::Apis::Core::Hashable
1678
+
1679
+ # The fully-qualified names of fields to update. May only contain the field `
1680
+ # expiry_detail`.
1681
+ # Corresponds to the JSON property `fieldMask`
1682
+ # @return [String]
1683
+ attr_accessor :field_mask
1684
+
1685
+ # A membership role within the Cloud Identity Groups API. A `MembershipRole`
1686
+ # defines the privileges granted to a `Membership`.
1687
+ # Corresponds to the JSON property `membershipRole`
1688
+ # @return [Google::Apis::CloudidentityV1::MembershipRole]
1689
+ attr_accessor :membership_role
1690
+
1691
+ def initialize(**args)
1692
+ update!(**args)
1693
+ end
1694
+
1695
+ # Update properties of this object
1696
+ def update!(**args)
1697
+ @field_mask = args[:field_mask] if args.key?(:field_mask)
1698
+ @membership_role = args[:membership_role] if args.key?(:membership_role)
1699
+ end
1700
+ end
1701
+
1702
+ # UserInvitation to join a Google Workspace organization.
1703
+ class UserInvitation
1704
+ include Google::Apis::Core::Hashable
1705
+
1706
+ # Number of invitation emails sent to the user.
1707
+ # Corresponds to the JSON property `mailsSentCount`
1708
+ # @return [Fixnum]
1709
+ attr_accessor :mails_sent_count
1710
+
1711
+ # Shall be of the form `customers/`customer`/userinvitations/`user_email_address`
1712
+ # `
1713
+ # Corresponds to the JSON property `name`
1714
+ # @return [String]
1715
+ attr_accessor :name
1716
+
1717
+ # State of the `UserInvitation`.
1718
+ # Corresponds to the JSON property `state`
1719
+ # @return [String]
1720
+ attr_accessor :state
1721
+
1722
+ # Time when the `UserInvitation` was last updated.
1723
+ # Corresponds to the JSON property `updateTime`
1724
+ # @return [String]
1725
+ attr_accessor :update_time
1726
+
1727
+ def initialize(**args)
1728
+ update!(**args)
1729
+ end
1730
+
1731
+ # Update properties of this object
1732
+ def update!(**args)
1733
+ @mails_sent_count = args[:mails_sent_count] if args.key?(:mails_sent_count)
1734
+ @name = args[:name] if args.key?(:name)
1735
+ @state = args[:state] if args.key?(:state)
1736
+ @update_time = args[:update_time] if args.key?(:update_time)
1737
+ end
1738
+ end
1552
1739
  end
1553
1740
  end
1554
1741
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module CloudidentityV1
18
18
  # Version of the google-apis-cloudidentity_v1 gem
19
- GEM_VERSION = "0.1.0"
19
+ GEM_VERSION = "0.2.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.1.1"
22
+ GENERATOR_VERSION = "0.1.2"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20201208"
25
+ REVISION = "20210124"
26
26
  end
27
27
  end
28
28
  end
@@ -28,12 +28,36 @@ module Google
28
28
  include Google::Apis::Core::JsonObjectSupport
29
29
  end
30
30
 
31
+ class DynamicGroupMetadata
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class DynamicGroupQuery
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class DynamicGroupStatus
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
31
49
  class EntityKey
32
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
33
51
 
34
52
  include Google::Apis::Core::JsonObjectSupport
35
53
  end
36
54
 
55
+ class ExpiryDetail
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
37
61
  class GetMembershipGraphResponse
38
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
63
 
@@ -274,6 +298,18 @@ module Google
274
298
  include Google::Apis::Core::JsonObjectSupport
275
299
  end
276
300
 
301
+ class UpdateMembershipRolesParams
302
+ class Representation < Google::Apis::Core::JsonRepresentation; end
303
+
304
+ include Google::Apis::Core::JsonObjectSupport
305
+ end
306
+
307
+ class UserInvitation
308
+ class Representation < Google::Apis::Core::JsonRepresentation; end
309
+
310
+ include Google::Apis::Core::JsonObjectSupport
311
+ end
312
+
277
313
  class CheckTransitiveMembershipResponse
278
314
  # @private
279
315
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -281,6 +317,32 @@ module Google
281
317
  end
282
318
  end
283
319
 
320
+ class DynamicGroupMetadata
321
+ # @private
322
+ class Representation < Google::Apis::Core::JsonRepresentation
323
+ collection :queries, as: 'queries', class: Google::Apis::CloudidentityV1::DynamicGroupQuery, decorator: Google::Apis::CloudidentityV1::DynamicGroupQuery::Representation
324
+
325
+ property :status, as: 'status', class: Google::Apis::CloudidentityV1::DynamicGroupStatus, decorator: Google::Apis::CloudidentityV1::DynamicGroupStatus::Representation
326
+
327
+ end
328
+ end
329
+
330
+ class DynamicGroupQuery
331
+ # @private
332
+ class Representation < Google::Apis::Core::JsonRepresentation
333
+ property :query, as: 'query'
334
+ property :resource_type, as: 'resourceType'
335
+ end
336
+ end
337
+
338
+ class DynamicGroupStatus
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :status, as: 'status'
342
+ property :status_time, as: 'statusTime'
343
+ end
344
+ end
345
+
284
346
  class EntityKey
285
347
  # @private
286
348
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -289,6 +351,13 @@ module Google
289
351
  end
290
352
  end
291
353
 
354
+ class ExpiryDetail
355
+ # @private
356
+ class Representation < Google::Apis::Core::JsonRepresentation
357
+ property :expire_time, as: 'expireTime'
358
+ end
359
+ end
360
+
292
361
  class GetMembershipGraphResponse
293
362
  # @private
294
363
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -520,6 +589,8 @@ module Google
520
589
  property :create_time, as: 'createTime'
521
590
  property :description, as: 'description'
522
591
  property :display_name, as: 'displayName'
592
+ property :dynamic_group_metadata, as: 'dynamicGroupMetadata', class: Google::Apis::CloudidentityV1::DynamicGroupMetadata, decorator: Google::Apis::CloudidentityV1::DynamicGroupMetadata::Representation
593
+
523
594
  property :group_key, as: 'groupKey', class: Google::Apis::CloudidentityV1::EntityKey, decorator: Google::Apis::CloudidentityV1::EntityKey::Representation
524
595
 
525
596
  hash :labels, as: 'labels'
@@ -613,6 +684,8 @@ module Google
613
684
  class MembershipRole
614
685
  # @private
615
686
  class Representation < Google::Apis::Core::JsonRepresentation
687
+ property :expiry_detail, as: 'expiryDetail', class: Google::Apis::CloudidentityV1::ExpiryDetail, decorator: Google::Apis::CloudidentityV1::ExpiryDetail::Representation
688
+
616
689
  property :name, as: 'name'
617
690
  end
618
691
  end
@@ -623,6 +696,8 @@ module Google
623
696
  collection :add_roles, as: 'addRoles', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation
624
697
 
625
698
  collection :remove_roles, as: 'removeRoles'
699
+ collection :update_roles_params, as: 'updateRolesParams', class: Google::Apis::CloudidentityV1::UpdateMembershipRolesParams, decorator: Google::Apis::CloudidentityV1::UpdateMembershipRolesParams::Representation
700
+
626
701
  end
627
702
  end
628
703
 
@@ -688,6 +763,25 @@ module Google
688
763
  property :role, as: 'role'
689
764
  end
690
765
  end
766
+
767
+ class UpdateMembershipRolesParams
768
+ # @private
769
+ class Representation < Google::Apis::Core::JsonRepresentation
770
+ property :field_mask, as: 'fieldMask'
771
+ property :membership_role, as: 'membershipRole', class: Google::Apis::CloudidentityV1::MembershipRole, decorator: Google::Apis::CloudidentityV1::MembershipRole::Representation
772
+
773
+ end
774
+ end
775
+
776
+ class UserInvitation
777
+ # @private
778
+ class Representation < Google::Apis::Core::JsonRepresentation
779
+ property :mails_sent_count, :numeric_string => true, as: 'mailsSentCount'
780
+ property :name, as: 'name'
781
+ property :state, as: 'state'
782
+ property :update_time, as: 'updateTime'
783
+ end
784
+ end
691
785
  end
692
786
  end
693
787
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-cloudidentity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.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: 2021-01-08 00:00:00.000000000 Z
11
+ date: 2021-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -52,7 +52,7 @@ licenses:
52
52
  metadata:
53
53
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
54
54
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudidentity_v1/CHANGELOG.md
55
- documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1/v0.1.0
55
+ documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1/v0.2.0
56
56
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudidentity_v1
57
57
  post_install_message:
58
58
  rdoc_options: []
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  requirements: []
72
- rubygems_version: 3.1.4
72
+ rubygems_version: 3.2.6
73
73
  signing_key:
74
74
  specification_version: 4
75
75
  summary: Simple REST client for Cloud Identity API V1