google-apis-iap_v1 0.9.0 → 0.13.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: 3805c9e78202250d1f2a7bf3d1953ba92cb035a39ad47740e427a2a9bb6da8a3
4
- data.tar.gz: 053f34d83f955bcbf321734aa7fb7be8d906ac24338322173ae65877357b16bb
3
+ metadata.gz: 1341f88f8b2b29083f9481a818c03023d2cbbb9400479da9105ed26757a39d85
4
+ data.tar.gz: d0799b9c9388aaa91afda9381d6c16891d791906920321396f1483320f8bc739
5
5
  SHA512:
6
- metadata.gz: ecb6388b149970ea1726df1a67863a2d74a4a1a3cb85d2d34dda509ea974dab45624d4baf12b9590af52e8d0cfd02e58f4b9063e16d2b4c14d043c5e868da22a
7
- data.tar.gz: 71d9eeb2a3e4e88a52b53bab2b2083f83e9ef763369f3174ef910ce6d80c65dda446b60da3edd8b5f063836993798065091d80217ea2451f97843b6f8df703b5
6
+ metadata.gz: a44b4157cf78062a09b66d02fd02a4ad6074b750aa1efd3181afaf750ab24c4ecd0d0cd3116513c69b18331e79714169bcfc50ad6b355c3c3f284d58bc0b6b6e
7
+ data.tar.gz: a6793dd7067b5b510415ce4210854005e5a5bdafd22117bf32f8eb375ef6b4520826158722ca90b9837ba1369eb422744fd7b93069ecb2ed36356ebfd49e33a7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-iap_v1
2
2
 
3
+ ### v0.13.0 (2021-12-16)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.12.0 (2021-11-10)
8
+
9
+ * Regenerated from discovery document revision 20211105
10
+
11
+ ### v0.11.0 (2021-10-20)
12
+
13
+ * Regenerated from discovery document revision 20211015
14
+
15
+ ### v0.10.0 (2021-10-07)
16
+
17
+ * Regenerated from discovery document revision 20210930
18
+
3
19
  ### v0.9.0 (2021-09-01)
4
20
 
5
21
  * Regenerated from discovery document revision 20210813
data/OVERVIEW.md CHANGED
@@ -51,7 +51,7 @@ require "google/apis/iap_v1"
51
51
  client = Google::Apis::IapV1::CloudIAPService.new
52
52
 
53
53
  # Authenticate calls
54
- client.authentication = # ... use the googleauth gem to create credentials
54
+ client.authorization = # ... use the googleauth gem to create credentials
55
55
  ```
56
56
 
57
57
  See the class reference docs for information on the methods you can call from a client.
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
60
60
 
61
61
  More detailed descriptions of the Google simple REST clients are available in two documents.
62
62
 
63
- * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
- * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/master/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
63
+ * The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
64
+ * The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
65
65
 
66
66
  (Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Iap service in particular.)
67
67
 
@@ -82,6 +82,11 @@ module Google
82
82
  # @return [Google::Apis::IapV1::PolicyDelegationSettings]
83
83
  attr_accessor :policy_delegation_settings
84
84
 
85
+ # Configuration for IAP reauthentication policies.
86
+ # Corresponds to the JSON property `reauthSettings`
87
+ # @return [Google::Apis::IapV1::ReauthSettings]
88
+ attr_accessor :reauth_settings
89
+
85
90
  def initialize(**args)
86
91
  update!(**args)
87
92
  end
@@ -92,6 +97,7 @@ module Google
92
97
  @gcip_settings = args[:gcip_settings] if args.key?(:gcip_settings)
93
98
  @oauth_settings = args[:oauth_settings] if args.key?(:oauth_settings)
94
99
  @policy_delegation_settings = args[:policy_delegation_settings] if args.key?(:policy_delegation_settings)
100
+ @reauth_settings = args[:reauth_settings] if args.key?(:reauth_settings)
95
101
  end
96
102
  end
97
103
 
@@ -133,7 +139,7 @@ module Google
133
139
  end
134
140
  end
135
141
 
136
- # Associates `members` with a `role`.
142
+ # Associates `members`, or principals, with a `role`.
137
143
  class Binding
138
144
  include Google::Apis::Core::Hashable
139
145
 
@@ -156,7 +162,7 @@ module Google
156
162
  # @return [Google::Apis::IapV1::Expr]
157
163
  attr_accessor :condition
158
164
 
159
- # Specifies the identities requesting access for a Cloud Platform resource. `
165
+ # Specifies the principals requesting access for a Cloud Platform resource. `
160
166
  # members` can have the following values: * `allUsers`: A special identifier
