google-apis-networkconnectivity_v1 0.18.0 → 0.20.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: efcde015b0d5c355e411c6ca61f5bf64c298b2f1cc1736f74e937be31dbdd257
4
+ data.tar.gz: 7f6441408da7b620ed7035c5ca1f1834e5c0a29fd48a532fc0c22d17a668620b
5
5
  SHA512:
6
- metadata.gz: 9e4b356bb843c409e3e3fb7b941ce686ad3f93ad66fa89b68cd65332f5ab09c9ff07e10ea7c6eb3fb5fe0902abc2ecd9e897b2786c5894db44c62686af7c8d5a
7
- data.tar.gz: 145147742fd07594d1f49c4a94e91555b4b73c0baf927cd830b224572a38e6e873bda0c3e78b750df5ceb628723efd2e14b90109749ce49376f54db9e6e62f6d
6
+ metadata.gz: 9b315302f0fe40050d1ff01316e6c86e3293af7d0d660a9ee79f5504ebb8038ef2197c33fbd77556c78b5069474a9d5595f2e937632c32ddfdcf713fa9c32bb4
7
+ data.tar.gz: d7f54e5a5a810bbcf8ea326475f732743435a8654e31c8fafaf68fb87a0072c8386508bbf819b8e6ae2156da6d6207a7cd90992469f2a704c68f1c88021eb32f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networkconnectivity_v1
2
2
 
3
+ ### v0.20.0 (2022-12-07)
4
+
5
+ * Regenerated from discovery document revision 20221201
6
+
7
+ ### v0.19.0 (2022-10-27)
8
+
9
+ * Regenerated from discovery document revision 20221020
10
+
3
11
  ### v0.18.0 (2022-10-19)
4
12
 
5
13
  * Regenerated using generator version 0.11.0
@@ -378,11 +378,12 @@ module Google
378
378
  end
379
379
  end
380
380
 
381
- # A Network Connectivity Center hub is a collection of spokes. A single hub can
382
- # contain spokes from multiple regions. However, if any of a hub's spokes use
383
- # the data transfer feature, the resources associated with those spokes must all
384
- # reside in the same VPC network. Spokes that do not use data transfer can be
385
- # associated with any VPC network in your project.
381
+ # A Network Connectivity Center hub is a global management resource to which you
382
+ # attach spokes. A single hub can contain spokes from multiple regions. However,
383
+ # if any of a hub's spokes use the site-to-site data transfer feature, the
384
+ # resources associated with those spokes must all be in the same VPC network.
385
+ # Spokes that do not use site-to-site data transfer can be associated with any
386
+ # VPC network in your project.
386
387
  class Hub
387
388
  include Google::Apis::Core::Hashable
388
389
 
@@ -450,6 +451,117 @@ module Google
450
451
  end
451
452
  end
452
453
 
