google-apis-networkconnectivity_v1 0.18.0 → 0.19.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: fa4772e589428bcf17fd14b684d802b1c9ce95e3fa95bf3886d815db201f8b94
4
- data.tar.gz: fe3ae13dafa15e305cd41789277a991cbd064c5c9b9a3b629c962ef4619788b3
3
+ metadata.gz: 649c1580799d2f838b6ec68b6da04cd42d4c2535872b55de71fb931bbf149aa0
4
+ data.tar.gz: a59ad1336d09dc0f1fac3600f748ff45b6649bfed7f44eacf992a447997c7186
5
5
  SHA512:
6
- metadata.gz: 9e4b356bb843c409e3e3fb7b941ce686ad3f93ad66fa89b68cd65332f5ab09c9ff07e10ea7c6eb3fb5fe0902abc2ecd9e897b2786c5894db44c62686af7c8d5a
7
- data.tar.gz: 145147742fd07594d1f49c4a94e91555b4b73c0baf927cd830b224572a38e6e873bda0c3e78b750df5ceb628723efd2e14b90109749ce49376f54db9e6e62f6d
6
+ metadata.gz: 86f8bce240d28f36a765efa0909dfdf314a785549bf7887353025160fd24a397eed7086e4457e3264ab0d7edeba05362862df2d83bea79d1fabb5f935b12d7cb
7
+ data.tar.gz: e614e67b28e02ca974ee04b95a9825fef359056d990cee17ed312493f1eeaf761fc910d6f621ea33b2c379626eba3cb0f3968ddae9401806b537d96ab82f20d7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-networkconnectivity_v1
2
2
 
3
+ ### v0.19.0 (2022-10-27)
4
+
5
+ * Regenerated from discovery document revision 20221020
6
+
3
7
  ### v0.18.0 (2022-10-19)
4
8
 
5
9
  * Regenerated using generator version 0.11.0
@@ -450,6 +450,117 @@ module Google
450
450
  end
451
451
  end
452
452
 
453
+ # The InternalRange resource for IPAM operations within a VPC network. Used to
454
+ # represent a private address range along with behavioral characterstics of that
455
+ # range (it's usage and peering behavior). Networking resources can link to this
456
+ # range if they are created as belonging to it. Next id: 14
457
+ class InternalRange
458
+ include Google::Apis::Core::Hashable
459
+
460
+ # Time when the InternalRange was created.
461
+ # Corresponds to the JSON property `createTime`
462
+ # @return [String]
463
+ attr_accessor :create_time
464
+
465
+ # A description of this resource.
466
+ # Corresponds to the JSON property `description`
467
+ # @return [String]
468
+ attr_accessor :description
469
+
470
+ # IP range that this InternalRange defines.
471
+ # Corresponds to the JSON property `ipCidrRange`
472
+ # @return [String]
473
+ attr_accessor :ip_cidr_range
474
+
475
+ # User-defined labels.
476
+ # Corresponds to the JSON property `labels`
477
+ # @return [Hash<String,String>]
478
+ attr_accessor :labels
479
+
480
+ # Immutable. The name of a InternalRange. Format: projects/`project`/locations/`
481
+ # location`/internalRanges/`internal_range` See: https://google.aip.dev/122#
482
+ # fields-representing-resource-names
483
+ # Corresponds to the JSON property `name`
484
+ # @return [String]
485
+ attr_accessor :name
486
+
487
+ # The URL or resource ID of the network in which to reserve the Internal Range.
488
+ # The network cannot be deleted if there are any reserved Internal Ranges
489
+ # referring to it. Legacy network is not supported. This can only be specified
490
+ # for a global internal address. Example: - URL: /compute/v1/projects/`project`/
491
+ # global/networks/`resourceId` - ID: network123
492
+ # Corresponds to the JSON property `network`
493
+ # @return [String]
494
+ attr_accessor :network
495
+
496
+ # Optional. Types of resources that are allowed to overlap with the current
497
+ # InternalRange.
498
+ # Corresponds to the JSON property `overlaps`
499
+ # @return [Array<String>]
500
+ attr_accessor :overlaps
501
+
502
+ # The type of peering set for this InternalRange.
503
+ # Corresponds to the JSON property `peering`
504
+ # @return [String]
505
+ attr_accessor :peering
506
+
507
+ # An alternate to ip_cidr_range. Can be set when trying to create a reservation
508
+ # that automatically finds a free range of the given size. If both ip_cidr_range
509
+ # and prefix_length are set, it's an error if the range sizes don't match. Can
510
+ # also be used during updates to change the range size.
511
+ # Corresponds to the JSON property `prefixLength`
512
+ # @return [Fixnum]
513
+ attr_accessor :prefix_length
514
+
515
+ # Optional. Can be set to narrow down or pick a different address space while
516
+ # searching for a free range. If not set, defaults to the "10.0.0.0/8" address
517
+ # space. This can be used to search in other rfc-1918 address spaces like "172.
518
+ # 16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
519
+ # Corresponds to the JSON property `targetCidrRange`
520
+ # @return [Array<String>]
521
+ attr_accessor :target_cidr_range
522
+
523
+ # Time when the InternalRange was updated.
524
+ # Corresponds to the JSON property `updateTime`
525
+ # @return [String]
526
+ attr_accessor :update_time
527
+
528
+ # The type of usage set for this InternalRange.
529
+ # Corresponds to the JSON property `usage`
530
+ # @return [String]
531
+ attr_accessor :usage
532
+
533
+ # Output only. The list of resources that refer to this internal range.
534
+ # Resources that use the InternalRange for their range allocation are referred
535
+ # to as users of the range. Other resources mark themselves as users while doing
536
+ # so by creating a reference to this InternalRange. Having a user, based on this
537
+ # reference, prevents deletion of the InternalRange referred to. Can be empty.
538
+ # Corresponds to the JSON property `users`
539
+ # @return [Array<String>]
540
+ attr_accessor :users
541
+
542
+ def initialize(**args)
543
+ update!(**args)
544
+ end
545
+
546
+ # Update properties of this object
547
+ def update!(**args)
548
+ @create_time = args[:create_time] if args.key?(:create_time)
549
+ @description = args[:description] if args.key?(:description)
550
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
551
+ @labels = args[:labels] if args.key?(:labels)
552
+ @name = args[:name] if args.key?(:name)
553
+ @network = args[:network] if args.key?(:network)
554
+ @overlaps = args[:overlaps] if args.key?(:overlaps)
555
+ @peering = args[:peering] if args.key?(:peering)
556
+ @prefix_length = args[:prefix_length] if args.key?(:prefix_length)
557
+ @target_cidr_range = args[:target_cidr_range] if args.key?(:target_cidr_range)
558
+ @update_time = args[:update_time] if args.key?(:update_time)
559
+ @usage = args[:usage] if args.key?(:usage)
560
+ @users = args[:users] if args.key?(:users)
561
+ end
562
+ end
563
+
453
564
  # A collection of VLAN attachment resources. These resources should be redundant