161
167
  # that represents anyone who is on the internet; with or without a Google
162
168
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -186,8 +192,8 @@ module Google
186
192
  # @return [Array<String>]
187
193
  attr_accessor :members
188
194
 
189
- # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
190
- # , or `roles/owner`.
195
+ # Role that is assigned to the list of `members`, or principals. For example, `
196
+ # roles/viewer`, `roles/editor`, or `roles/owner`.
191
197
  # Corresponds to the JSON property `role`
192
198
  # @return [String]
193
199
  attr_accessor :role
@@ -415,13 +421,16 @@ module Google
415
421
  class GetPolicyOptions
416
422
  include Google::Apis::Core::Hashable
417
423
 
418
- # Optional. The policy format version to be returned. Valid values are 0, 1, and
419
- # 3. Requests specifying an invalid value will be rejected. Requests for
420
- # policies with any conditional bindings must specify version 3. Policies
421
- # without any conditional bindings may specify any valid value or leave the
422
- # field unset. To learn which resources support conditions in their IAM policies,
423
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
424
- # resource-policies).
424
+ # Optional. The maximum policy version that will be used to format the policy.
425
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
426
+ # rejected. Requests for policies with any conditional role bindings must
427
+ # specify version 3. Policies with no conditional role bindings may specify any
428
+ # valid value or leave the field unset. The policy in the response might use the
429
+ # policy version that you specified, or it might use a lower policy version. For
430
+ # example, if you specify version 3, but the policy has no conditional role
431
+ # bindings, the response uses version 1. To learn which resources support
432
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
433
+ # google.com/iam/help/conditions/resource-policies).
425
434
  # Corresponds to the JSON property `requestedPolicyVersion`
426
435
  # @return [Fixnum]
427
436
  attr_accessor :requested_policy_version
@@ -569,37 +578,42 @@ module Google
569
578
 
570
579
  # An Identity and Access Management (IAM) policy, which specifies access
571
580
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
572
- # A `binding` binds one or more `members` to a single `role`. Members can be
573
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
574
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
575
- # role or a user-created custom role. For some types of Google Cloud resources,
576
- # a `binding` can also specify a `condition`, which is a logical expression that
577
- # allows access to a resource only if the expression evaluates to `true`. A
578
- # condition can add constraints based on attributes of the request, the resource,
579
- # or both. To learn which resources support conditions in their IAM policies,
580
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
581
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
582
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
583
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
584
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
585
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
586
- # title": "expirable access", "description": "Does not grant access after Sep
587
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
588
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
589
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
590
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
591
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
592
- # roles/resourcemanager.organizationViewer condition: title: expirable access
593
- # description: Does not grant access after Sep 2020 expression: request.time <
594
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
595
- # description of IAM and its features, see the [IAM documentation](https://cloud.
596
- # google.com/iam/docs/).
581
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
582
+ # Principals can be user accounts, service accounts, Google groups, and domains (
583
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
584
+ # an IAM predefined role or a user-created custom role. For some types of Google
585
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
586
+ # logical expression that allows access to a resource only if the expression
587
+ # evaluates to `true`. A condition can add constraints based on attributes of
588
+ # the request, the resource, or both. To learn which resources support
589
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
590
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
591
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
592
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
593
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
594
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
595
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
596
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
597
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
598
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
599
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
600
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
601
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
602
+ # access description: Does not grant access after Sep 2020 expression: request.
603
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
604
+ # a description of IAM and its features, see the [IAM documentation](https://
605
+ # cloud.google.com/iam/docs/).
597
606
  class Policy
598
607
  include Google::Apis::Core::Hashable
599
608
 