454
+ # The InternalRange resource for IPAM operations within a VPC network. Used to
455
+ # represent a private address range along with behavioral characterstics of that
456
+ # range (it's usage and peering behavior). Networking resources can link to this
457
+ # range if they are created as belonging to it. Next id: 14
458
+ class InternalRange
459
+ include Google::Apis::Core::Hashable
460
+
461
+ # Time when the InternalRange was created.
462
+ # Corresponds to the JSON property `createTime`
463
+ # @return [String]
464
+ attr_accessor :create_time
465
+
466
+ # A description of this resource.
467
+ # Corresponds to the JSON property `description`
468
+ # @return [String]
469
+ attr_accessor :description
470
+
471
+ # IP range that this InternalRange defines.
472
+ # Corresponds to the JSON property `ipCidrRange`
473
+ # @return [String]
474
+ attr_accessor :ip_cidr_range
475
+
476
+ # User-defined labels.
477
+ # Corresponds to the JSON property `labels`
478
+ # @return [Hash<String,String>]
479
+ attr_accessor :labels
480
+
481
+ # Immutable. The name of a InternalRange. Format: projects/`project`/locations/`
482
+ # location`/internalRanges/`internal_range` See: https://google.aip.dev/122#
483
+ # fields-representing-resource-names
484
+ # Corresponds to the JSON property `name`
485
+ # @return [String]
486
+ attr_accessor :name
487
+
488
+ # The URL or resource ID of the network in which to reserve the Internal Range.
489
+ # The network cannot be deleted if there are any reserved Internal Ranges
490
+ # referring to it. Legacy network is not supported. This can only be specified
491
+ # for a global internal address. Example: - URL: /compute/v1/projects/`project`/
492
+ # global/networks/`resourceId` - ID: network123
493
+ # Corresponds to the JSON property `network`
494
+ # @return [String]
495
+ attr_accessor :network
496
+
497
+ # Optional. Types of resources that are allowed to overlap with the current
498
+ # InternalRange.
499
+ # Corresponds to the JSON property `overlaps`
500
+ # @return [Array<String>]
501
+ attr_accessor :overlaps
502
+
503
+ # The type of peering set for this InternalRange.
504
+ # Corresponds to the JSON property `peering`
505
+ # @return [String]
506
+ attr_accessor :peering
507
+
508
+ # An alternate to ip_cidr_range. Can be set when trying to create a reservation
509
+ # that automatically finds a free range of the given size. If both ip_cidr_range
510
+ # and prefix_length are set, it's an error if the range sizes don't match. Can
511
+ # also be used during updates to change the range size.
512
+ # Corresponds to the JSON property `prefixLength`
513
+ # @return [Fixnum]
514
+ attr_accessor :prefix_length
515
+
516
+ # Optional. Can be set to narrow down or pick a different address space while
517
+ # searching for a free range. If not set, defaults to the "10.0.0.0/8" address
518
+ # space. This can be used to search in other rfc-1918 address spaces like "172.
519
+ # 16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
520
+ # Corresponds to the JSON property `targetCidrRange`
521
+ # @return [Array<String>]
522
+ attr_accessor :target_cidr_range
523
+
524
+ # Time when the InternalRange was updated.
525
+ # Corresponds to the JSON property `updateTime`
526
+ # @return [String]
527
+ attr_accessor :update_time
528
+
529
+ # The type of usage set for this InternalRange.
530
+ # Corresponds to the JSON property `usage`
531
+ # @return [String]
532
+ attr_accessor :usage
533
+
534
+ # Output only. The list of resources that refer to this internal range.
535
+ # Resources that use the InternalRange for their range allocation are referred
536
+ # to as users of the range. Other resources mark themselves as users while doing
537
+ # so by creating a reference to this InternalRange. Having a user, based on this
538
+ # reference, prevents deletion of the InternalRange referred to. Can be empty.
539
+ # Corresponds to the JSON property `users`
540
+ # @return [Array<String>]
541
+ attr_accessor :users
542
+
543
+ def initialize(**args)
544
+ update!(**args)
545
+ end
546
+
547
+ # Update properties of this object
548
+ def update!(**args)
549
+ @create_time = args[:create_time] if args.key?(:create_time)
550
+ @description = args[:description] if args.key?(:description)
551
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
552
+ @labels = args[:labels] if args.key?(:labels)
553
+ @name = args[:name] if args.key?(:name)
554
+ @network = args[:network] if args.key?(:network)
555
+ @overlaps = args[:overlaps] if args.key?(:overlaps)
556
+ @peering = args[:peering] if args.key?(:peering)
557
+ @prefix_length = args[:prefix_length] if args.key?(:prefix_length)
558
+ @target_cidr_range = args[:target_cidr_range] if args.key?(:target_cidr_range)
559
+ @update_time = args[:update_time] if args.key?(:update_time)
560
+ @usage = args[:usage] if args.key?(:usage)
561
+ @users = args[:users] if args.key?(:users)
562
+ end
563
+ end
564
+
453
565
  # A collection of VLAN attachment resources. These resources should be redundant
454
566
  # attachments that all advertise the same prefixes to Google Cloud.
455
567
  # Alternatively, in active/passive configurations, all attachments should be
@@ -471,6 +583,11 @@ module Google
471
583
  # @return [Array<String>]
472
584
  attr_accessor :uris
473
585
 
586
+ # Output only. The VPC network where these VLAN attachments are located.
587
+ # Corresponds to the JSON property `vpcNetwork`
588
+ # @return [String]
589
+ attr_accessor :vpc_network
590
+
474
591
  def initialize(**args)
475
592
  update!(**args)
476
593
  end