454
565
  # attachments that all advertise the same prefixes to Google Cloud.
455
566
  # Alternatively, in active/passive configurations, all attachments should be
@@ -471,6 +582,11 @@ module Google
471
582
  # @return [Array<String>]
472
583
  attr_accessor :uris
473
584
 
585
+ # Output only. The VPC network where these VLAN attachments are located.
586
+ # Corresponds to the JSON property `vpcNetwork`
587
+ # @return [String]
588
+ attr_accessor :vpc_network
589
+
474
590
  def initialize(**args)
475
591
  update!(**args)
476
592
  end
@@ -479,6 +595,7 @@ module Google
479
595
  def update!(**args)
480
596
  @site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
481
597
  @uris = args[:uris] if args.key?(:uris)
598
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
482
599
  end
483
600
  end
484
601
 
@@ -503,6 +620,12 @@ module Google
503
620
  attr_accessor :site_to_site_data_transfer
504
621
  alias_method :site_to_site_data_transfer?, :site_to_site_data_transfer
505
622
 
623
+ # Output only. The VPC network where these router appliance instances are
624
+ # located.
625
+ # Corresponds to the JSON property `vpcNetwork`
626
+ # @return [String]
627
+ attr_accessor :vpc_network
628
+
506
629
  def initialize(**args)
507
630
  update!(**args)
508
631
  end
@@ -511,6 +634,7 @@ module Google
511
634
  def update!(**args)
512
635
  @instances = args[:instances] if args.key?(:instances)
513
636
  @site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
637
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
514
638
  end
515
639
  end
516
640
 
@@ -535,6 +659,11 @@ module Google
535
659
  # @return [Array<String>]
536
660
  attr_accessor :uris
537
661
 
662
+ # Output only. The VPC network where these VPN tunnels are located.
663
+ # Corresponds to the JSON property `vpcNetwork`
664
+ # @return [String]
665
+ attr_accessor :vpc_network
666
+
538
667
  def initialize(**args)
539
668
  update!(**args)
540
669
  end
@@ -543,6 +672,7 @@ module Google
543
672
  def update!(**args)
544
673
  @site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
545
674
  @uris = args[:uris] if args.key?(:uris)
675
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
546
676
  end
547
677
  end
548
678
 
@@ -578,6 +708,38 @@ module Google
578
708
  end
579
709
  end
580
710
 