600
- # Associates a list of `members` to a `role`. Optionally, may specify a `
601
- # condition` that determines how and when the `bindings` are applied. Each of
602
- # the `bindings` must contain at least one member.
609
+ # Associates a list of `members`, or principals, with a `role`. Optionally, may
610
+ # specify a `condition` that determines how and when the `bindings` are applied.
611
+ # Each of the `bindings` must contain at least one principal. The `bindings` in
612
+ # a `Policy` can refer to up to 1,500 principals; up to 250 of these principals
613
+ # can be Google groups. Each occurrence of a principal counts towards these
614
+ # limits. For example, if the `bindings` grant 50 different roles to `user:alice@
615
+ # example.com`, and not to any other principal, then you can add another 1,450
616
+ # principals to the `bindings` in the `Policy`.
603
617
  # Corresponds to the JSON property `bindings`
604
618
  # @return [Array<Google::Apis::IapV1::Binding>]
605
619
  attr_accessor :bindings
@@ -736,6 +750,38 @@ module Google
736
750
  end
737
751
  end
738
752
 
753
+ # Configuration for IAP reauthentication policies.
754
+ class ReauthSettings
755
+ include Google::Apis::Core::Hashable
756
+
757
+ # Reauth session lifetime, how long before a user has to reauthenticate again.
758
+ # Corresponds to the JSON property `maxAge`
759
+ # @return [String]
760
+ attr_accessor :max_age
761
+
762
+ # Reauth method required by the policy.
763
+ # Corresponds to the JSON property `method`
764
+ # @return [String]
765
+ attr_accessor :method_prop
766
+
767
+ # How IAP determines the effective policy in cases of hierarchial policies.
768
+ # Policies are merged from higher in the hierarchy to lower in the hierarchy.
769
+ # Corresponds to the JSON property `policyType`
770
+ # @return [String]
771
+ attr_accessor :policy_type
772
+
773
+ def initialize(**args)
774
+ update!(**args)
775
+ end
776
+
777
+ # Update properties of this object
778
+ def update!(**args)
779
+ @max_age = args[:max_age] if args.key?(:max_age)
780
+ @method_prop = args[:method_prop] if args.key?(:method_prop)
781
+ @policy_type = args[:policy_type] if args.key?(:policy_type)
782
+ end
783
+ end
784
+
739
785
  # The request sent to ResetIdentityAwareProxyClientSecret.
740
786
  class ResetIdentityAwareProxyClientSecretRequest
741
787
  include Google::Apis::Core::Hashable
@@ -820,31 +866,31 @@ module Google
820
866
 
821
867
  # An Identity and Access Management (IAM) policy, which specifies access
822
868
  # controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
823
- # A `binding` binds one or more `members` to a single `role`. Members can be
824
- # user accounts, service accounts, Google groups, and domains (such as G Suite).
825
- # A `role` is a named list of permissions; each `role` can be an IAM predefined
826
- # role or a user-created custom role. For some types of Google Cloud resources,
827
- # a `binding` can also specify a `condition`, which is a logical expression that
828
- # allows access to a resource only if the expression evaluates to `true`. A
829
- # condition can add constraints based on attributes of the request, the resource,
830
- # or both. To learn which resources support conditions in their IAM policies,
831
- # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
832
- # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
833
- # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
834
- # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
835
- # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
836
- # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
837
- # title": "expirable access", "description": "Does not grant access after Sep
838
- # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
839
- # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
840
- # members: - user:mike@example.com - group:admins@example.com - domain:google.
841
- # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
842
- # resourcemanager.organizationAdmin - members: - user:eve@example.com role:
843
- # roles/resourcemanager.organizationViewer condition: title: expirable access
844
- # description: Does not grant access after Sep 2020 expression: request.time <
845
- # timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For a
846
- # description of IAM and its features, see the [IAM documentation](https://cloud.
847
- # google.com/iam/docs/).
869
+ # A `binding` binds one or more `members`, or principals, to a single `role`.
870
+ # Principals can be user accounts, service accounts, Google groups, and domains (
871
+ # such as G Suite). A `role` is a named list of permissions; each `role` can be
872
+ # an IAM predefined role or a user-created custom role. For some types of Google
873
+ # Cloud resources, a `binding` can also specify a `condition`, which is a
874
+ # logical expression that allows access to a resource only if the expression
875
+ # evaluates to `true`. A condition can add constraints based on attributes of
876
+ # the request, the resource, or both. To learn which resources support
877
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
878
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
879
+ # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
880
+ # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
881
+ # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
882
+ # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
883
+ # ], "condition": ` "title": "expirable access", "description": "Does not grant
884
+ # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
885
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
886
+ # bindings: - members: - user:mike@example.com - group:admins@example.com -
887
+ # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
888
+ # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
889
+ # com role: roles/resourcemanager.organizationViewer condition: title: expirable
890
+ # access description: Does not grant access after Sep 2020 expression: request.
891
+ # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
892
+ # a description of IAM and its features, see the [IAM documentation](https://
893
+ # cloud.google.com/iam/docs/).
848
894
  # Corresponds to the JSON property `policy`
