google-apis-iap_v1 0.34.0 → 0.36.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: 1c262ec135958b18240c7419602953ad39d3e26aadd8c0ce3b8f9cce0cabd240
4
- data.tar.gz: 04f3dfca5fefc596d9a2eaf4089a9281315b4dc43b0d7edd2496d2d279a93672
3
+ metadata.gz: a2a9b246229b740190e12825908527aac35e28c2b40106af6526e5e4eb436984
4
+ data.tar.gz: 014da4167aa71b2652f88fd3b6f63a0016e1f61b7c8d1b6638f6e32cee9de84d
5
5
  SHA512:
6
- metadata.gz: a4781b07662d18c119dbf7f376145690d3962751d0c31c8c78893e2a34385413e04b5ba3d320b63420fee5a3e9da3e9ec2ae440f500d0d62d435eba57fbb59f1
7
- data.tar.gz: fcbe4c7f2d92bc70b7802f37a3bfa65c6ebd99134d11c9ae26814fa518f6cbae6da8a75bd47465bd7d8ff9fbf39f7d0ae51c159bc4cc10a58036a3f374546a14
6
+ metadata.gz: 43de193af2c2a23a732791f0a53c97f9e8a5754587d97157f84752a5bfdf640d2b8c8e03443be60562bf3e24f45cac4bb9d1b1c396a523bfbd1f88af5f923c9c
7
+ data.tar.gz: 10792bf0cb0cb6350a72ae9a6c6f5a4acfcc579ce116ec68c06bec0f0b0791357a24331238b8865464cd758f47feb70540b10c037c7bf123cb4fa6e89f822fd0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-iap_v1
2
2
 
3
+ ### v0.36.0 (2023-09-10)
4
+
5
+ * Regenerated from discovery document revision 20230901
6
+
7
+ ### v0.35.0 (2023-06-04)
8
+
9
+ * Regenerated from discovery document revision 20230526
10
+
3
11
  ### v0.34.0 (2023-03-26)
4
12
 
5
13
  * Regenerated from discovery document revision 20230317
@@ -693,6 +693,11 @@ module Google
693
693
  # @return [String]
694
694
  attr_accessor :login_hint
695
695
 
696
+ # List of client ids allowed to use IAP programmatically.
697
+ # Corresponds to the JSON property `programmaticClients`
698
+ # @return [Array<String>]
699
+ attr_accessor :programmatic_clients
700
+
696
701
  def initialize(**args)
697
702
  update!(**args)
698
703
  end
@@ -700,6 +705,7 @@ module Google
700
705
  # Update properties of this object
701
706
  def update!(**args)
702
707
  @login_hint = args[:login_hint] if args.key?(:login_hint)
708
+ @programmatic_clients = args[:programmatic_clients] if args.key?(:programmatic_clients)
703
709
  end
704
710
  end
705
711
 
@@ -714,22 +720,22 @@ module Google
714
720
  # evaluates to `true`. A condition can add constraints based on attributes of
715
721
  # the request, the resource, or both. To learn which resources support
716
722
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
717
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
723
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
718
724
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
719
725
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
720
726
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
721
727
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
722
728
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
723
729
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
724
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
725
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
726
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
727
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
728
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
729
- # access description: Does not grant access after Sep 2020 expression: request.
730
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
731
- # a description of IAM and its features, see the [IAM documentation](https://
732
- # cloud.google.com/iam/docs/).
730
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
731
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
732
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
733
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
734
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
735
+ # title: expirable access description: Does not grant access after Sep 2020
736
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
737
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
738
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
733
739
  class Policy
734
740
  include Google::Apis::Core::Hashable
735
741
 
@@ -1002,22 +1008,22 @@ module Google
1002
1008
  # evaluates to `true`. A condition can add constraints based on attributes of
1003
1009
  # the request, the resource, or both. To learn which resources support
1004
1010
  # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1005
- # google.com/iam/help/conditions/resource-policies). **JSON example:** ` "
1011
+ # google.com/iam/help/conditions/resource-policies). **JSON example:** ``` ` "
1006
1012
  # bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": [
1007
1013
  # "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
1008
1014
  # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
1009
1015
  # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
1010
1016
  # ], "condition": ` "title": "expirable access", "description": "Does not grant
1011
1017
  # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
1012
- # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:**
1013
- # bindings: - members: - user:mike@example.com - group:admins@example.com -
1014
- # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
1015
- # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
1016
- # com role: roles/resourcemanager.organizationViewer condition: title: expirable
1017
- # access description: Does not grant access after Sep 2020 expression: request.
1018
- # time < timestamp('2020-10-01T00:00:00.000Z') etag: BwWWja0YfJA= version: 3 For
1019
- # a description of IAM and its features, see the [IAM documentation](https://
1020
- # cloud.google.com/iam/docs/).
1018
+ # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` ``` **YAML
1019
+ # example:** ``` bindings: - members: - user:mike@example.com - group:admins@
1020
+ # example.com - domain:google.com - serviceAccount:my-project-id@appspot.
1021
+ # gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: -
1022
+ # user:eve@example.com role: roles/resourcemanager.organizationViewer condition:
1023
+ # title: expirable access description: Does not grant access after Sep 2020
1024
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') etag:
1025
+ # BwWWja0YfJA= version: 3 ``` For a description of IAM and its features, see the
1026
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
1021
1027
  # Corresponds to the JSON property `policy`