711
+ # Response for InternalRange.ListInternalRanges
712
+ class ListInternalRangesResponse
713
+ include Google::Apis::Core::Hashable
714
+
715
+ # InternalRanges to be returned.
716
+ # Corresponds to the JSON property `internalRanges`
717
+ # @return [Array<Google::Apis::NetworkconnectivityV1::InternalRange>]
718
+ attr_accessor :internal_ranges
719
+
720
+ # The next pagination token in the List response. It should be used as
721
+ # page_token for the following request. An empty value means no more result.
722
+ # Corresponds to the JSON property `nextPageToken`
723
+ # @return [String]
724
+ attr_accessor :next_page_token
725
+
726
+ # Locations that could not be reached.
727
+ # Corresponds to the JSON property `unreachable`
728
+ # @return [Array<String>]
729
+ attr_accessor :unreachable
730
+
731
+ def initialize(**args)
732
+ update!(**args)
733
+ end
734
+
735
+ # Update properties of this object
736
+ def update!(**args)
737
+ @internal_ranges = args[:internal_ranges] if args.key?(:internal_ranges)
738
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
739
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
740
+ end
741
+ end
742
+
581
743
  # The response message for Locations.ListLocations.
582
744
  class ListLocationsResponse
583
745
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkconnectivityV1
18
18
  # Version of the google-apis-networkconnectivity_v1 gem
19
- GEM_VERSION = "0.18.0"
19
+ GEM_VERSION = "0.19.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.11.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220912"
25
+ REVISION = "20221020"
26
26
  end
27
27
  end
28
28
  end
@@ -82,6 +82,12 @@ module Google
82
82
  include Google::Apis::Core::JsonObjectSupport
83
83
  end
84
84
 
85
+ class InternalRange
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
85
91
  class LinkedInterconnectAttachments
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
@@ -106,6 +112,12 @@ module Google
106
112
  include Google::Apis::Core::JsonObjectSupport
107
113
  end
108
114
 
115
+ class ListInternalRangesResponse
116
+ class Representation < Google::Apis::Core::JsonRepresentation; end
117
+
118
+ include Google::Apis::Core::JsonObjectSupport
119
+ end
120
+
109
121
  class ListLocationsResponse
110
122
  class Representation < Google::Apis::Core::JsonRepresentation; end
111
123
 
@@ -272,11 +284,31 @@ module Google
272
284
  end
273
285
  end
274
286
 
287
+ class InternalRange
288
+ # @private
289
+ class Representation < Google::Apis::Core::JsonRepresentation
290
+ property :create_time, as: 'createTime'
291
+ property :description, as: 'description'
292
+ property :ip_cidr_range, as: 'ipCidrRange'
293
+ hash :labels, as: 'labels'
294
+ property :name, as: 'name'
295
+ property :network, as: 'network'
296
+ collection :overlaps, as: 'overlaps'
297
+ property :peering, as: 'peering'
298
+ property :prefix_length, as: 'prefixLength'
299
+ collection :target_cidr_range, as: 'targetCidrRange'
300
+ property :update_time, as: 'updateTime'
301
+ property :usage, as: 'usage'
302
+ collection :users, as: 'users'
303
+ end
304
+ end
305
+
275
306
  class LinkedInterconnectAttachments
276
307
  # @private
277
308
  class Representation < Google::Apis::Core::JsonRepresentation
278
309
  property :site_to_site_data_transfer, as: 'siteToSiteDataTransfer'
279
310
  collection :uris, as: 'uris'
311
+ property :vpc_network, as: 'vpcNetwork'
280
312
  end
281
313
  end
282
314
 
@@ -286,6 +318,7 @@ module Google
286
318
  collection :instances, as: 'instances', class: Google::Apis::NetworkconnectivityV1::RouterApplianceInstance, decorator: Google::Apis::NetworkconnectivityV1::RouterApplianceInstance::Representation
287
319
 
288
320
  property :site_to_site_data_transfer, as: 'siteToSiteDataTransfer'
321
+ property :vpc_network, as: 'vpcNetwork'
289
322
  end
290
323
  end
291
324
 
@@ -294,6 +327,7 @@ module Google
294
327
  class Representation < Google::Apis::Core::JsonRepresentation
295
328
  property :site_to_site_data_transfer, as: 'siteToSiteDataTransfer'
296
329
  collection :uris, as: 'uris'
330
+ property :vpc_network, as: 'vpcNetwork'
297
331
  end
298
332
  end
299
333
 
@@ -307,6 +341,16 @@ module Google
307
341
  end
308
342
  end
309
343
 
344
+ class ListInternalRangesResponse
345
+ # @private
346
+ class Representation < Google::Apis::Core::JsonRepresentation
347
+ collection :internal_ranges, as: 'internalRanges', class: Google::Apis::NetworkconnectivityV1::InternalRange, decorator: Google::Apis::NetworkconnectivityV1::InternalRange::Representation
348
+
349
+ property :next_page_token, as: 'nextPageToken'
350
+ collection :unreachable, as: 'unreachable'
351
+ end
352
+ end
353
+
310
354
  class ListLocationsResponse
