google-apis-cloudidentity_v1beta1 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/cloudidentity_v1beta1/classes.rb +122 -0
- data/lib/google/apis/cloudidentity_v1beta1/gem_version.rb +2 -2
- data/lib/google/apis/cloudidentity_v1beta1/representations.rb +72 -0
- data/lib/google/apis/cloudidentity_v1beta1/service.rb +74 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 216be1760e71174e3fb09566f95a27e20287de15f06485d3f3df3f1320fbd421
|
4
|
+
data.tar.gz: 2fac8d974e9ddbef7ccab2e72ddb2b83d48f5e0d0dc39b7ef23e2d9d18782d58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4dee61002c6e6191f4d76f45850ec33bd12b63847a4f2a8cf701cb2b78e0195277ae93e34b403cc658e32af2f7405fcb4c7a6693a8c7b4d2ad26fc80472a599d
|
7
|
+
data.tar.gz: 6c612bc61c64a9b6c3d6b70cc4d5751ba8a8a19c1a2e5f1e9290436cfaea0040cdd5ebb7dda9ef625db92d38f8059e60854c2c8fecb9ae74e6e0e8d63a2a1127
|
data/CHANGELOG.md
CHANGED
@@ -1999,6 +1999,39 @@ module Google
|
|
1999
1999
|
end
|
2000
2000
|
end
|
2001
2001
|
|
2002
|
+
# The definition of MemberRestriction
|
2003
|
+
class MemberRestriction
|
2004
|
+
include Google::Apis::Core::Hashable
|
2005
|
+
|
2006
|
+
# The evaluated state of this restriction.
|
2007
|
+
# Corresponds to the JSON property `evaluation`
|
2008
|
+
# @return [Google::Apis::CloudidentityV1beta1::RestrictionEvaluation]
|
2009
|
+
attr_accessor :evaluation
|
2010
|
+
|
2011
|
+
# Member Restriction as defined by CEL expression. Supported restrictions are: `
|
2012
|
+
# member.customer_id` and `member.type`. Valid values for `member.type` are `1`,
|
2013
|
+
# `2` and `3`. They correspond to USER, SERVICE_ACCOUNT, and GROUP respectively.
|
2014
|
+
# The value for `member.customer_id` only supports `groupCustomerId()` currently
|
2015
|
+
# which means the customer id of the group will be used for restriction.
|
2016
|
+
# Supported operators are `&&`, `||` and `==`, corresponding to AND, OR, and
|
2017
|
+
# EQUAL. Examples: Allow only service accounts of given customer to be members. `
|
2018
|
+
# member.type == 2 && member.customer_id == groupCustomerId()` Allow only users
|
2019
|
+
# or groups to be members. `member.type == 1 || member.type == 3`
|
2020
|
+
# Corresponds to the JSON property `query`
|
2021
|
+
# @return [String]
|
2022
|
+
attr_accessor :query
|
2023
|
+
|
2024
|
+
def initialize(**args)
|
2025
|
+
update!(**args)
|
2026
|
+
end
|
2027
|
+
|
2028
|
+
# Update properties of this object
|
2029
|
+
def update!(**args)
|
2030
|
+
@evaluation = args[:evaluation] if args.key?(:evaluation)
|
2031
|
+
@query = args[:query] if args.key?(:query)
|
2032
|
+
end
|
2033
|
+
end
|
2034
|
+
|
2002
2035
|
# A membership within the Cloud Identity Groups API. A `Membership` defines a
|
2003
2036
|
# relationship between a `Group` and an entity belonging to that `Group`,
|
2004
2037
|
# referred to as a "member".
|
@@ -2109,6 +2142,11 @@ module Google
|
|
2109
2142
|
# @return [String]
|
2110
2143
|
attr_accessor :name
|
2111
2144
|
|
2145
|
+
# Evaluations of restrictions applied to parent group on this membership.
|
2146
|
+
# Corresponds to the JSON property `restrictionEvaluations`
|
2147
|
+
# @return [Google::Apis::CloudidentityV1beta1::RestrictionEvaluations]
|
2148
|
+
attr_accessor :restriction_evaluations
|
2149
|
+
|
2112
2150
|
def initialize(**args)
|
2113
2151
|
update!(**args)
|
2114
2152
|
end
|
@@ -2117,6 +2155,26 @@ module Google
|
|
2117
2155
|
def update!(**args)
|
2118
2156
|
@expiry_detail = args[:expiry_detail] if args.key?(:expiry_detail)
|
2119
2157
|
@name = args[:name] if args.key?(:name)
|
2158
|
+
@restriction_evaluations = args[:restriction_evaluations] if args.key?(:restriction_evaluations)
|
2159
|
+
end
|
2160
|
+
end
|
2161
|
+
|
2162
|
+
# The evaluated state of this restriction.
|
2163
|
+
class MembershipRoleRestrictionEvaluation
|
2164
|
+
include Google::Apis::Core::Hashable
|
2165
|
+
|
2166
|
+
# Output only. The current state of the restriction
|
2167
|
+
# Corresponds to the JSON property `state`
|
2168
|
+
# @return [String]
|
2169
|
+
attr_accessor :state
|
2170
|
+
|
2171
|
+
def initialize(**args)
|
2172
|
+
update!(**args)
|
2173
|
+
end
|
2174
|
+
|
2175
|
+
# Update properties of this object
|
2176
|
+
def update!(**args)
|
2177
|
+
@state = args[:state] if args.key?(:state)
|
2120
2178
|
end
|
2121
2179
|
end
|
2122
2180
|
|
@@ -2274,6 +2332,44 @@ module Google
|
|
2274
2332
|
end
|
2275
2333
|
end
|
2276
2334
|
|
2335
|
+
# The evaluated state of this restriction.
|
2336
|
+
class RestrictionEvaluation
|
2337
|
+
include Google::Apis::Core::Hashable
|
2338
|
+
|
2339
|
+
# Output only. The current state of the restriction
|
2340
|
+
# Corresponds to the JSON property `state`
|
2341
|
+
# @return [String]
|
2342
|
+
attr_accessor :state
|
2343
|
+
|
2344
|
+
def initialize(**args)
|
2345
|
+
update!(**args)
|
2346
|
+
end
|
2347
|
+
|
2348
|
+
# Update properties of this object
|
2349
|
+
def update!(**args)
|
2350
|
+
@state = args[:state] if args.key?(:state)
|
2351
|
+
end
|
2352
|
+
end
|
2353
|
+
|
2354
|
+
# Evaluations of restrictions applied to parent group on this membership.
|
2355
|
+
class RestrictionEvaluations
|
2356
|
+
include Google::Apis::Core::Hashable
|
2357
|
+
|
2358
|
+
# The evaluated state of this restriction.
|
2359
|
+
# Corresponds to the JSON property `memberRestrictionEvaluation`
|
2360
|
+
# @return [Google::Apis::CloudidentityV1beta1::MembershipRoleRestrictionEvaluation]
|
2361
|
+
attr_accessor :member_restriction_evaluation
|
2362
|
+
|
2363
|
+
def initialize(**args)
|
2364
|
+
update!(**args)
|
2365
|
+
end
|
2366
|
+
|
2367
|
+
# Update properties of this object
|
2368
|
+
def update!(**args)
|
2369
|
+
@member_restriction_evaluation = args[:member_restriction_evaluation] if args.key?(:member_restriction_evaluation)
|
2370
|
+
end
|
2371
|
+
end
|
2372
|
+
|
2277
2373
|
# The response message for GroupsService.SearchGroups.
|
2278
2374
|
class SearchGroupsResponse
|
2279
2375
|
include Google::Apis::Core::Hashable
|
@@ -2352,6 +2448,32 @@ module Google
|
|
2352
2448
|
end
|
2353
2449
|
end
|
2354
2450
|
|
2451
|
+
# The definiion of security settings.
|
2452
|
+
class SecuritySettings
|
2453
|
+
include Google::Apis::Core::Hashable
|
2454
|
+
|
2455
|
+
# The definition of MemberRestriction
|
2456
|
+
# Corresponds to the JSON property `memberRestriction`
|
2457
|
+
# @return [Google::Apis::CloudidentityV1beta1::MemberRestriction]
|
2458
|
+
attr_accessor :member_restriction
|
2459
|
+
|
2460
|
+
# Output only. The resource name of the security settings. Shall be of the form `
|
2461
|
+
# groups/`group_id`/securitySettings`.
|
2462
|
+
# Corresponds to the JSON property `name`
|
2463
|
+
# @return [String]
|
2464
|
+
attr_accessor :name
|
2465
|
+
|
2466
|
+
def initialize(**args)
|
2467
|
+
update!(**args)
|
2468
|
+
end
|
2469
|
+
|
2470
|
+
# Update properties of this object
|
2471
|
+
def update!(**args)
|
2472
|
+
@member_restriction = args[:member_restriction] if args.key?(:member_restriction)
|
2473
|
+
@name = args[:name] if args.key?(:name)
|
2474
|
+
end
|
2475
|
+
end
|
2476
|
+
|
2355
2477
|
# A request to send email for inviting target user corresponding to the
|
2356
2478
|
# UserInvitation.
|
2357
2479
|
class SendUserInvitationRequest
|
@@ -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.
|
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.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210928"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -376,6 +376,12 @@ module Google
|
|
376
376
|
include Google::Apis::Core::JsonObjectSupport
|
377
377
|
end
|
378
378
|
|
379
|
+
class MemberRestriction
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
|
+
|
382
|
+
include Google::Apis::Core::JsonObjectSupport
|
383
|
+
end
|
384
|
+
|
379
385
|
class Membership
|
380
386
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
387
|
|
@@ -394,6 +400,12 @@ module Google
|
|
394
400
|
include Google::Apis::Core::JsonObjectSupport
|
395
401
|
end
|
396
402
|
|
403
|
+
class MembershipRoleRestrictionEvaluation
|
404
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
405
|
+
|
406
|
+
include Google::Apis::Core::JsonObjectSupport
|
407
|
+
end
|
408
|
+
|
397
409
|
class ModifyMembershipRolesRequest
|
398
410
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
411
|
|
@@ -418,6 +430,18 @@ module Google
|
|
418
430
|
include Google::Apis::Core::JsonObjectSupport
|
419
431
|
end
|
420
432
|
|
433
|
+
class RestrictionEvaluation
|
434
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
435
|
+
|
436
|
+
include Google::Apis::Core::JsonObjectSupport
|
437
|
+
end
|
438
|
+
|
439
|
+
class RestrictionEvaluations
|
440
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
|
+
|
442
|
+
include Google::Apis::Core::JsonObjectSupport
|
443
|
+
end
|
444
|
+
|
421
445
|
class SearchGroupsResponse
|
422
446
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
447
|
|
@@ -436,6 +460,12 @@ module Google
|
|
436
460
|
include Google::Apis::Core::JsonObjectSupport
|
437
461
|
end
|
438
462
|
|
463
|
+
class SecuritySettings
|
464
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
|
+
|
466
|
+
include Google::Apis::Core::JsonObjectSupport
|
467
|
+
end
|
468
|
+
|
439
469
|
class SendUserInvitationRequest
|
440
470
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
441
471
|
|
@@ -1053,6 +1083,15 @@ module Google
|
|
1053
1083
|
end
|
1054
1084
|
end
|
1055
1085
|
|
1086
|
+
class MemberRestriction
|
1087
|
+
# @private
|
1088
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1089
|
+
property :evaluation, as: 'evaluation', class: Google::Apis::CloudidentityV1beta1::RestrictionEvaluation, decorator: Google::Apis::CloudidentityV1beta1::RestrictionEvaluation::Representation
|
1090
|
+
|
1091
|
+
property :query, as: 'query'
|
1092
|
+
end
|
1093
|
+
end
|
1094
|
+
|
1056
1095
|
class Membership
|
1057
1096
|
# @private
|
1058
1097
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1084,6 +1123,15 @@ module Google
|
|
1084
1123
|
property :expiry_detail, as: 'expiryDetail', class: Google::Apis::CloudidentityV1beta1::ExpiryDetail, decorator: Google::Apis::CloudidentityV1beta1::ExpiryDetail::Representation
|
1085
1124
|
|
1086
1125
|
property :name, as: 'name'
|
1126
|
+
property :restriction_evaluations, as: 'restrictionEvaluations', class: Google::Apis::CloudidentityV1beta1::RestrictionEvaluations, decorator: Google::Apis::CloudidentityV1beta1::RestrictionEvaluations::Representation
|
1127
|
+
|
1128
|
+
end
|
1129
|
+
end
|
1130
|
+
|
1131
|
+
class MembershipRoleRestrictionEvaluation
|
1132
|
+
# @private
|
1133
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1134
|
+
property :state, as: 'state'
|
1087
1135
|
end
|
1088
1136
|
end
|
1089
1137
|
|
@@ -1127,6 +1175,21 @@ module Google
|
|
1127
1175
|
end
|
1128
1176
|
end
|
1129
1177
|
|
1178
|
+
class RestrictionEvaluation
|
1179
|
+
# @private
|
1180
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1181
|
+
property :state, as: 'state'
|
1182
|
+
end
|
1183
|
+
end
|
1184
|
+
|
1185
|
+
class RestrictionEvaluations
|
1186
|
+
# @private
|
1187
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1188
|
+
property :member_restriction_evaluation, as: 'memberRestrictionEvaluation', class: Google::Apis::CloudidentityV1beta1::MembershipRoleRestrictionEvaluation, decorator: Google::Apis::CloudidentityV1beta1::MembershipRoleRestrictionEvaluation::Representation
|
1189
|
+
|
1190
|
+
end
|
1191
|
+
end
|
1192
|
+
|
1130
1193
|
class SearchGroupsResponse
|
1131
1194
|
# @private
|
1132
1195
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1154,6 +1217,15 @@ module Google
|
|
1154
1217
|
end
|
1155
1218
|
end
|
1156
1219
|
|
1220
|
+
class SecuritySettings
|
1221
|
+
# @private
|
1222
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1223
|
+
property :member_restriction, as: 'memberRestriction', class: Google::Apis::CloudidentityV1beta1::MemberRestriction, decorator: Google::Apis::CloudidentityV1beta1::MemberRestriction::Representation
|
1224
|
+
|
1225
|
+
property :name, as: 'name'
|
1226
|
+
end
|
1227
|
+
end
|
1228
|
+
|
1157
1229
|
class SendUserInvitationRequest
|
1158
1230
|
# @private
|
1159
1231
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -999,6 +999,42 @@ module Google
|
|
999
999
|
execute_or_queue_command(command, &block)
|
1000
1000
|
end
|
1001
1001
|
|
1002
|
+
# Get Security Settings
|
1003
|
+
# @param [String] name
|
1004
|
+
# Required. The security settings to retrieve. Format: `groups/`group_id`/
|
1005
|
+
# securitySettings`
|
1006
|
+
# @param [String] read_mask
|
1007
|
+
# Field-level read mask of which fields to return. "*" returns all fields. If
|
1008
|
+
# not specified, all fields will be returned. May only contain the following
|
1009
|
+
# field: `member_restriction`.
|
1010
|
+
# @param [String] fields
|
1011
|
+
# Selector specifying which fields to include in a partial response.
|
1012
|
+
# @param [String] quota_user
|
1013
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1014
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1015
|
+
# @param [Google::Apis::RequestOptions] options
|
1016
|
+
# Request-specific options
|
1017
|
+
#
|
1018
|
+
# @yield [result, err] Result & error if block supplied
|
1019
|
+
# @yieldparam result [Google::Apis::CloudidentityV1beta1::SecuritySettings] parsed result object
|
1020
|
+
# @yieldparam err [StandardError] error object if request failed
|
1021
|
+
#
|
1022
|
+
# @return [Google::Apis::CloudidentityV1beta1::SecuritySettings]
|
1023
|
+
#
|
1024
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1025
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1026
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1027
|
+
def get_group_security_settings(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1028
|
+
command = make_simple_command(:get, 'v1beta1/{+name}', options)
|
1029
|
+
command.response_representation = Google::Apis::CloudidentityV1beta1::SecuritySettings::Representation
|
1030
|
+
command.response_class = Google::Apis::CloudidentityV1beta1::SecuritySettings
|
1031
|
+
command.params['name'] = name unless name.nil?
|
1032
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
1033
|
+
command.query['fields'] = fields unless fields.nil?
|
1034
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1035
|
+
execute_or_queue_command(command, &block)
|
1036
|
+
end
|
1037
|
+
|
1002
1038
|
# Lists the `Group` resources under a customer or namespace.
|
1003
1039
|
# @param [Fixnum] page_size
|
1004
1040
|
# The maximum number of results to return. Note that the number of results
|
@@ -1174,6 +1210,44 @@ module Google
|
|
1174
1210
|
execute_or_queue_command(command, &block)
|
1175
1211
|
end
|
1176
1212
|
|
1213
|
+
# Update Security Settings
|
1214
|
+
# @param [String] name
|
1215
|
+
# Output only. The resource name of the security settings. Shall be of the form `
|
1216
|
+
# groups/`group_id`/securitySettings`.
|
1217
|
+
# @param [Google::Apis::CloudidentityV1beta1::SecuritySettings] security_settings_object
|
1218
|
+
# @param [String] update_mask
|
1219
|
+
# Required. The fully-qualified names of fields to update. May only contain the
|
1220
|
+
# following field: `member_restriction.query`.
|
1221
|
+
# @param [String] fields
|
1222
|
+
# Selector specifying which fields to include in a partial response.
|
1223
|
+
# @param [String] quota_user
|
1224
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1225
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1226
|
+
# @param [Google::Apis::RequestOptions] options
|
1227
|
+
# Request-specific options
|
1228
|
+
#
|
1229
|
+
# @yield [result, err] Result & error if block supplied
|
1230
|
+
# @yieldparam result [Google::Apis::CloudidentityV1beta1::Operation] parsed result object
|
1231
|
+
# @yieldparam err [StandardError] error object if request failed
|
1232
|
+
#
|
1233
|
+
# @return [Google::Apis::CloudidentityV1beta1::Operation]
|
1234
|
+
#
|
1235
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1236
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1237
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1238
|
+
def update_group_security_settings(name, security_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1239
|
+
command = make_simple_command(:patch, 'v1beta1/{+name}', options)
|
1240
|
+
command.request_representation = Google::Apis::CloudidentityV1beta1::SecuritySettings::Representation
|
1241
|
+
command.request_object = security_settings_object
|
1242
|
+
command.response_representation = Google::Apis::CloudidentityV1beta1::Operation::Representation
|
1243
|
+
command.response_class = Google::Apis::CloudidentityV1beta1::Operation
|
1244
|
+
command.params['name'] = name unless name.nil?
|
1245
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1246
|
+
command.query['fields'] = fields unless fields.nil?
|
1247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1248
|
+
execute_or_queue_command(command, &block)
|
1249
|
+
end
|
1250
|
+
|
1177
1251
|
# Check a potential member for membership in a group. **Note:** This feature is
|
1178
1252
|
# only available to Google Workspace Enterprise Standard, Enterprise Plus, and
|
1179
1253
|
# Enterprise for Education; and Cloud Identity Premium accounts. A member has
|
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.
|
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: 2021-
|
11
|
+
date: 2021-10-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/master/generated/google-apis-cloudidentity_v1beta1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1beta1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1beta1/v0.15.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-cloudidentity_v1beta1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|