849
895
  # @return [Google::Apis::IapV1::Policy]
850
896
  attr_accessor :policy
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module IapV1
18
18
  # Version of the google-apis-iap_v1 gem
19
- GEM_VERSION = "0.9.0"
19
+ GEM_VERSION = "0.13.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 = "20210813"
25
+ REVISION = "20211105"
26
26
  end
27
27
  end
28
28
  end
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class ReauthSettings
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class ResetIdentityAwareProxyClientSecretRequest
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -191,6 +197,8 @@ module Google
191
197
 
192
198
  property :policy_delegation_settings, as: 'policyDelegationSettings', class: Google::Apis::IapV1::PolicyDelegationSettings, decorator: Google::Apis::IapV1::PolicyDelegationSettings::Representation
193
199
 
200
+ property :reauth_settings, as: 'reauthSettings', class: Google::Apis::IapV1::ReauthSettings, decorator: Google::Apis::IapV1::ReauthSettings::Representation
201
+
194
202
  end
195
203
  end
196
204
 
@@ -353,6 +361,15 @@ module Google
353
361
  end
354
362
  end
355
363
 
364
+ class ReauthSettings
365
+ # @private
366
+ class Representation < Google::Apis::Core::JsonRepresentation
367
+ property :max_age, as: 'maxAge'
368
+ property :method_prop, as: 'method'
369
+ property :policy_type, as: 'policyType'
370
+ end
371
+ end
372
+
356
373
  class ResetIdentityAwareProxyClientSecretRequest
357
374
  # @private
358
375
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -51,11 +51,11 @@ module Google
51
51
 
52
52
  # Constructs a new OAuth brand for the project if one does not exist. The
53
53
  # created brand is "internal only", meaning that OAuth clients created under it
54
- # only accept requests from users who belong to the same G Suite organization as
55
- # the project. The brand is created in an un-reviewed status. NOTE: The "
56
- # internal only" status can be manually changed in the Google Cloud console.
57
- # Requires that a brand does not already exist for the project, and that the
58
- # specified support email is owned by the caller.
54
+ # only accept requests from users who belong to the same Google Workspace
55
+ # organization as the project. The brand is created in an un-reviewed status.
56
+ # NOTE: The "internal only" status can be manually changed in the Google Cloud
57
+ # Console. Requires that a brand does not already exist for the project, and
58
+ # that the specified support email is owned by the caller.
59
59
  # @param [String] parent
60
60
  # Required. GCP Project number/id under which the brand is to be created. In the
61
61
  # following format: projects/`project_number/id`.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-iap_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.13.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-09-06 00:00:00.000000000 Z
11
+ date: 2022-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -57,9 +57,9 @@ licenses:
57
57
  - Apache-2.0
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
- changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-iap_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-iap_v1/v0.9.0
62
- source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-iap_v1
60
+ changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iap_v1/CHANGELOG.md
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iap_v1/v0.13.0
62
+ source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-iap_v1
63
63
  post_install_message:
64
64
  rdoc_options: []
65
65
  require_paths:
@@ -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.2.17
78
+ rubygems_version: 3.3.4
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Identity-Aware Proxy API V1