google-apis-iap_v1 0.12.0 → 0.15.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: 846e9262bfc36920dfd6d68b4d5fc66a4e2baacf52780adcaa2542728b02d7a4
4
- data.tar.gz: 3af84f6d5543a87d6ee57c8d9fe37eaad008417cfdb69610dd9bd3a88f265ce3
3
+ metadata.gz: 5aec46408d4be5ffef4d59165e3200c509da2c6c975794996ea6b5214b6e3b81
4
+ data.tar.gz: 1234ac5a10f2bf3d50ba20ce943d1f27dd17dc78e0840388fc32727d30aed4d5
5
5
  SHA512:
6
- metadata.gz: d37de358324d640a731a116eb26d9459baa1857cb44821ea20df850803135ab90857a57caa9e37e3ce09da8fcf93c26151dd69b133c22998244365fd38eaa320
7
- data.tar.gz: 474b8ff1f7951fad4f2b9c35149c0fded495699176da95e15ca5972f0f49499eead54f223b0570b91a1ba766bae266ba1d280c8eb14de5e0afc2857d1dc8170a
6
+ metadata.gz: 42d1c9a757a112dafeecb60fcce01053b42e7d5602e0085585b0f4e8121d2c8d6e9a57bc2fbd4bfaf2ddd5a642d6b1b938deca33039c501fdff3981a33f41ce1
7
+ data.tar.gz: 5d4a51b2490781fc837beb9df4d704f81d27fd53aff9fde6e1aeedb9f1888cb1765ada165cd700f3571750293546ba7d9d346299c675a83f542be67164f7752b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-iap_v1
2
2
 
3
+ ### v0.15.0 (2022-04-13)
4
+
5
+ * Regenerated from discovery document revision 20220408
6
+
7
+ ### v0.14.0 (2022-03-22)
8
+
9
+ * Regenerated from discovery document revision 20220318
10
+ * Regenerated using generator version 0.4.1
11
+
12
+ ### v0.13.0 (2021-12-16)
13
+
14
+ * Unspecified changes
15
+
3
16
  ### v0.12.0 (2021-11-10)
4
17
 
5
18
  * Regenerated from discovery document revision 20211105
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.
@@ -162,7 +162,7 @@ module Google
162
162
  # @return [Google::Apis::IapV1::Expr]
163
163
  attr_accessor :condition
164
164
 
165
- # Specifies the principals requesting access for a Cloud Platform resource. `
165
+ # Specifies the principals requesting access for a Google Cloud resource. `
166
166
  # members` can have the following values: * `allUsers`: A special identifier
167
167
  # that represents anyone who is on the internet; with or without a Google
168
168
  # account. * `allAuthenticatedUsers`: A special identifier that represents
@@ -299,8 +299,7 @@ module Google
299
299
  # A generic empty message that you can re-use to avoid defining duplicated empty
300
300
  # messages in your APIs. A typical example is to use it as the request or the
301
301
  # response type of an API method. For instance: service Foo ` rpc Bar(google.
302
- # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
303
- # `Empty` is empty JSON object ````.
302
+ # protobuf.Empty) returns (google.protobuf.Empty); `
304
303
  class Empty
305
304
  include Google::Apis::Core::Hashable
306
305
 
@@ -552,6 +551,32 @@ module Google
552
551
  end
553
552
  end
554
553
 
554
+ # The response from ListTunnelDestGroups.
555
+ class ListTunnelDestGroupsResponse
556
+ include Google::Apis::Core::Hashable
557
+
558
+ # A token, which can be send as `page_token` to retrieve the next page. If this
559
+ # field is omitted, there are no subsequent pages.
560
+ # Corresponds to the JSON property `nextPageToken`
561
+ # @return [String]
562
+ attr_accessor :next_page_token
563
+
564
+ # TunnelDestGroup existing in the project.
565
+ # Corresponds to the JSON property `tunnelDestGroups`
566
+ # @return [Array<Google::Apis::IapV1::TunnelDestGroup>]
567
+ attr_accessor :tunnel_dest_groups
568
+
569
+ def initialize(**args)
570
+ update!(**args)
571
+ end
572
+
573
+ # Update properties of this object
574
+ def update!(**args)
575
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
576
+ @tunnel_dest_groups = args[:tunnel_dest_groups] if args.key?(:tunnel_dest_groups)
577
+ end
578
+ end
579
+
555
580
  # Configuration for OAuth login&consent flow behavior as well as for OAuth
556
581
  # Credentials.
557
582
  class OAuthSettings
@@ -910,7 +935,7 @@ module Google
910
935
  include Google::Apis::Core::Hashable
911
936
 
912
937
  # The set of permissions to check for the `resource`. Permissions with wildcards
