google-apis-cloudidentity_v1 0.15.0 → 0.16.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43d53b0efc2f564f64df1acb14c5b3977ada795537df4590b6cb03f49690bd15
|
4
|
+
data.tar.gz: 6ce752692586b9bec12700dd1dde3d41861621155b84c8181bda815002d8482e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f626f5587cca8ccb358691d1fdc0cddf88789f83e33b78fc4a4f5fc278ef857e23f8300cdc6f9f69b1b68b9f180d27d80d05e2c132b9345c978e070259f04e1
|
7
|
+
data.tar.gz: ed190ad8eb9bd920f8003b96010d18699a088d40fef0788a9bac3142cf6b561bb953343ae2d0091dde0b5f39ef527c64f10c5833dc147ff23e2c22560ec43aba
|
data/CHANGELOG.md
CHANGED
@@ -1538,6 +1538,39 @@ module Google
|
|
1538
1538
|
end
|
1539
1539
|
end
|
1540
1540
|
|
1541
|
+
# The definition of MemberRestriction
|
1542
|
+
class MemberRestriction
|
1543
|
+
include Google::Apis::Core::Hashable
|
1544
|
+
|
1545
|
+
# The evaluated state of this restriction.
|
1546
|
+
# Corresponds to the JSON property `evaluation`
|
1547
|
+
# @return [Google::Apis::CloudidentityV1::RestrictionEvaluation]
|
1548
|
+
attr_accessor :evaluation
|
1549
|
+
|
1550
|
+
# Member Restriction as defined by CEL expression. Supported restrictions are: `
|
1551
|
+
# member.customer_id` and `member.type`. Valid values for `member.type` are `1`,
|
1552
|
+
# `2` and `3`. They correspond to USER, SERVICE_ACCOUNT, and GROUP respectively.
|
1553
|
+
# The value for `member.customer_id` only supports `groupCustomerId()` currently
|
1554
|
+
# which means the customer id of the group will be used for restriction.
|
1555
|
+
# Supported operators are `&&`, `||` and `==`, corresponding to AND, OR, and
|
1556
|
+
# EQUAL. Examples: Allow only service accounts of given customer to be members. `
|
1557
|
+
# member.type == 2 && member.customer_id == groupCustomerId()` Allow only users
|
1558
|
+
# or groups to be members. `member.type == 1 || member.type == 3`
|
1559
|
+
# Corresponds to the JSON property `query`
|
1560
|
+
# @return [String]
|
1561
|
+
attr_accessor :query
|
1562
|
+
|
1563
|
+
def initialize(**args)
|
1564
|
+
update!(**args)
|
1565
|
+
end
|
1566
|
+
|
1567
|
+
# Update properties of this object
|
1568
|
+
def update!(**args)
|
1569
|
+
@evaluation = args[:evaluation] if args.key?(:evaluation)
|
1570
|
+
@query = args[:query] if args.key?(:query)
|
1571
|
+
end
|
1572
|
+
end
|
1573
|
+
|
1541
1574
|
# A membership within the Cloud Identity Groups API. A `Membership` defines a
|
1542
1575
|
# relationship between a `Group` and an entity belonging to that `Group`,
|
1543
1576
|
# referred to as a "member".
|
@@ -1639,6 +1672,11 @@ module Google
|
|
1639
1672
|
# @return [String]
|
1640
1673
|
attr_accessor :name
|
1641
1674
|
|
1675
|
+
# Evaluations of restrictions applied to parent group on this membership.
|
1676
|
+
# Corresponds to the JSON property `restrictionEvaluations`
|
1677
|
+
# @return [Google::Apis::CloudidentityV1::RestrictionEvaluations]
|
1678
|
+
attr_accessor :restriction_evaluations
|
1679
|
+
|
1642
1680
|
def initialize(**args)
|
1643
1681
|
update!(**args)
|
1644
1682
|
end
|
@@ -1647,6 +1685,26 @@ module Google
|
|
1647
1685
|
def update!(**args)
|
1648
1686
|
@expiry_detail = args[:expiry_detail] if args.key?(:expiry_detail)
|
1649
1687
|
@name = args[:name] if args.key?(:name)
|
1688
|
+
@restriction_evaluations = args[:restriction_evaluations] if args.key?(:restriction_evaluations)
|
1689
|
+
end
|
1690
|
+
end
|
1691
|
+
|
1692
|
+
# The evaluated state of this restriction.
|
1693
|
+
class MembershipRoleRestrictionEvaluation
|
1694
|
+
include Google::Apis::Core::Hashable
|
1695
|
+
|
1696
|
+
# Output only. The current state of the restriction
|
1697
|
+
# Corresponds to the JSON property `state`
|
1698
|
+
# @return [String]
|
1699
|
+
attr_accessor :state
|
1700
|
+
|
1701
|
+
def initialize(**args)
|
1702
|
+
update!(**args)
|
1703
|
+
end
|
1704
|
+
|
1705
|
+
# Update properties of this object
|
1706
|
+
def update!(**args)
|
1707
|
+
@state = args[:state] if args.key?(:state)
|
1650
1708
|
end
|
1651
1709
|
end
|
1652
1710
|
|
@@ -1772,6 +1830,44 @@ module Google
|
|
1772
1830
|
end
|
1773
1831
|
end
|
1774
1832
|
|
1833
|
+
# The evaluated state of this restriction.
|
1834
|
+
class RestrictionEvaluation
|
1835
|
+
include Google::Apis::Core::Hashable
|
1836
|
+
|
1837
|
+
# Output only. The current state of the restriction
|
1838
|
+
# Corresponds to the JSON property `state`
|
1839
|
+
# @return [String]
|
1840
|
+
attr_accessor :state
|
1841
|
+
|
1842
|
+
def initialize(**args)
|
1843
|
+
update!(**args)
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
# Update properties of this object
|
1847
|
+
def update!(**args)
|
1848
|
+
@state = args[:state] if args.key?(:state)
|
1849
|
+
end
|
1850
|
+
end
|
1851
|
+
|
1852
|
+
# Evaluations of restrictions applied to parent group on this membership.
|
1853
|
+
class RestrictionEvaluations
|
1854
|
+
include Google::Apis::Core::Hashable
|
1855
|
+
|
1856
|
+
# The evaluated state of this restriction.
|
1857
|
+
# Corresponds to the JSON property `memberRestrictionEvaluation`
|
1858
|
+
# @return [Google::Apis::CloudidentityV1::MembershipRoleRestrictionEvaluation]
|
1859
|
+
attr_accessor :member_restriction_evaluation
|
1860
|
+
|
1861
|
+
def initialize(**args)
|
1862
|
+
update!(**args)
|
1863
|
+
end
|
1864
|
+
|
1865
|
+
# Update properties of this object
|
1866
|
+
def update!(**args)
|
1867
|
+
@member_restriction_evaluation = args[:member_restriction_evaluation] if args.key?(:member_restriction_evaluation)
|
1868
|
+
end
|
1869
|
+
end
|
1870
|
+
|
1775
1871
|
# The response message for GroupsService.SearchGroups.
|
1776
1872
|
class SearchGroupsResponse
|
1777
1873
|
include Google::Apis::Core::Hashable
|
@@ -1850,6 +1946,32 @@ module Google
|
|
1850
1946
|
end
|
1851
1947
|
end
|
1852
1948
|
|
1949
|
+
# The definition of security settings.
|
1950
|
+
class SecuritySettings
|
1951
|
+
include Google::Apis::Core::Hashable
|
1952
|
+
|
1953
|
+
# The definition of MemberRestriction
|
1954
|
+
# Corresponds to the JSON property `memberRestriction`
|
1955
|
+
# @return [Google::Apis::CloudidentityV1::MemberRestriction]
|
1956
|
+
attr_accessor :member_restriction
|
1957
|
+
|
1958
|
+
# Output only. The resource name of the security settings. Shall be of the form `
|
1959
|
+
# groups/`group_id`/securitySettings`.
|
1960
|
+
# Corresponds to the JSON property `name`
|
1961
|
+
# @return [String]
|
1962
|
+
attr_accessor :name
|
1963
|
+
|
1964
|
+
def initialize(**args)
|
1965
|
+
update!(**args)
|
1966
|
+
end
|
1967
|
+
|
1968
|
+
# Update properties of this object
|
1969
|
+
def update!(**args)
|
1970
|
+
@member_restriction = args[:member_restriction] if args.key?(:member_restriction)
|
1971
|
+
@name = args[:name] if args.key?(:name)
|
1972
|
+
end
|
1973
|
+
end
|
1974
|
+
|
1853
1975
|
# The `Status` type defines a logical error model that is suitable for different
|
1854
1976
|
# programming environments, including REST APIs and RPC APIs. It is used by [
|
1855
1977
|
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.16.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 = "20211207"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -340,6 +340,12 @@ module Google
|
|
340
340
|
include Google::Apis::Core::JsonObjectSupport
|
341
341
|
end
|
342
342
|
|
343
|
+
class MemberRestriction
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
343
349
|
class Membership
|
344
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
351
|
|
@@ -358,6 +364,12 @@ module Google
|
|
358
364
|
include Google::Apis::Core::JsonObjectSupport
|
359
365
|
end
|
360
366
|
|
367
|
+
class MembershipRoleRestrictionEvaluation
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
361
373
|
class ModifyMembershipRolesRequest
|
362
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
375
|
|
@@ -376,6 +388,18 @@ module Google
|
|
376
388
|
include Google::Apis::Core::JsonObjectSupport
|
377
389
|
end
|
378
390
|
|
391
|
+
class RestrictionEvaluation
|
392
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
393
|
+
|
394
|
+
include Google::Apis::Core::JsonObjectSupport
|
395
|
+
end
|
396
|
+
|
397
|
+
class RestrictionEvaluations
|
398
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
|
+
|
400
|
+
include Google::Apis::Core::JsonObjectSupport
|
401
|
+
end
|
402
|
+
|
379
403
|
class SearchGroupsResponse
|
380
404
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
381
405
|
|
@@ -394,6 +418,12 @@ module Google
|
|
394
418
|
include Google::Apis::Core::JsonObjectSupport
|
395
419
|
end
|
396
420
|
|
421
|
+
class SecuritySettings
|
422
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
423
|
+
|
424
|
+
include Google::Apis::Core::JsonObjectSupport
|
425
|
+
end
|
426
|
+
|
397
427
|
class Status
|
398
428
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
399
429
|
|
@@ -886,6 +916,15 @@ module Google
|
|
886
916
|
end
|
887
917
|
end
|
888
918
|
|
919
|
+
class MemberRestriction
|
920
|
+
# @private
|
921
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
922
|
+
property :evaluation, as: 'evaluation', class: Google::Apis::CloudidentityV1::RestrictionEvaluation, decorator: Google::Apis::CloudidentityV1::RestrictionEvaluation::Representation
|
923
|
+
|
924
|
+
property :query, as: 'query'
|
925
|
+
end
|
926
|
+
end
|
927
|
+
|
889
928
|
class Membership
|
890
929
|
# @private
|
891
930
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -915,6 +954,15 @@ module Google
|
|
915
954
|
property :expiry_detail, as: 'expiryDetail', class: Google::Apis::CloudidentityV1::ExpiryDetail, decorator: Google::Apis::CloudidentityV1::ExpiryDetail::Representation
|
916
955
|
|
917
956
|
property :name, as: 'name'
|
957
|
+
property :restriction_evaluations, as: 'restrictionEvaluations', class: Google::Apis::CloudidentityV1::RestrictionEvaluations, decorator: Google::Apis::CloudidentityV1::RestrictionEvaluations::Representation
|
958
|
+
|
959
|
+
end
|
960
|
+
end
|
961
|
+
|
962
|
+
class MembershipRoleRestrictionEvaluation
|
963
|
+
# @private
|
964
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
965
|
+
property :state, as: 'state'
|
918
966
|
end
|
919
967
|
end
|
920
968
|
|
@@ -949,6 +997,21 @@ module Google
|
|
949
997
|
end
|
950
998
|
end
|
951
999
|
|
1000
|
+
class RestrictionEvaluation
|
1001
|
+
# @private
|
1002
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1003
|
+
property :state, as: 'state'
|
1004
|
+
end
|
1005
|
+
end
|
1006
|
+
|
1007
|
+
class RestrictionEvaluations
|
1008
|
+
# @private
|
1009
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1010
|
+
property :member_restriction_evaluation, as: 'memberRestrictionEvaluation', class: Google::Apis::CloudidentityV1::MembershipRoleRestrictionEvaluation, decorator: Google::Apis::CloudidentityV1::MembershipRoleRestrictionEvaluation::Representation
|
1011
|
+
|
1012
|
+
end
|
1013
|
+
end
|
1014
|
+
|
952
1015
|
class SearchGroupsResponse
|
953
1016
|
# @private
|
954
1017
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -976,6 +1039,15 @@ module Google
|
|
976
1039
|
end
|
977
1040
|
end
|
978
1041
|
|
1042
|
+
class SecuritySettings
|
1043
|
+
# @private
|
1044
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1045
|
+
property :member_restriction, as: 'memberRestriction', class: Google::Apis::CloudidentityV1::MemberRestriction, decorator: Google::Apis::CloudidentityV1::MemberRestriction::Representation
|
1046
|
+
|
1047
|
+
property :name, as: 'name'
|
1048
|
+
end
|
1049
|
+
end
|
1050
|
+
|
979
1051
|
class Status
|
980
1052
|
# @private
|
981
1053
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -920,6 +920,42 @@ module Google
|
|
920
920
|
execute_or_queue_command(command, &block)
|
921
921
|
end
|
922
922
|
|
923
|
+
# Get Security Settings
|
924
|
+
# @param [String] name
|
925
|
+
# Required. The security settings to retrieve. Format: `groups/`group_id`/
|
926
|
+
# securitySettings`
|
927
|
+
# @param [String] read_mask
|
928
|
+
# Field-level read mask of which fields to return. "*" returns all fields. If
|
929
|
+
# not specified, all fields will be returned. May only contain the following
|
930
|
+
# field: `member_restriction`.
|
931
|
+
# @param [String] fields
|
932
|
+
# Selector specifying which fields to include in a partial response.
|
933
|
+
# @param [String] quota_user
|
934
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
935
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
936
|
+
# @param [Google::Apis::RequestOptions] options
|
937
|
+
# Request-specific options
|
938
|
+
#
|
939
|
+
# @yield [result, err] Result & error if block supplied
|
940
|
+
# @yieldparam result [Google::Apis::CloudidentityV1::SecuritySettings] parsed result object
|
941
|
+
# @yieldparam err [StandardError] error object if request failed
|
942
|
+
#
|
943
|
+
# @return [Google::Apis::CloudidentityV1::SecuritySettings]
|
944
|
+
#
|
945
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
946
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
947
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
948
|
+
def get_group_security_settings(name, read_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
949
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
950
|
+
command.response_representation = Google::Apis::CloudidentityV1::SecuritySettings::Representation
|
951
|
+
command.response_class = Google::Apis::CloudidentityV1::SecuritySettings
|
952
|
+
command.params['name'] = name unless name.nil?
|
953
|
+
command.query['readMask'] = read_mask unless read_mask.nil?
|
954
|
+
command.query['fields'] = fields unless fields.nil?
|
955
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
956
|
+
execute_or_queue_command(command, &block)
|
957
|
+
end
|
958
|
+
|
923
959
|
# Lists the `Group` resources under a customer or namespace.
|
924
960
|
# @param [Fixnum] page_size
|
925
961
|
# The maximum number of results to return. Note that the number of results
|
@@ -1094,6 +1130,44 @@ module Google
|
|
1094
1130
|
execute_or_queue_command(command, &block)
|
1095
1131
|
end
|
1096
1132
|
|
1133
|
+
# Update Security Settings
|
1134
|
+
# @param [String] name
|
1135
|
+
# Output only. The resource name of the security settings. Shall be of the form `
|
1136
|
+
# groups/`group_id`/securitySettings`.
|
1137
|
+
# @param [Google::Apis::CloudidentityV1::SecuritySettings] security_settings_object
|
1138
|
+
# @param [String] update_mask
|
1139
|
+
# Required. The fully-qualified names of fields to update. May only contain the
|
1140
|
+
# following field: `member_restriction.query`.
|
1141
|
+
# @param [String] fields
|
1142
|
+
# Selector specifying which fields to include in a partial response.
|
1143
|
+
# @param [String] quota_user
|
1144
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1145
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1146
|
+
# @param [Google::Apis::RequestOptions] options
|
1147
|
+
# Request-specific options
|
1148
|
+
#
|
1149
|
+
# @yield [result, err] Result & error if block supplied
|
1150
|
+
# @yieldparam result [Google::Apis::CloudidentityV1::Operation] parsed result object
|
1151
|
+
# @yieldparam err [StandardError] error object if request failed
|
1152
|
+
#
|
1153
|
+
# @return [Google::Apis::CloudidentityV1::Operation]
|
1154
|
+
#
|
1155
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1156
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1157
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1158
|
+
def update_group_security_settings(name, security_settings_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1159
|
+
command = make_simple_command(:patch, 'v1/{+name}', options)
|
1160
|
+
command.request_representation = Google::Apis::CloudidentityV1::SecuritySettings::Representation
|
1161
|
+
command.request_object = security_settings_object
|
1162
|
+
command.response_representation = Google::Apis::CloudidentityV1::Operation::Representation
|
1163
|
+
command.response_class = Google::Apis::CloudidentityV1::Operation
|
1164
|
+
command.params['name'] = name unless name.nil?
|
1165
|
+
command.query['updateMask'] = update_mask unless update_mask.nil?
|
1166
|
+
command.query['fields'] = fields unless fields.nil?
|
1167
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1168
|
+
execute_or_queue_command(command, &block)
|
1169
|
+
end
|
1170
|
+
|
1097
1171
|
# Check a potential member for membership in a group. **Note:** This feature is
|
1098
1172
|
# only available to Google Workspace Enterprise Standard, Enterprise Plus, and
|
1099
1173
|
# Enterprise for Education; and Cloud Identity Premium accounts. If the account
|
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.
|
4
|
+
version: 0.16.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-12-
|
11
|
+
date: 2021-12-13 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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudidentity_v1/v0.16.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudidentity_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|