1022
1028
  # @return [Google::Apis::IapV1::Policy]
1023
1029
  attr_accessor :policy
@@ -1103,6 +1109,21 @@ module Google
1103
1109
  @name = args[:name] if args.key?(:name)
1104
1110
  end
1105
1111
  end
1112
+
1113
+ # API requires a return message, but currently all response strings will fit in
1114
+ # the status and public message. In the future, this response can hold AST
1115
+ # validation info.
1116
+ class ValidateIapAttributeExpressionResponse
1117
+ include Google::Apis::Core::Hashable
1118
+
1119
+ def initialize(**args)
1120
+ update!(**args)
1121
+ end
1122
+
1123
+ # Update properties of this object
1124
+ def update!(**args)
1125
+ end
1126
+ end
1106
1127
  end
1107
1128
  end
1108
1129
  end
@@ -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.34.0"
19
+ GEM_VERSION = "0.36.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230317"
25
+ REVISION = "20230901"
26
26
  end
27
27
  end
28
28
  end
@@ -202,6 +202,12 @@ module Google
202
202
  include Google::Apis::Core::JsonObjectSupport
203
203
  end
204
204
 
205
+ class ValidateIapAttributeExpressionResponse
206
+ class Representation < Google::Apis::Core::JsonRepresentation; end
207
+
208
+ include Google::Apis::Core::JsonObjectSupport
209
+ end
210
+
205
211
  class AccessDeniedPageSettings
206
212
  # @private
207
213
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -382,6 +388,7 @@ module Google
382
388
  # @private
383
389
  class Representation < Google::Apis::Core::JsonRepresentation
384
390
  property :login_hint, as: 'loginHint'
391
+ collection :programmatic_clients, as: 'programmaticClients'
385
392
  end
386
393
  end
387
394
 
@@ -471,6 +478,12 @@ module Google
471
478
  property :name, as: 'name'
472
479
  end
473
480
  end
481
+
482
+ class ValidateIapAttributeExpressionResponse
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ end
486
+ end
474
487
  end
475
488
  end
476
489
  end
@@ -703,6 +703,41 @@ module Google
703
703
  command.query['quotaUser'] = quota_user unless quota_user.nil?
704
704
  execute_or_queue_command(command, &block)
705
705
  end
706
+
707
+ # Validates a given CEL expression conforms to IAP restrictions.
708
+ # @param [String] name
709
+ # Required. The resource name of the IAP protected resource.
710
+ # @param [String] expression
711
+ # Required. User input string expression. Should be of the form 'attributes.
712
+ # saml_attributes.filter(attribute, attribute.name in ['`attribute_name`', '`
713
+ # attribute_name`'])'
714
+ # @param [String] fields
715
+ # Selector specifying which fields to include in a partial response.
716
+ # @param [String] quota_user
717
+ # Available to use for quota purposes for server-side applications. Can be any
718
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
719
+ # @param [Google::Apis::RequestOptions] options
720
+ # Request-specific options
721
+ #
722
+ # @yield [result, err] Result & error if block supplied
723
+ # @yieldparam result [Google::Apis::IapV1::ValidateIapAttributeExpressionResponse] parsed result object
724
+ # @yieldparam err [StandardError] error object if request failed
725
+ #
726
+ # @return [Google::Apis::IapV1::ValidateIapAttributeExpressionResponse]
727
+ #
728
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
729
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
730
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
731
+ def validate_attribute_expression(name, expression: nil, fields: nil, quota_user: nil, options: nil, &block)
732
+ command = make_simple_command(:post, 'v1/{+name}:validateAttributeExpression', options)
733
+ command.response_representation = Google::Apis::IapV1::ValidateIapAttributeExpressionResponse::Representation
734
+ command.response_class = Google::Apis::IapV1::ValidateIapAttributeExpressionResponse
735
+ command.params['name'] = name unless name.nil?
736
+ command.query['expression'] = expression unless expression.nil?
737
+ command.query['fields'] = fields unless fields.nil?
738
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
739
+ execute_or_queue_command(command, &block)
740
+ end
706
741
 
707
742
  protected
708
743
 
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.34.0
4
+ version: 0.36.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: 2023-03-26 00:00:00.000000000 Z
11
+ date: 2023-09-10 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-iap_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-iap_v1/v0.34.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iap_v1/v0.36.0
62
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: []
@@ -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.4.2
78
+ rubygems_version: 3.4.19
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Identity-Aware Proxy API V1