913
- # (such as '*' or 'storage.*') are not allowed. For more information see [IAM
938
+ # (such as `*` or `storage.*`) are not allowed. For more information see [IAM
914
939
  # Overview](https://cloud.google.com/iam/docs/overview#permissions).
915
940
  # Corresponds to the JSON property `permissions`
916
941
  # @return [Array<String>]
@@ -944,6 +969,38 @@ module Google
944
969
  @permissions = args[:permissions] if args.key?(:permissions)
945
970
  end
946
971
  end
972
+
973
+ # A TunnelDestGroup.
974
+ class TunnelDestGroup
975
+ include Google::Apis::Core::Hashable
976
+
977
+ # null List of CIDRs that this group applies to.
978
+ # Corresponds to the JSON property `cidrs`
979
+ # @return [Array<String>]
980
+ attr_accessor :cidrs
981
+
982
+ # null List of FQDNs that this group applies to.
983
+ # Corresponds to the JSON property `fqdns`
984
+ # @return [Array<String>]
985
+ attr_accessor :fqdns
986
+
987
+ # Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within
988
+ # the project.
989
+ # Corresponds to the JSON property `name`
990
+ # @return [String]
991
+ attr_accessor :name
992
+
993
+ def initialize(**args)
994
+ update!(**args)
995
+ end
996
+
997
+ # Update properties of this object
998
+ def update!(**args)
999
+ @cidrs = args[:cidrs] if args.key?(:cidrs)
1000
+ @fqdns = args[:fqdns] if args.key?(:fqdns)
1001
+ @name = args[:name] if args.key?(:name)
1002
+ end
1003
+ end
947
1004
  end
948
1005
  end
949
1006
  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.12.0"
19
+ GEM_VERSION = "0.15.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.4.0"
22
+ GENERATOR_VERSION = "0.4.1"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20211105"
25
+ REVISION = "20220408"
26
26
  end
27
27
  end
28
28
  end
@@ -118,6 +118,12 @@ module Google
118
118
  include Google::Apis::Core::JsonObjectSupport
119
119
  end
120
120
 
121
+ class ListTunnelDestGroupsResponse
122
+ class Representation < Google::Apis::Core::JsonRepresentation; end
123
+
124
+ include Google::Apis::Core::JsonObjectSupport
125
+ end
126
+
121
127
  class OAuthSettings
122
128
  class Representation < Google::Apis::Core::JsonRepresentation; end
123
129
 
@@ -178,6 +184,12 @@ module Google
178
184
  include Google::Apis::Core::JsonObjectSupport
179
185
  end
180
186
 
187
+ class TunnelDestGroup
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
191
+ end
192
+
181
193
  class AccessDeniedPageSettings
182
194
  # @private
183
195
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -323,6 +335,15 @@ module Google
323
335
  end
324
336
  end
325
337
 
338
+ class ListTunnelDestGroupsResponse
339
+ # @private
340
+ class Representation < Google::Apis::Core::JsonRepresentation
341
+ property :next_page_token, as: 'nextPageToken'
342
+ collection :tunnel_dest_groups, as: 'tunnelDestGroups', class: Google::Apis::IapV1::TunnelDestGroup, decorator: Google::Apis::IapV1::TunnelDestGroup::Representation
343
+
344
+ end
345
+ end
346
+
326
347
  class OAuthSettings
327
348
  # @private
328
349
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -407,6 +428,15 @@ module Google
407
428
  collection :permissions, as: 'permissions'
408
429
  end
409
430
  end
431
+
432
+ class TunnelDestGroup
433
+ # @private
434
+ class Representation < Google::Apis::Core::JsonRepresentation
435
+ collection :cidrs, as: 'cidrs'
436
+ collection :fqdns, as: 'fqdns'
437
+ property :name, as: 'name'
438
+ end
439
+ end
410
440
  end
411
441
  end
412
442
  end
@@ -333,6 +333,193 @@ module Google
333
333
  execute_or_queue_command(command, &block)
334
334
  end
335
335
 
