google-apis-iap_v1 0.13.0 → 0.14.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 +5 -0
- data/lib/google/apis/iap_v1/classes.rb +59 -2
- data/lib/google/apis/iap_v1/gem_version.rb +3 -3
- data/lib/google/apis/iap_v1/representations.rb +30 -0
- data/lib/google/apis/iap_v1/service.rb +187 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 928c365d3aba539cdf6c421198e12d9b2bc58755c39f587c16b17ab7cb4f1ffe
|
4
|
+
data.tar.gz: 6a365d52a1ff3d68ad6dafd22247ef52439eb0eb3f7ef25a9ecc4a02e3996964
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7457962896474b91df8b135803234d64f191b7efa7e266121097467843cb5e07dc1eb0688f051499ef99bca93afbd7656e100219e92c93334e540dc0c05517ed
|
7
|
+
data.tar.gz: dad97dab955dc4bf74e72919afacb8d585ba0d62be62f3676c40976055adc251925f7ee8ae516daea739899926a974c9294931fe0b958de6a593df37776e94c8
|
data/CHANGELOG.md
CHANGED
@@ -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); `
|
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
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.14.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.4.
|
22
|
+
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220318"
|
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.
|
4
|
+
version: 0.14.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: 2022-
|
11
|
+
date: 2022-03-28 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-iap_v1/v0.14.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.3.
|
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
|