311
355
  # @private
312
356
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -582,6 +582,224 @@ module Google
582
582
  execute_or_queue_command(command, &block)
583
583
  end
584
584
 
585
+ # Creates a new InternalRange in a given project and location.
586
+ # @param [String] parent
587
+ # Required. The parent resource's name of the InternalRange.
588
+ # @param [Google::Apis::NetworkconnectivityV1::InternalRange] internal_range_object
589
+ # @param [String] internal_range_id
590
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
591
+ # internalRanges/foo') See https://google.aip.dev/122#resource-id-segments
592
+ # Unique per location.
593
+ # @param [String] request_id
594
+ # Optional. An optional request ID to identify requests. Specify a unique
595
+ # request ID so that if you must retry your request, the server will know to
596
+ # ignore the request if it has already been completed. The server will guarantee
597
+ # that for at least 60 minutes since the first request. For example, consider a
598
+ # situation where you make an initial request and t he request times out. If you
599
+ # make the request again with the same request ID, the server can check if
600
+ # original operation with the same request ID was received, and if so, will
601
+ # ignore the second request. This prevents clients from accidentally creating
602
+ # duplicate commitments. The request ID must be a valid UUID with the exception
603
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
604
+ # @param [String] fields
605
+ # Selector specifying which fields to include in a partial response.
606
+ # @param [String] quota_user
607
+ # Available to use for quota purposes for server-side applications. Can be any
608
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
609
+ # @param [Google::Apis::RequestOptions] options
610
+ # Request-specific options
611
+ #
612
+ # @yield [result, err] Result & error if block supplied
613
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
614
+ # @yieldparam err [StandardError] error object if request failed
615
+ #
616
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
617
+ #
618
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
619
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
620
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
621
+ def create_project_location_internal_range(parent, internal_range_object = nil, internal_range_id: nil, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
622
+ command = make_simple_command(:post, 'v1/{+parent}/internalRanges', options)
623
+ command.request_representation = Google::Apis::NetworkconnectivityV1::InternalRange::Representation
624
+ command.request_object = internal_range_object
625
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
626
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
627
+ command.params['parent'] = parent unless parent.nil?
628
+ command.query['internalRangeId'] = internal_range_id unless internal_range_id.nil?
629
+ command.query['requestId'] = request_id unless request_id.nil?
630
+ command.query['fields'] = fields unless fields.nil?
631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
632
+ execute_or_queue_command(command, &block)
633
+ end
634
+
635
+ # Deletes a single InternalRange.
636
+ # @param [String] name
637
+ # Required. The name of the InternalRange to delete.
638
+ # @param [String] request_id
639
+ # Optional. An optional request ID to identify requests. Specify a unique
640
+ # request ID so that if you must retry your request, the server will know to
641
+ # ignore the request if it has already been completed. The server will guarantee
642
+ # that for at least 60 minutes after the first request. For example, consider a
643
+ # situation where you make an initial request and t he request times out. If you
644
+ # make the request again with the same request ID, the server can check if
645
+ # original operation with the same request ID was received, and if so, will
646
+ # ignore the second request. This prevents clients from accidentally creating
647
+ # duplicate commitments. The request ID must be a valid UUID with the exception
648
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
649
+ # @param [String] fields
650
+ # Selector specifying which fields to include in a partial response.
651
+ # @param [String] quota_user
652
+ # Available to use for quota purposes for server-side applications. Can be any
653
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
654
+ # @param [Google::Apis::RequestOptions] options
655
+ # Request-specific options
656
+ #
657
+ # @yield [result, err] Result & error if block supplied
658
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
659
+ # @yieldparam err [StandardError] error object if request failed
660
+ #
661
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
662
+ #
663
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
664
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
665
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
666
+ def delete_project_location_internal_range(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
667
+ command = make_simple_command(:delete, 'v1/{+name}', options)
668
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
669
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
670
+ command.params['name'] = name unless name.nil?
671
+ command.query['requestId'] = request_id unless request_id.nil?
672
+ command.query['fields'] = fields unless fields.nil?
673
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
674
+ execute_or_queue_command(command, &block)
675
+ end
676
+
677
+ # Gets details of a single InternalRange.
678
+ # @param [String] name
679
+ # Required. Name of the InternalRange to get.
680
+ # @param [String] fields
681
+ # Selector specifying which fields to include in a partial response.
682
+ # @param [String] quota_user
683
+ # Available to use for quota purposes for server-side applications. Can be any
684
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
685
+ # @param [Google::Apis::RequestOptions] options
686
+ # Request-specific options
687
+ #
688
+ # @yield [result, err] Result & error if block supplied
689
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::InternalRange] parsed result object
690
+ # @yieldparam err [StandardError] error object if request failed
691
+ #
692
+ # @return [Google::Apis::NetworkconnectivityV1::InternalRange]
693
+ #
694
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
695
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
696
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
697
+ def get_project_location_internal_range(name, fields: nil, quota_user: nil, options: nil, &block)
698
+ command = make_simple_command(:get, 'v1/{+name}', options)
699
+ command.response_representation = Google::Apis::NetworkconnectivityV1::InternalRange::Representation
700
+ command.response_class = Google::Apis::NetworkconnectivityV1::InternalRange
701
+ command.params['name'] = name unless name.nil?
702
+ command.query['fields'] = fields unless fields.nil?
703
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
704
+ execute_or_queue_command(command, &block)
705
+ end
706
+
707
+ # Lists InternalRanges in a given project and location.
708
+ # @param [String] parent
709
+ # Required. The parent resource's name.
710
+ # @param [String] filter
711
+ # A filter expression that filters the results listed in the response.
712
+ # @param [String] order_by
713
+ # Sort the results by a certain order.
714
+ # @param [Fixnum] page_size
715
+ # The maximum number of results per page that should be returned.
716
+ # @param [String] page_token
717
+ # The page token.
718
+ # @param [String] fields
719
+ # Selector specifying which fields to include in a partial response.
720
+ # @param [String] quota_user
721
+ # Available to use for quota purposes for server-side applications. Can be any
722
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
723
+ # @param [Google::Apis::RequestOptions] options
724
+ # Request-specific options
725
+ #
726
+ # @yield [result, err] Result & error if block supplied
727
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::ListInternalRangesResponse] parsed result object
728
+ # @yieldparam err [StandardError] error object if request failed
729
+ #
730
+ # @return [Google::Apis::NetworkconnectivityV1::ListInternalRangesResponse]
731
+ #
732
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
733
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
734
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
735
+ def list_project_location_internal_ranges(parent, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
736
+ command = make_simple_command(:get, 'v1/{+parent}/internalRanges', options)
737
+ command.response_representation = Google::Apis::NetworkconnectivityV1::ListInternalRangesResponse::Representation
738
+ command.response_class = Google::Apis::NetworkconnectivityV1::ListInternalRangesResponse
739
+ command.params['parent'] = parent unless parent.nil?
740
+ command.query['filter'] = filter unless filter.nil?
741
+ command.query['orderBy'] = order_by unless order_by.nil?
742
+ command.query['pageSize'] = page_size unless page_size.nil?
743
+ command.query['pageToken'] = page_token unless page_token.nil?
744
+ command.query['fields'] = fields unless fields.nil?
745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
746
+ execute_or_queue_command(command, &block)
747
+ end
748
+
749
+ # Updates the parameters of a single InternalRange.
750
+ # @param [String] name
751
+ # Immutable. The name of a InternalRange. Format: projects/`project`/locations/`
752
+ # location`/internalRanges/`internal_range` See: https://google.aip.dev/122#
753
+ # fields-representing-resource-names
754
+ # @param [Google::Apis::NetworkconnectivityV1::InternalRange] internal_range_object
755
+ # @param [String] request_id
756
+ # Optional. An optional request ID to identify requests. Specify a unique
757
+ # request ID so that if you must retry your request, the server will know to
758
+ # ignore the request if it has already been completed. The server will guarantee
759
+ # that for at least 60 minutes since the first request. For example, consider a
760
+ # situation where you make an initial request and t he request times out. If you
761
+ # make the request again with the same request ID, the server can check if
762
+ # original operation with the same request ID was received, and if so, will
763
+ # ignore the second request. This prevents clients from accidentally creating
764
+ # duplicate commitments. The request ID must be a valid UUID with the exception
765
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
766
+ # @param [String] update_mask
767
+ # Optional. Field mask is used to specify the fields to be overwritten in the
768
+ # InternalRange resource by the update. The fields specified in the update_mask
769
+ # are relative to the resource, not the full request. A field will be
770
+ # overwritten if it is in the mask. If the user does not provide a mask then all
771
+ # fields will be overwritten.
772
+ # @param [String] fields
773
+ # Selector specifying which fields to include in a partial response.
774
+ # @param [String] quota_user
775
+ # Available to use for quota purposes for server-side applications. Can be any
776
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
777
+ # @param [Google::Apis::RequestOptions] options
778
+ # Request-specific options
779
+ #
780
+ # @yield [result, err] Result & error if block supplied
781
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation] parsed result object
782
+ # @yieldparam err [StandardError] error object if request failed
783
+ #
784
+ # @return [Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation]
785
+ #
786
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
787
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
788
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
789
+ def patch_project_location_internal_range(name, internal_range_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
790
+ command = make_simple_command(:patch, 'v1/{+name}', options)
791
+ command.request_representation = Google::Apis::NetworkconnectivityV1::InternalRange::Representation
792
+ command.request_object = internal_range_object
793
+ command.response_representation = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation::Representation
794
+ command.response_class = Google::Apis::NetworkconnectivityV1::GoogleLongrunningOperation
795
+ command.params['name'] = name unless name.nil?
796
+ command.query['requestId'] = request_id unless request_id.nil?
797
+ command.query['updateMask'] = update_mask unless update_mask.nil?
798
+ command.query['fields'] = fields unless fields.nil?
799
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
800
+ execute_or_queue_command(command, &block)
801
+ end
802
+
585
803
  # Starts asynchronous cancellation on a long-running operation. The server makes
586
804
  # a best effort to cancel the operation, but success is not guaranteed. If the
587
805
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -732,6 +950,369 @@ module Google
732
950
  execute_or_queue_command(command, &block)
733
951
  end
734
952
 
953
+ # Gets the access control policy for a resource. Returns an empty policy if the
954
+ # resource exists and does not have a policy set.
955
+ # @param [String] resource
956
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
957
+ # names](https://cloud.google.com/apis/design/resource_names) for the
958
+ # appropriate value for this field.
959
+ # @param [Fixnum] options_requested_policy_version
960
+ # Optional. The maximum policy version that will be used to format the policy.
961
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
962
+ # rejected. Requests for policies with any conditional role bindings must
963
+ # specify version 3. Policies with no conditional role bindings may specify any
964
+ # valid value or leave the field unset. The policy in the response might use the
965
+ # policy version that you specified, or it might use a lower policy version. For
966
+ # example, if you specify version 3, but the policy has no conditional role
967
+ # bindings, the response uses version 1. To learn which resources support
968
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
969
+ # google.com/iam/help/conditions/resource-policies).
970
+ # @param [String] fields
971
+ # Selector specifying which fields to include in a partial response.
972
+ # @param [String] quota_user
973
+ # Available to use for quota purposes for server-side applications. Can be any
974
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
975
+ # @param [Google::Apis::RequestOptions] options
976
+ # Request-specific options
977
+ #
978
+ # @yield [result, err] Result & error if block supplied
979
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
980
+ # @yieldparam err [StandardError] error object if request failed
981
+ #
982
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
983
+ #
984
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
985
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
986
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
987
+ def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
988
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
989
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
990
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
991
+ command.params['resource'] = resource unless resource.nil?
992
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
993
+ command.query['fields'] = fields unless fields.nil?
994
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
995
+ execute_or_queue_command(command, &block)
996
+ end
997
+
998
+ # Sets the access control policy on the specified resource. Replaces any
999
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1000
+ # PERMISSION_DENIED` errors.
1001
+ # @param [String] resource
1002
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1003
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1004
+ # appropriate value for this field.
1005
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1006
+ # @param [String] fields
1007
+ # Selector specifying which fields to include in a partial response.
1008
+ # @param [String] quota_user
1009
+ # Available to use for quota purposes for server-side applications. Can be any
1010
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1011
+ # @param [Google::Apis::RequestOptions] options
1012
+ # Request-specific options
1013
+ #
1014
+ # @yield [result, err] Result & error if block supplied
1015
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1016
+ # @yieldparam err [StandardError] error object if request failed
1017
+ #
1018
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1019
+ #
1020
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1021
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1022
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1023
+ def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1024
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1025
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1026
+ command.request_object = set_iam_policy_request_object
1027
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1028
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1029
+ command.params['resource'] = resource unless resource.nil?
1030
+ command.query['fields'] = fields unless fields.nil?
1031
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1032
+ execute_or_queue_command(command, &block)
1033
+ end
1034
+
1035
+ # Returns permissions that a caller has on the specified resource. If the
1036
+ # resource does not exist, this will return an empty set of permissions, not a `
1037
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1038
+ # permission-aware UIs and command-line tools, not for authorization checking.
1039
+ # This operation may "fail open" without warning.
1040
+ # @param [String] resource
1041
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1042
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1043
+ # appropriate value for this field.
1044
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1045
+ # @param [String] fields
1046
+ # Selector specifying which fields to include in a partial response.
1047
+ # @param [String] quota_user
1048
+ # Available to use for quota purposes for server-side applications. Can be any
1049
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1050
+ # @param [Google::Apis::RequestOptions] options
1051
+ # Request-specific options
1052
+ #
1053
+ # @yield [result, err] Result & error if block supplied
1054
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1055
+ # @yieldparam err [StandardError] error object if request failed
1056
+ #
1057
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1058
+ #
1059
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1060
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1061
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1062
+ def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1063
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1064
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1065
+ command.request_object = test_iam_permissions_request_object
1066
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1067
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1068
+ command.params['resource'] = resource unless resource.nil?
1069
+ command.query['fields'] = fields unless fields.nil?
1070
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1071
+ execute_or_queue_command(command, &block)
1072
+ end
1073
+
1074
+ # Gets the access control policy for a resource. Returns an empty policy if the
1075
+ # resource exists and does not have a policy set.
1076
+ # @param [String] resource
1077
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1078
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1079
+ # appropriate value for this field.
1080
+ # @param [Fixnum] options_requested_policy_version
1081
+ # Optional. The maximum policy version that will be used to format the policy.
1082
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1083
+ # rejected. Requests for policies with any conditional role bindings must
1084
+ # specify version 3. Policies with no conditional role bindings may specify any
1085
+ # valid value or leave the field unset. The policy in the response might use the
1086
+ # policy version that you specified, or it might use a lower policy version. For
1087
+ # example, if you specify version 3, but the policy has no conditional role
1088
+ # bindings, the response uses version 1. To learn which resources support
1089
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1090
+ # google.com/iam/help/conditions/resource-policies).
1091
+ # @param [String] fields
1092
+ # Selector specifying which fields to include in a partial response.
1093
+ # @param [String] quota_user
1094
+ # Available to use for quota purposes for server-side applications. Can be any
1095
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1096
+ # @param [Google::Apis::RequestOptions] options
1097
+ # Request-specific options
1098
+ #
1099
+ # @yield [result, err] Result & error if block supplied
1100
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1101
+ # @yieldparam err [StandardError] error object if request failed
1102
+ #
1103
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1104
+ #
1105
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1106
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1107
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1108
+ def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1109
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1110
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1111
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1112
+ command.params['resource'] = resource unless resource.nil?
1113
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1114
+ command.query['fields'] = fields unless fields.nil?
1115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1116
+ execute_or_queue_command(command, &block)
1117
+ end
1118
+
1119
+ # Sets the access control policy on the specified resource. Replaces any
1120
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1121
+ # PERMISSION_DENIED` errors.
1122
+ # @param [String] resource
1123
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1124
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1125
+ # appropriate value for this field.
1126
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1127
+ # @param [String] fields
1128
+ # Selector specifying which fields to include in a partial response.
1129
+ # @param [String] quota_user
1130
+ # Available to use for quota purposes for server-side applications. Can be any
1131
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1132
+ # @param [Google::Apis::RequestOptions] options
1133
+ # Request-specific options
1134
+ #
1135
+ # @yield [result, err] Result & error if block supplied
1136
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1137
+ # @yieldparam err [StandardError] error object if request failed
1138
+ #
1139
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1140
+ #
1141
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1142
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1143
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1144
+ def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1145
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1146
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1147
+ command.request_object = set_iam_policy_request_object
1148
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1149
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1150
+ command.params['resource'] = resource unless resource.nil?
1151
+ command.query['fields'] = fields unless fields.nil?
1152
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1153
+ execute_or_queue_command(command, &block)
1154
+ end
1155
+
1156
+ # Returns permissions that a caller has on the specified resource. If the
1157
+ # resource does not exist, this will return an empty set of permissions, not a `
1158
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1159
+ # permission-aware UIs and command-line tools, not for authorization checking.
1160
+ # This operation may "fail open" without warning.
1161
+ # @param [String] resource
1162
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1163
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1164
+ # appropriate value for this field.
1165
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1166
+ # @param [String] fields
1167
+ # Selector specifying which fields to include in a partial response.
1168
+ # @param [String] quota_user
1169
+ # Available to use for quota purposes for server-side applications. Can be any
1170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1171
+ # @param [Google::Apis::RequestOptions] options
1172
+ # Request-specific options
1173
+ #
1174
+ # @yield [result, err] Result & error if block supplied
1175
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1176
+ # @yieldparam err [StandardError] error object if request failed
1177
+ #
1178
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1179
+ #
1180
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1181
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1182
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1183
+ def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1184
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1185
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1186
+ command.request_object = test_iam_permissions_request_object
1187
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1188
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1189
+ command.params['resource'] = resource unless resource.nil?
1190
+ command.query['fields'] = fields unless fields.nil?
1191
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1192
+ execute_or_queue_command(command, &block)
1193
+ end
1194
+
1195
+ # Gets the access control policy for a resource. Returns an empty policy if the
1196
+ # resource exists and does not have a policy set.
1197
+ # @param [String] resource
1198
+ # REQUIRED: The resource for which the policy is being requested. See [Resource
1199
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1200
+ # appropriate value for this field.
1201
+ # @param [Fixnum] options_requested_policy_version
1202
+ # Optional. The maximum policy version that will be used to format the policy.
1203
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1204
+ # rejected. Requests for policies with any conditional role bindings must
1205
+ # specify version 3. Policies with no conditional role bindings may specify any
1206
+ # valid value or leave the field unset. The policy in the response might use the
1207
+ # policy version that you specified, or it might use a lower policy version. For
1208
+ # example, if you specify version 3, but the policy has no conditional role
1209
+ # bindings, the response uses version 1. To learn which resources support
1210
+ # conditions in their IAM policies, see the [IAM documentation](https://cloud.
1211
+ # google.com/iam/help/conditions/resource-policies).
1212
+ # @param [String] fields
1213
+ # Selector specifying which fields to include in a partial response.
1214
+ # @param [String] quota_user
1215
+ # Available to use for quota purposes for server-side applications. Can be any
1216
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1217
+ # @param [Google::Apis::RequestOptions] options
1218
+ # Request-specific options
1219
+ #
1220
+ # @yield [result, err] Result & error if block supplied
1221
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1222
+ # @yieldparam err [StandardError] error object if request failed
1223
+ #
1224
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1225
+ #
1226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1229
+ def get_project_location_service_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1230
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
1231
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1232
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1233
+ command.params['resource'] = resource unless resource.nil?
1234
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
1235
+ command.query['fields'] = fields unless fields.nil?
1236
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1237
+ execute_or_queue_command(command, &block)
1238
+ end
1239
+
1240
+ # Sets the access control policy on the specified resource. Replaces any
1241
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1242
+ # PERMISSION_DENIED` errors.
1243
+ # @param [String] resource
1244
+ # REQUIRED: The resource for which the policy is being specified. See [Resource
1245
+ # names](https://cloud.google.com/apis/design/resource_names) for the
1246
+ # appropriate value for this field.
1247
+ # @param [Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest] set_iam_policy_request_object
1248
+ # @param [String] fields
1249
+ # Selector specifying which fields to include in a partial response.
1250
+ # @param [String] quota_user
1251
+ # Available to use for quota purposes for server-side applications. Can be any
1252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1253
+ # @param [Google::Apis::RequestOptions] options
1254
+ # Request-specific options
1255
+ #
1256
+ # @yield [result, err] Result & error if block supplied
1257
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::Policy] parsed result object
1258
+ # @yieldparam err [StandardError] error object if request failed
1259
+ #
1260
+ # @return [Google::Apis::NetworkconnectivityV1::Policy]
1261
+ #
1262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1265
+ def set_service_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1266
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1267
+ command.request_representation = Google::Apis::NetworkconnectivityV1::SetIamPolicyRequest::Representation
1268
+ command.request_object = set_iam_policy_request_object
1269
+ command.response_representation = Google::Apis::NetworkconnectivityV1::Policy::Representation
1270
+ command.response_class = Google::Apis::NetworkconnectivityV1::Policy
1271
+ command.params['resource'] = resource unless resource.nil?
1272
+ command.query['fields'] = fields unless fields.nil?
1273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1274
+ execute_or_queue_command(command, &block)
1275
+ end
1276
+
1277
+ # Returns permissions that a caller has on the specified resource. If the
1278
+ # resource does not exist, this will return an empty set of permissions, not a `
1279
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
1280
+ # permission-aware UIs and command-line tools, not for authorization checking.
1281
+ # This operation may "fail open" without warning.
1282
+ # @param [String] resource
1283
+ # REQUIRED: The resource for which the policy detail is being requested. See [
1284
+ # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1285
+ # appropriate value for this field.
1286
+ # @param [Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1287
+ # @param [String] fields
1288
+ # Selector specifying which fields to include in a partial response.
1289
+ # @param [String] quota_user
1290
+ # Available to use for quota purposes for server-side applications. Can be any
1291
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1292
+ # @param [Google::Apis::RequestOptions] options
1293
+ # Request-specific options
1294
+ #
1295
+ # @yield [result, err] Result & error if block supplied
1296
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse] parsed result object
1297
+ # @yieldparam err [StandardError] error object if request failed
1298
+ #
1299
+ # @return [Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse]
1300
+ #
1301
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1302
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1303
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1304
+ def test_service_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1305
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1306
+ command.request_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsRequest::Representation
1307
+ command.request_object = test_iam_permissions_request_object
1308
+ command.response_representation = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse::Representation
1309
+ command.response_class = Google::Apis::NetworkconnectivityV1::TestIamPermissionsResponse
1310
+ command.params['resource'] = resource unless resource.nil?
1311
+ command.query['fields'] = fields unless fields.nil?
1312
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1313
+ execute_or_queue_command(command, &block)
1314
+ end
1315
+
735
1316
  # Creates a Network Connectivity Center spoke.
736
1317
  # @param [String] parent
737
1318
  # Required. The parent resource.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkconnectivity_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.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-10-21 00:00:00.000000000 Z
11
+ date: 2022-10-31 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-networkconnectivity_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.18.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1/v0.19.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1
63
63
  post_install_message:
64
64
  rdoc_options: []