336
+ # Creates a new TunnelDestGroup.
337
+ # @param [String] parent
338
+ # Required. GCP Project number/id and location. In the following format:
339
+ # projects/`project_number/id`/iap_tunnel/locations/`location`.
340
+ # @param [Google::Apis::IapV1::TunnelDestGroup] tunnel_dest_group_object
341
+ # @param [String] tunnel_dest_group_id
342
+ # Required. The ID to use for the TunnelDestGroup, which will become the final
343
+ # component of the resource name. This value should be 4-63 characters, and
344
+ # valid characters are /a-z-/.
345
+ # @param [String] fields
346
+ # Selector specifying which fields to include in a partial response.
347
+ # @param [String] quota_user
348
+ # Available to use for quota purposes for server-side applications. Can be any
349
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
350
+ # @param [Google::Apis::RequestOptions] options
351
+ # Request-specific options
352
+ #
353
+ # @yield [result, err] Result & error if block supplied
354
+ # @yieldparam result [Google::Apis::IapV1::TunnelDestGroup] parsed result object
355
+ # @yieldparam err [StandardError] error object if request failed
356
+ #
357
+ # @return [Google::Apis::IapV1::TunnelDestGroup]
358
+ #
359
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
360
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
361
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
362
+ def create_project_iap_tunnel_location_dest_group(parent, tunnel_dest_group_object = nil, tunnel_dest_group_id: nil, fields: nil, quota_user: nil, options: nil, &block)
363
+ command = make_simple_command(:post, 'v1/{+parent}/destGroups', options)
364
+ command.request_representation = Google::Apis::IapV1::TunnelDestGroup::Representation
365
+ command.request_object = tunnel_dest_group_object
366
+ command.response_representation = Google::Apis::IapV1::TunnelDestGroup::Representation
367
+ command.response_class = Google::Apis::IapV1::TunnelDestGroup
368
+ command.params['parent'] = parent unless parent.nil?
369
+ command.query['tunnelDestGroupId'] = tunnel_dest_group_id unless tunnel_dest_group_id.nil?
370
+ command.query['fields'] = fields unless fields.nil?
371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
372
+ execute_or_queue_command(command, &block)
373
+ end
374
+
375
+ # Deletes a TunnelDestGroup.
376
+ # @param [String] name
377
+ # Required. Name of the TunnelDestGroup to be deleted. In the following format:
378
+ # projects/`project_number/id`/iap_tunnel/locations/`location`/destGroups/`
379
+ # dest_group`.
380
+ # @param [String] fields
381
+ # Selector specifying which fields to include in a partial response.
382
+ # @param [String] quota_user
383
+ # Available to use for quota purposes for server-side applications. Can be any
384
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
385
+ # @param [Google::Apis::RequestOptions] options
386
+ # Request-specific options
387
+ #
388
+ # @yield [result, err] Result & error if block supplied
389
+ # @yieldparam result [Google::Apis::IapV1::Empty] parsed result object
390
+ # @yieldparam err [StandardError] error object if request failed
391
+ #
392
+ # @return [Google::Apis::IapV1::Empty]
393
+ #
394
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
395
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
396
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
397
+ def delete_project_iap_tunnel_location_dest_group(name, fields: nil, quota_user: nil, options: nil, &block)
398
+ command = make_simple_command(:delete, 'v1/{+name}', options)
399
+ command.response_representation = Google::Apis::IapV1::Empty::Representation
400
+ command.response_class = Google::Apis::IapV1::Empty
401
+ command.params['name'] = name unless name.nil?
402
+ command.query['fields'] = fields unless fields.nil?
403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
404
+ execute_or_queue_command(command, &block)
405
+ end
406
+
407
+ # Retrieves an existing TunnelDestGroup.
408
+ # @param [String] name
409
+ # Required. Name of the TunnelDestGroup to be fetched. In the following format:
410
+ # projects/`project_number/id`/iap_tunnel/locations/`location`/destGroups/`
411
+ # dest_group`.
412
+ # @param [String] fields
413
+ # Selector specifying which fields to include in a partial response.
414
+ # @param [String] quota_user
415
+ # Available to use for quota purposes for server-side applications. Can be any
416
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
417
+ # @param [Google::Apis::RequestOptions] options
418
+ # Request-specific options
419
+ #
420
+ # @yield [result, err] Result & error if block supplied
421
+ # @yieldparam result [Google::Apis::IapV1::TunnelDestGroup] parsed result object
422
+ # @yieldparam err [StandardError] error object if request failed
423
+ #
424
+ # @return [Google::Apis::IapV1::TunnelDestGroup]
425
+ #
426
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
427
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
428
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
429
+ def get_project_iap_tunnel_location_dest_group(name, fields: nil, quota_user: nil, options: nil, &block)
430
+ command = make_simple_command(:get, 'v1/{+name}', options)
431
+ command.response_representation = Google::Apis::IapV1::TunnelDestGroup::Representation
432
+ command.response_class = Google::Apis::IapV1::TunnelDestGroup
433
+ command.params['name'] = name unless name.nil?
434
+ command.query['fields'] = fields unless fields.nil?
435
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
436
+ execute_or_queue_command(command, &block)
437
+ end
438
+
439
+ # Lists the existing TunnelDestGroups. To group across all locations, use a `-`
440
+ # as the location ID. For example: /v1/projects/123/iap_tunnel/locations/-/
441
+ # destGroups
442
+ # @param [String] parent
443
+ # Required. GCP Project number/id and location. In the following format:
444
+ # projects/`project_number/id`/iap_tunnel/locations/`location`. A `-` can be
445
+ # used for the location to group across all locations.
446
+ # @param [Fixnum] page_size
447
+ # The maximum number of groups to return. The service may return fewer than this
448
+ # value. If unspecified, at most 100 groups will be returned. The maximum value
449
+ # is 1000; values above 1000 will be coerced to 1000.
450
+ # @param [String] page_token
451
+ # A page token, received from a previous `ListTunnelDestGroups` call. Provide
452
+ # this to retrieve the subsequent page. When paginating, all other parameters
453
+ # provided to `ListTunnelDestGroups` must match the call that provided the page
454
+ # token.
455
+ # @param [String] fields
456
+ # Selector specifying which fields to include in a partial response.
457
+ # @param [String] quota_user
458
+ # Available to use for quota purposes for server-side applications. Can be any
459
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
460
+ # @param [Google::Apis::RequestOptions] options
461
+ # Request-specific options
462
+ #
463
+ # @yield [result, err] Result & error if block supplied
464
+ # @yieldparam result [Google::Apis::IapV1::ListTunnelDestGroupsResponse] parsed result object
465
+ # @yieldparam err [StandardError] error object if request failed
466
+ #
467
+ # @return [Google::Apis::IapV1::ListTunnelDestGroupsResponse]
468
+ #
469
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
470
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
471
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
472
+ def list_project_iap_tunnel_location_dest_groups(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
473
+ command = make_simple_command(:get, 'v1/{+parent}/destGroups', options)
474
+ command.response_representation = Google::Apis::IapV1::ListTunnelDestGroupsResponse::Representation
475
+ command.response_class = Google::Apis::IapV1::ListTunnelDestGroupsResponse
476
+ command.params['parent'] = parent unless parent.nil?
477
+ command.query['pageSize'] = page_size unless page_size.nil?
478
+ command.query['pageToken'] = page_token unless page_token.nil?
479
+ command.query['fields'] = fields unless fields.nil?
480
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
481
+ execute_or_queue_command(command, &block)
482
+ end
483
+
484
+ # Updates a TunnelDestGroup.
485
+ # @param [String] name
486
+ # Required. Immutable. Identifier for the TunnelDestGroup. Must be unique within
487
+ # the project.
488
+ # @param [Google::Apis::IapV1::TunnelDestGroup] tunnel_dest_group_object
489
+ # @param [String] update_mask
490
+ # The field mask specifying which IAP settings should be updated. If omitted,
491
+ # then all of the settings are updated. See https://developers.google.com/
492
+ # protocol-buffers/docs/reference/google.protobuf#fieldmask
493
+ # @param [String] fields
494
+ # Selector specifying which fields to include in a partial response.
495
+ # @param [String] quota_user
496
+ # Available to use for quota purposes for server-side applications. Can be any
497
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
498
+ # @param [Google::Apis::RequestOptions] options
499
+ # Request-specific options
500
+ #
501
+ # @yield [result, err] Result & error if block supplied
502
+ # @yieldparam result [Google::Apis::IapV1::TunnelDestGroup] parsed result object
503
+ # @yieldparam err [StandardError] error object if request failed
504
+ #
505
+ # @return [Google::Apis::IapV1::TunnelDestGroup]
506
+ #
507
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
508
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
509
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
510
+ def patch_project_iap_tunnel_location_dest_group(name, tunnel_dest_group_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
511
+ command = make_simple_command(:patch, 'v1/{+name}', options)
512
+ command.request_representation = Google::Apis::IapV1::TunnelDestGroup::Representation
513
+ command.request_object = tunnel_dest_group_object
514
+ command.response_representation = Google::Apis::IapV1::TunnelDestGroup::Representation
515
+ command.response_class = Google::Apis::IapV1::TunnelDestGroup
516
+ command.params['name'] = name unless name.nil?
517
+ command.query['updateMask'] = update_mask unless update_mask.nil?
518
+ command.query['fields'] = fields unless fields.nil?
519
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
520
+ execute_or_queue_command(command, &block)
521
+ end
522
+
336
523
  # Gets the access control policy for an Identity-Aware Proxy protected resource.
337
524
  # More information about managing access via IAP can be found at: https://cloud.
338
525
  # google.com/iap/docs/managing-access#managing_access_via_the_api
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.12.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-15 00:00:00.000000000 Z
11
+ date: 2022-04-18 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.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-iap_v1/v0.15.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.2.17
78
+ rubygems_version: 3.3.5
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Simple REST client for Cloud Identity-Aware Proxy API V1