@@ -479,6 +596,7 @@ module Google
479
596
  def update!(**args)
480
597
  @site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
481
598
  @uris = args[:uris] if args.key?(:uris)
599
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
482
600
  end
483
601
  end
484
602
 
@@ -503,6 +621,12 @@ module Google
503
621
  attr_accessor :site_to_site_data_transfer
504
622
  alias_method :site_to_site_data_transfer?, :site_to_site_data_transfer
505
623
 
624
+ # Output only. The VPC network where these router appliance instances are
625
+ # located.
626
+ # Corresponds to the JSON property `vpcNetwork`
627
+ # @return [String]
628
+ attr_accessor :vpc_network
629
+
506
630
  def initialize(**args)
507
631
  update!(**args)
508
632
  end
@@ -511,6 +635,7 @@ module Google
511
635
  def update!(**args)
512
636
  @instances = args[:instances] if args.key?(:instances)
513
637
  @site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
638
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
514
639
  end
515
640
  end
516
641
 
@@ -535,6 +660,11 @@ module Google
535
660
  # @return [Array<String>]
536
661
  attr_accessor :uris
537
662
 
663
+ # Output only. The VPC network where these VPN tunnels are located.
664
+ # Corresponds to the JSON property `vpcNetwork`
665
+ # @return [String]
666
+ attr_accessor :vpc_network
667
+
538
668
  def initialize(**args)
539
669
  update!(**args)
540
670
  end
@@ -543,6 +673,7 @@ module Google
543
673
  def update!(**args)
544
674
  @site_to_site_data_transfer = args[:site_to_site_data_transfer] if args.key?(:site_to_site_data_transfer)
545
675
  @uris = args[:uris] if args.key?(:uris)
676
+ @vpc_network = args[:vpc_network] if args.key?(:vpc_network)
546
677
  end
547
678
  end
548
679
 
@@ -578,6 +709,38 @@ module Google
578
709
  end
579
710
  end
580
711
 
712
+ # Response for InternalRange.ListInternalRanges
713
+ class ListInternalRangesResponse
714
+ include Google::Apis::Core::Hashable
715
+
716
+ # InternalRanges to be returned.
717
+ # Corresponds to the JSON property `internalRanges`
718
+ # @return [Array<Google::Apis::NetworkconnectivityV1::InternalRange>]
719
+ attr_accessor :internal_ranges
720
+
721
+ # The next pagination token in the List response. It should be used as
722
+ # page_token for the following request. An empty value means no more result.
723
+ # Corresponds to the JSON property `nextPageToken`
724
+ # @return [String]
725
+ attr_accessor :next_page_token
726
+
727
+ # Locations that could not be reached.
728
+ # Corresponds to the JSON property `unreachable`
729
+ # @return [Array<String>]
730
+ attr_accessor :unreachable
731
+
732
+ def initialize(**args)
733
+ update!(**args)
734
+ end
735
+
736
+ # Update properties of this object
737
+ def update!(**args)
738
+ @internal_ranges = args[:internal_ranges] if args.key?(:internal_ranges)
739
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
740
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
741
+ end
742
+ end
743
+
581
744
  # The response message for Locations.ListLocations.
582
745
  class ListLocationsResponse
583
746
  include Google::Apis::Core::Hashable
@@ -967,11 +1130,11 @@ module Google
967
1130
  end
968
1131
  end
969
1132
 
970
- # A Network Connectivity Center spoke represents a connection between your
971
- # Google Cloud network resources and a non-Google-Cloud network. When you create
972
- # a spoke, you associate it with a hub. You must also identify a value for
973
- # exactly one of the following fields: * linked_vpn_tunnels *
974
- # linked_interconnect_attachments * linked_router_appliance_instances
1133
+ # A Network Connectivity Center spoke represents one or more network
1134
+ # connectivity resources. When you create a spoke, you associate it with a hub.
1135
+ # You must also identify a value for exactly one of the following fields: *
1136
+ # linked_vpn_tunnels * linked_interconnect_attachments *
1137
+ # linked_router_appliance_instances
975
1138
  class Spoke
976
1139
  include Google::Apis::Core::Hashable
977
1140
 
@@ -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.20.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 = "20221201"
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.20.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-12-12 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.20.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: []