google-apis-networkconnectivity_v1alpha1 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0f1fd8e6c6a54babdcc1828d74db2bd871aa135f74de8fffad3818bd420cc2f7
4
- data.tar.gz: b934a0dc1a718f22b38f05c304c408fed101c061d0fb123cba3f6a0dd5747155
3
+ metadata.gz: e9e837ab89a6739e0861102815ed2dc966ec5cd308d5f58f4834bbd96a56caaa
4
+ data.tar.gz: 35da44aa1036baf21d1b725acb1168f60eb1e1e393e7a9aedc31cdcbb9e29ca7
5
5
  SHA512:
6
- metadata.gz: 2a2f0a92df1c5a1a1b03c0ce2820603b78ea558e9e7d70a6c307de2990f6d33aa15e92a0ff6369f148c318eb7fcec10ec56180a7d41e605ce48132a6a67b8e9a
7
- data.tar.gz: 259d856437f6b228858c23a23c17e74ef2a91fac3489ba31861f9020e36b2c61a1b3d4d4e55b18e152695d4eb356618a4a24b000b50f20e45ad53b466c63e7c1
6
+ metadata.gz: 660aa1126fba964787c45f8afa9bad11168fd70c5a0b2c30e9b7516df93b1bec9d120138816b4dffc1ae7a2799cc9ba18a02d2a6188d48dfdbef11db7ce3679c
7
+ data.tar.gz: f315ad3831803255336322972a9e3f44172a4ecbf9dc652be3bf0e96a67dace4309e4ddc8b1b3d68c669cdb669808c2d33cdde45270d1c713a67d0fd7b2fe7f8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-networkconnectivity_v1alpha1
2
2
 
3
+ ### v0.27.0 (2022-11-08)
4
+
5
+ * Regenerated from discovery document revision 20221107
6
+
7
+ ### v0.26.0 (2022-11-04)
8
+
9
+ * Regenerated from discovery document revision 20221031
10
+
3
11
  ### v0.25.0 (2022-10-27)
4
12
 
5
13
  * Regenerated using generator version 0.11.0
@@ -446,6 +446,117 @@ module Google
446
446
  end
447
447
  end
448
448
 
449
+ # The InternalRange resource for IPAM operations within a VPC network. Used to
450
+ # represent a private address range along with behavioral characterstics of that
451
+ # range (it's usage and peering behavior). Networking resources can link to this
452
+ # range if they are created as belonging to it. Next id: 14
453
+ class InternalRange
454
+ include Google::Apis::Core::Hashable
455
+
456
+ # Time when the InternalRange was created.
457
+ # Corresponds to the JSON property `createTime`
458
+ # @return [String]
459
+ attr_accessor :create_time
460
+
461
+ # A description of this resource.
462
+ # Corresponds to the JSON property `description`
463
+ # @return [String]
464
+ attr_accessor :description
465
+
466
+ # IP range that this InternalRange defines.
467
+ # Corresponds to the JSON property `ipCidrRange`
468
+ # @return [String]
469
+ attr_accessor :ip_cidr_range
470
+
471
+ # User-defined labels.
472
+ # Corresponds to the JSON property `labels`
473
+ # @return [Hash<String,String>]
474
+ attr_accessor :labels
475
+
476
+ # Immutable. The name of a InternalRange. Format: projects/`project`/locations/`
477
+ # location`/internalRanges/`internal_range` See: https://google.aip.dev/122#
478
+ # fields-representing-resource-names
479
+ # Corresponds to the JSON property `name`
480
+ # @return [String]
481
+ attr_accessor :name
482
+
483
+ # The URL or resource ID of the network in which to reserve the Internal Range.
484
+ # The network cannot be deleted if there are any reserved Internal Ranges
485
+ # referring to it. Legacy network is not supported. This can only be specified
486
+ # for a global internal address. Example: - URL: /compute/v1/projects/`project`/
487
+ # global/networks/`resourceId` - ID: network123
488
+ # Corresponds to the JSON property `network`
489
+ # @return [String]
490
+ attr_accessor :network
491
+
492
+ # Optional. Types of resources that are allowed to overlap with the current
493
+ # InternalRange.
494
+ # Corresponds to the JSON property `overlaps`
495
+ # @return [Array<String>]
496
+ attr_accessor :overlaps
497
+
498
+ # The type of peering set for this InternalRange.
499
+ # Corresponds to the JSON property `peering`
500
+ # @return [String]
501
+ attr_accessor :peering
502
+
503
+ # An alternate to ip_cidr_range. Can be set when trying to create a reservation
504
+ # that automatically finds a free range of the given size. If both ip_cidr_range
505
+ # and prefix_length are set, it's an error if the range sizes don't match. Can
506
+ # also be used during updates to change the range size.
507
+ # Corresponds to the JSON property `prefixLength`
508
+ # @return [Fixnum]
509
+ attr_accessor :prefix_length
510
+
511
+ # Optional. Can be set to narrow down or pick a different address space while
512
+ # searching for a free range. If not set, defaults to the "10.0.0.0/8" address
513
+ # space. This can be used to search in other rfc-1918 address spaces like "172.
514
+ # 16.0.0/12" and "192.168.0.0/16" or non-rfc-1918 address spaces used in the VPC.
515
+ # Corresponds to the JSON property `targetCidrRange`
516
+ # @return [Array<String>]
517
+ attr_accessor :target_cidr_range
518
+
519
+ # Time when the InternalRange was updated.
520
+ # Corresponds to the JSON property `updateTime`
521
+ # @return [String]
522
+ attr_accessor :update_time
523
+
524
+ # The type of usage set for this InternalRange.
525
+ # Corresponds to the JSON property `usage`
526
+ # @return [String]
527
+ attr_accessor :usage
528
+
529
+ # Output only. The list of resources that refer to this internal range.
530
+ # Resources that use the InternalRange for their range allocation are referred
531
+ # to as users of the range. Other resources mark themselves as users while doing
532
+ # so by creating a reference to this InternalRange. Having a user, based on this
533
+ # reference, prevents deletion of the InternalRange referred to. Can be empty.
534
+ # Corresponds to the JSON property `users`
535
+ # @return [Array<String>]
536
+ attr_accessor :users
537
+
538
+ def initialize(**args)
539
+ update!(**args)
540
+ end
541
+
542
+ # Update properties of this object
543
+ def update!(**args)
544
+ @create_time = args[:create_time] if args.key?(:create_time)
545
+ @description = args[:description] if args.key?(:description)
546
+ @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range)
547
+ @labels = args[:labels] if args.key?(:labels)
548
+ @name = args[:name] if args.key?(:name)
549
+ @network = args[:network] if args.key?(:network)
550
+ @overlaps = args[:overlaps] if args.key?(:overlaps)
551
+ @peering = args[:peering] if args.key?(:peering)
552
+ @prefix_length = args[:prefix_length] if args.key?(:prefix_length)
553
+ @target_cidr_range = args[:target_cidr_range] if args.key?(:target_cidr_range)
554
+ @update_time = args[:update_time] if args.key?(:update_time)
555
+ @usage = args[:usage] if args.key?(:usage)
556
+ @users = args[:users] if args.key?(:users)
557
+ end
558
+ end
559
+
449
560
  # Response for HubService.ListHubs method.
450
561
  class ListHubsResponse
451
562
  include Google::Apis::Core::Hashable
@@ -478,6 +589,38 @@ module Google
478
589
  end
479
590
  end
480
591
 
592
+ # Response for InternalRange.ListInternalRanges
593
+ class ListInternalRangesResponse
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # InternalRanges to be returned.
597
+ # Corresponds to the JSON property `internalRanges`
598
+ # @return [Array<Google::Apis::NetworkconnectivityV1alpha1::InternalRange>]
599
+ attr_accessor :internal_ranges
600
+
601
+ # The next pagination token in the List response. It should be used as
602
+ # page_token for the following request. An empty value means no more result.
603
+ # Corresponds to the JSON property `nextPageToken`
604
+ # @return [String]
605
+ attr_accessor :next_page_token
606
+
607
+ # Locations that could not be reached.
608
+ # Corresponds to the JSON property `unreachable`
609
+ # @return [Array<String>]
610
+ attr_accessor :unreachable
611
+
612
+ def initialize(**args)
613
+ update!(**args)
614
+ end
615
+
616
+ # Update properties of this object
617
+ def update!(**args)
618
+ @internal_ranges = args[:internal_ranges] if args.key?(:internal_ranges)
619
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
620
+ @unreachable = args[:unreachable] if args.key?(:unreachable)
621
+ end
622
+ end
623
+
481
624
  # The response message for Locations.ListLocations.
482
625
  class ListLocationsResponse
483
626
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module NetworkconnectivityV1alpha1
18
18
  # Version of the google-apis-networkconnectivity_v1alpha1 gem
19
- GEM_VERSION = "0.25.0"
19
+ GEM_VERSION = "0.27.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 = "20220919"
25
+ REVISION = "20221107"
26
26
  end
27
27
  end
28
28
  end
@@ -82,12 +82,24 @@ 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 ListHubsResponse
86
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
87
93
 
88
94
  include Google::Apis::Core::JsonObjectSupport
89
95
  end
90
96
 
97
+ class ListInternalRangesResponse
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
91
103
  class ListLocationsResponse
92
104
  class Representation < Google::Apis::Core::JsonRepresentation; end
93
105
 
@@ -241,6 +253,25 @@ module Google
241
253
  end
242
254
  end
243
255
 
256
+ class InternalRange
257
+ # @private
258
+ class Representation < Google::Apis::Core::JsonRepresentation
259
+ property :create_time, as: 'createTime'
260
+ property :description, as: 'description'
261
+ property :ip_cidr_range, as: 'ipCidrRange'
262
+ hash :labels, as: 'labels'
263
+ property :name, as: 'name'
264
+ property :network, as: 'network'
265
+ collection :overlaps, as: 'overlaps'
266
+ property :peering, as: 'peering'
267
+ property :prefix_length, as: 'prefixLength'
268
+ collection :target_cidr_range, as: 'targetCidrRange'
269
+ property :update_time, as: 'updateTime'
270
+ property :usage, as: 'usage'
271
+ collection :users, as: 'users'
272
+ end
273
+ end
274
+
244
275
  class ListHubsResponse
245
276
  # @private
246
277
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -251,6 +282,16 @@ module Google
251
282
  end
252
283
  end
253
284
 
285
+ class ListInternalRangesResponse
286
+ # @private
287
+ class Representation < Google::Apis::Core::JsonRepresentation
288
+ collection :internal_ranges, as: 'internalRanges', class: Google::Apis::NetworkconnectivityV1alpha1::InternalRange, decorator: Google::Apis::NetworkconnectivityV1alpha1::InternalRange::Representation
289
+
290
+ property :next_page_token, as: 'nextPageToken'
291
+ collection :unreachable, as: 'unreachable'
292
+ end
293
+ end
294
+
254
295
  class ListLocationsResponse
255
296
  # @private
256
297
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -457,173 +457,25 @@ module Google
457
457
  execute_or_queue_command(command, &block)
458
458
  end
459
459
 
460
- # Gets the access control policy for a resource. Returns an empty policy if the
461
- # resource exists and does not have a policy set.
462
- # @param [String] resource
463
- # REQUIRED: The resource for which the policy is being requested. See [Resource
464
- # names](https://cloud.google.com/apis/design/resource_names) for the
465
- # appropriate value for this field.
466
- # @param [Fixnum] options_requested_policy_version
467
- # Optional. The maximum policy version that will be used to format the policy.
468
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
469
- # rejected. Requests for policies with any conditional role bindings must
470
- # specify version 3. Policies with no conditional role bindings may specify any
471
- # valid value or leave the field unset. The policy in the response might use the
472
- # policy version that you specified, or it might use a lower policy version. For
473
- # example, if you specify version 3, but the policy has no conditional role
474
- # bindings, the response uses version 1. To learn which resources support
475
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
476
- # google.com/iam/help/conditions/resource-policies).
477
- # @param [String] fields
478
- # Selector specifying which fields to include in a partial response.
479
- # @param [String] quota_user
480
- # Available to use for quota purposes for server-side applications. Can be any
481
- # arbitrary string assigned to a user, but should not exceed 40 characters.
482
- # @param [Google::Apis::RequestOptions] options
483
- # Request-specific options
484
- #
485
- # @yield [result, err] Result & error if block supplied
486
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
487
- # @yieldparam err [StandardError] error object if request failed
488
- #
489
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
490
- #
491
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
492
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
493
- # @raise [Google::Apis::AuthorizationError] Authorization is required
494
- def get_project_location_internal_range_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
495
- command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
496
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
497
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
498
- command.params['resource'] = resource unless resource.nil?
499
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
500
- command.query['fields'] = fields unless fields.nil?
501
- command.query['quotaUser'] = quota_user unless quota_user.nil?
502
- execute_or_queue_command(command, &block)
503
- end
504
-
505
- # Sets the access control policy on the specified resource. Replaces any
506
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
507
- # PERMISSION_DENIED` errors.
508
- # @param [String] resource
509
- # REQUIRED: The resource for which the policy is being specified. See [Resource
510
- # names](https://cloud.google.com/apis/design/resource_names) for the
511
- # appropriate value for this field.
512
- # @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
513
- # @param [String] fields
514
- # Selector specifying which fields to include in a partial response.
515
- # @param [String] quota_user
516
- # Available to use for quota purposes for server-side applications. Can be any
517
- # arbitrary string assigned to a user, but should not exceed 40 characters.
518
- # @param [Google::Apis::RequestOptions] options
519
- # Request-specific options
520
- #
521
- # @yield [result, err] Result & error if block supplied
522
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
523
- # @yieldparam err [StandardError] error object if request failed
524
- #
525
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
526
- #
527
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
528
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
529
- # @raise [Google::Apis::AuthorizationError] Authorization is required
530
- def set_internal_range_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
531
- command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
532
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
533
- command.request_object = set_iam_policy_request_object
534
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
535
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
536
- command.params['resource'] = resource unless resource.nil?
537
- command.query['fields'] = fields unless fields.nil?
538
- command.query['quotaUser'] = quota_user unless quota_user.nil?
539
- execute_or_queue_command(command, &block)
540
- end
541
-
542
- # Returns permissions that a caller has on the specified resource. If the
543
- # resource does not exist, this will return an empty set of permissions, not a `
544
- # NOT_FOUND` error. Note: This operation is designed to be used for building
545
- # permission-aware UIs and command-line tools, not for authorization checking.
546
- # This operation may "fail open" without warning.
547
- # @param [String] resource
548
- # REQUIRED: The resource for which the policy detail is being requested. See [
549
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
550
- # appropriate value for this field.
551
- # @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
552
- # @param [String] fields
553
- # Selector specifying which fields to include in a partial response.
554
- # @param [String] quota_user
555
- # Available to use for quota purposes for server-side applications. Can be any
556
- # arbitrary string assigned to a user, but should not exceed 40 characters.
557
- # @param [Google::Apis::RequestOptions] options
558
- # Request-specific options
559
- #
560
- # @yield [result, err] Result & error if block supplied
561
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
562
- # @yieldparam err [StandardError] error object if request failed
563
- #
564
- # @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
565
- #
566
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
567
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
568
- # @raise [Google::Apis::AuthorizationError] Authorization is required
569
- def test_internal_range_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
570
- command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
571
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
572
- command.request_object = test_iam_permissions_request_object
573
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
574
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
575
- command.params['resource'] = resource unless resource.nil?
576
- command.query['fields'] = fields unless fields.nil?
577
- command.query['quotaUser'] = quota_user unless quota_user.nil?
578
- execute_or_queue_command(command, &block)
579
- end
580
-
581
- # Starts asynchronous cancellation on a long-running operation. The server makes
582
- # a best effort to cancel the operation, but success is not guaranteed. If the
583
- # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
584
- # Clients can use Operations.GetOperation or other methods to check whether the
585
- # cancellation succeeded or whether the operation completed despite cancellation.
586
- # On successful cancellation, the operation is not deleted; instead, it becomes
587
- # an operation with an Operation.error value with a google.rpc.Status.code of 1,
588
- # corresponding to `Code.CANCELLED`.
589
- # @param [String] name
590
- # The name of the operation resource to be cancelled.
591
- # @param [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
592
- # @param [String] fields
593
- # Selector specifying which fields to include in a partial response.
594
- # @param [String] quota_user
595
- # Available to use for quota purposes for server-side applications. Can be any
596
- # arbitrary string assigned to a user, but should not exceed 40 characters.
597
- # @param [Google::Apis::RequestOptions] options
598
- # Request-specific options
599
- #
600
- # @yield [result, err] Result & error if block supplied
601
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Empty] parsed result object
602
- # @yieldparam err [StandardError] error object if request failed
603
- #
604
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Empty]
605
- #
606
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
607
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
608
- # @raise [Google::Apis::AuthorizationError] Authorization is required
609
- def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
610
- command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
611
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningCancelOperationRequest::Representation
612
- command.request_object = google_longrunning_cancel_operation_request_object
613
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Empty::Representation
614
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Empty
615
- command.params['name'] = name unless name.nil?
616
- command.query['fields'] = fields unless fields.nil?
617
- command.query['quotaUser'] = quota_user unless quota_user.nil?
618
- execute_or_queue_command(command, &block)
619
- end
620
-
621
- # Deletes a long-running operation. This method indicates that the client is no
622
- # longer interested in the operation result. It does not cancel the operation.
623
- # If the server doesn't support this method, it returns `google.rpc.Code.
624
- # UNIMPLEMENTED`.
625
- # @param [String] name
626
- # The name of the operation resource to be deleted.
460
+ # Creates a new InternalRange in a given project and location.
461
+ # @param [String] parent
462
+ # Required. The parent resource's name of the InternalRange.
463
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::InternalRange] internal_range_object
464
+ # @param [String] internal_range_id
465
+ # Optional. Resource ID (i.e. 'foo' in '[...]/projects/p/locations/l/
466
+ # internalRanges/foo') See https://google.aip.dev/122#resource-id-segments
467
+ # Unique per location.
468
+ # @param [String] request_id
469
+ # Optional. An optional request ID to identify requests. Specify a unique
470
+ # request ID so that if you must retry your request, the server will know to
471
+ # ignore the request if it has already been completed. The server will guarantee
472
+ # that for at least 60 minutes since the first request. For example, consider a
473
+ # situation where you make an initial request and t he request times out. If you
474
+ # make the request again with the same request ID, the server can check if
475
+ # original operation with the same request ID was received, and if so, will
476
+ # ignore the second request. This prevents clients from accidentally creating
477
+ # duplicate commitments. The request ID must be a valid UUID with the exception
478
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
627
479
  # @param [String] fields
628
480
  # Selector specifying which fields to include in a partial response.
629
481
  # @param [String] quota_user
@@ -633,28 +485,42 @@ module Google
633
485
  # Request-specific options
634
486
  #
635
487
  # @yield [result, err] Result & error if block supplied
636
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Empty] parsed result object
488
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation] parsed result object
637
489
  # @yieldparam err [StandardError] error object if request failed
638
490
  #
639
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Empty]
491
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation]
640
492
  #
641
493
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
494
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
495
  # @raise [Google::Apis::AuthorizationError] Authorization is required
644
- def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
645
- command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
646
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Empty::Representation
647
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Empty
648
- command.params['name'] = name unless name.nil?
496
+ 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)
497
+ command = make_simple_command(:post, 'v1alpha1/{+parent}/internalRanges', options)
498
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::InternalRange::Representation
499
+ command.request_object = internal_range_object
500
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation::Representation
501
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation
502
+ command.params['parent'] = parent unless parent.nil?
503
+ command.query['internalRangeId'] = internal_range_id unless internal_range_id.nil?
504
+ command.query['requestId'] = request_id unless request_id.nil?
649
505
  command.query['fields'] = fields unless fields.nil?
650
506
  command.query['quotaUser'] = quota_user unless quota_user.nil?
651
507
  execute_or_queue_command(command, &block)
652
508
  end
653
509
 
654
- # Gets the latest state of a long-running operation. Clients can use this method
655
- # to poll the operation result at intervals as recommended by the API service.
510
+ # Deletes a single InternalRange.
656
511
  # @param [String] name
657
- # The name of the operation resource.
512
+ # Required. The name of the InternalRange to delete.
513
+ # @param [String] request_id
514
+ # Optional. An optional request ID to identify requests. Specify a unique
515
+ # request ID so that if you must retry your request, the server will know to
516
+ # ignore the request if it has already been completed. The server will guarantee
517
+ # that for at least 60 minutes after the first request. For example, consider a
518
+ # situation where you make an initial request and t he request times out. If you
519
+ # make the request again with the same request ID, the server can check if
520
+ # original operation with the same request ID was received, and if so, will
521
+ # ignore the second request. This prevents clients from accidentally creating
522
+ # duplicate commitments. The request ID must be a valid UUID with the exception
523
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
658
524
  # @param [String] fields
659
525
  # Selector specifying which fields to include in a partial response.
660
526
  # @param [String] quota_user
@@ -672,32 +538,20 @@ module Google
672
538
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
673
539
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
674
540
  # @raise [Google::Apis::AuthorizationError] Authorization is required
675
- def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
676
- command = make_simple_command(:get, 'v1alpha1/{+name}', options)
541
+ def delete_project_location_internal_range(name, request_id: nil, fields: nil, quota_user: nil, options: nil, &block)
542
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
677
543
  command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation::Representation
678
544
  command.response_class = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation
679
545
  command.params['name'] = name unless name.nil?
546
+ command.query['requestId'] = request_id unless request_id.nil?
680
547
  command.query['fields'] = fields unless fields.nil?
681
548
  command.query['quotaUser'] = quota_user unless quota_user.nil?
682
549
  execute_or_queue_command(command, &block)
683
550
  end
684
551
 
685
- # Lists operations that match the specified filter in the request. If the server
686
- # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
687
- # binding allows API services to override the binding to use different resource
688
- # name schemes, such as `users/*/operations`. To override the binding, API
689
- # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
690
- # service configuration. For backwards compatibility, the default name includes
691
- # the operations collection id, however overriding users must ensure the name
692
- # binding is the parent resource, without the operations collection id.
552
+ # Gets details of a single InternalRange.
693
553
  # @param [String] name
694
- # The name of the operation's parent resource.
695
- # @param [String] filter
696
- # The standard list filter.
697
- # @param [Fixnum] page_size
698
- # The standard list page size.
699
- # @param [String] page_token
700
- # The standard list page token.
554
+ # Required. Name of the InternalRange to get.
701
555
  # @param [String] fields
702
556
  # Selector specifying which fields to include in a partial response.
703
557
  # @param [String] quota_user
@@ -707,22 +561,19 @@ module Google
707
561
  # Request-specific options
708
562
  #
709
563
  # @yield [result, err] Result & error if block supplied
710
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse] parsed result object
564
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::InternalRange] parsed result object
711
565
  # @yieldparam err [StandardError] error object if request failed
712
566
  #
713
- # @return [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse]
567
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::InternalRange]
714
568
  #
715
569
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
716
570
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
717
571
  # @raise [Google::Apis::AuthorizationError] Authorization is required
718
- def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
719
- command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
720
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse::Representation
721
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse
572
+ def get_project_location_internal_range(name, fields: nil, quota_user: nil, options: nil, &block)
573
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
574
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::InternalRange::Representation
575
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::InternalRange
722
576
  command.params['name'] = name unless name.nil?
723
- command.query['filter'] = filter unless filter.nil?
724
- command.query['pageSize'] = page_size unless page_size.nil?
725
- command.query['pageToken'] = page_token unless page_token.nil?
726
577
  command.query['fields'] = fields unless fields.nil?
727
578
  command.query['quotaUser'] = quota_user unless quota_user.nil?
728
579
  execute_or_queue_command(command, &block)
@@ -762,7 +613,7 @@ module Google
762
613
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
763
614
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
764
615
  # @raise [Google::Apis::AuthorizationError] Authorization is required
765
- def get_project_location_service_class_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
616
+ def get_project_location_internal_range_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
766
617
  command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
767
618
  command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
768
619
  command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
@@ -773,53 +624,17 @@ module Google
773
624
  execute_or_queue_command(command, &block)
774
625
  end
775
626
 
776
- # Sets the access control policy on the specified resource. Replaces any
777
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
778
- # PERMISSION_DENIED` errors.
779
- # @param [String] resource
780
- # REQUIRED: The resource for which the policy is being specified. See [Resource
781
- # names](https://cloud.google.com/apis/design/resource_names) for the
782
- # appropriate value for this field.
783
- # @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
784
- # @param [String] fields
785
- # Selector specifying which fields to include in a partial response.
786
- # @param [String] quota_user
787
- # Available to use for quota purposes for server-side applications. Can be any
788
- # arbitrary string assigned to a user, but should not exceed 40 characters.
789
- # @param [Google::Apis::RequestOptions] options
790
- # Request-specific options
791
- #
792
- # @yield [result, err] Result & error if block supplied
793
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
794
- # @yieldparam err [StandardError] error object if request failed
795
- #
796
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
797
- #
798
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
799
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
800
- # @raise [Google::Apis::AuthorizationError] Authorization is required
801
- def set_service_class_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
802
- command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
803
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
804
- command.request_object = set_iam_policy_request_object
805
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
806
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
807
- command.params['resource'] = resource unless resource.nil?
808
- command.query['fields'] = fields unless fields.nil?
809
- command.query['quotaUser'] = quota_user unless quota_user.nil?
810
- execute_or_queue_command(command, &block)
811
- end
812
-
813
- # Returns permissions that a caller has on the specified resource. If the
814
- # resource does not exist, this will return an empty set of permissions, not a `
815
- # NOT_FOUND` error. Note: This operation is designed to be used for building
816
- # permission-aware UIs and command-line tools, not for authorization checking.
817
- # This operation may "fail open" without warning.
818
- # @param [String] resource
819
- # REQUIRED: The resource for which the policy detail is being requested. See [
820
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
821
- # appropriate value for this field.
822
- # @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
627
+ # Lists InternalRanges in a given project and location.
628
+ # @param [String] parent
629
+ # Required. The parent resource's name.
630
+ # @param [String] filter
631
+ # A filter expression that filters the results listed in the response.
632
+ # @param [String] order_by
633
+ # Sort the results by a certain order.
634
+ # @param [Fixnum] page_size
635
+ # The maximum number of results per page that should be returned.
636
+ # @param [String] page_token
637
+ # The page token.
823
638
  # @param [String] fields
824
639
  # Selector specifying which fields to include in a partial response.
825
640
  # @param [String] quota_user
@@ -829,43 +644,51 @@ module Google
829
644
  # Request-specific options
830
645
  #
831
646
  # @yield [result, err] Result & error if block supplied
832
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
647
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::ListInternalRangesResponse] parsed result object
833
648
  # @yieldparam err [StandardError] error object if request failed
834
649
  #
835
- # @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
650
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::ListInternalRangesResponse]
836
651
  #
837
652
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
838
653
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
839
654
  # @raise [Google::Apis::AuthorizationError] Authorization is required
840
- def test_service_class_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
841
- command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
842
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
843
- command.request_object = test_iam_permissions_request_object
844
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
845
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
846
- command.params['resource'] = resource unless resource.nil?
655
+ 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)
656
+ command = make_simple_command(:get, 'v1alpha1/{+parent}/internalRanges', options)
657
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::ListInternalRangesResponse::Representation
658
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::ListInternalRangesResponse
659
+ command.params['parent'] = parent unless parent.nil?
660
+ command.query['filter'] = filter unless filter.nil?
661
+ command.query['orderBy'] = order_by unless order_by.nil?
662
+ command.query['pageSize'] = page_size unless page_size.nil?
663
+ command.query['pageToken'] = page_token unless page_token.nil?
847
664
  command.query['fields'] = fields unless fields.nil?
848
665
  command.query['quotaUser'] = quota_user unless quota_user.nil?
849
666
  execute_or_queue_command(command, &block)
850
667
  end
851
668
 
852
- # Gets the access control policy for a resource. Returns an empty policy if the
853
- # resource exists and does not have a policy set.
854
- # @param [String] resource
855
- # REQUIRED: The resource for which the policy is being requested. See [Resource
856
- # names](https://cloud.google.com/apis/design/resource_names) for the
857
- # appropriate value for this field.
858
- # @param [Fixnum] options_requested_policy_version
859
- # Optional. The maximum policy version that will be used to format the policy.
860
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
861
- # rejected. Requests for policies with any conditional role bindings must
862
- # specify version 3. Policies with no conditional role bindings may specify any
863
- # valid value or leave the field unset. The policy in the response might use the
864
- # policy version that you specified, or it might use a lower policy version. For
865
- # example, if you specify version 3, but the policy has no conditional role
866
- # bindings, the response uses version 1. To learn which resources support
867
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
868
- # google.com/iam/help/conditions/resource-policies).
669
+ # Updates the parameters of a single InternalRange.
670
+ # @param [String] name
671
+ # Immutable. The name of a InternalRange. Format: projects/`project`/locations/`
672
+ # location`/internalRanges/`internal_range` See: https://google.aip.dev/122#
673
+ # fields-representing-resource-names
674
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::InternalRange] internal_range_object
675
+ # @param [String] request_id
676
+ # Optional. An optional request ID to identify requests. Specify a unique
677
+ # request ID so that if you must retry your request, the server will know to
678
+ # ignore the request if it has already been completed. The server will guarantee
679
+ # that for at least 60 minutes since the first request. For example, consider a
680
+ # situation where you make an initial request and t he request times out. If you
681
+ # make the request again with the same request ID, the server can check if
682
+ # original operation with the same request ID was received, and if so, will
683
+ # ignore the second request. This prevents clients from accidentally creating
684
+ # duplicate commitments. The request ID must be a valid UUID with the exception
685
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
686
+ # @param [String] update_mask
687
+ # Optional. Field mask is used to specify the fields to be overwritten in the
688
+ # InternalRange resource by the update. The fields specified in the update_mask
689
+ # are relative to the resource, not the full request. A field will be
690
+ # overwritten if it is in the mask. If the user does not provide a mask then all
691
+ # fields will be overwritten.
869
692
  # @param [String] fields
870
693
  # Selector specifying which fields to include in a partial response.
871
694
  # @param [String] quota_user
@@ -875,20 +698,23 @@ module Google
875
698
  # Request-specific options
876
699
  #
877
700
  # @yield [result, err] Result & error if block supplied
878
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
701
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation] parsed result object
879
702
  # @yieldparam err [StandardError] error object if request failed
880
703
  #
881
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
704
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation]
882
705
  #
883
706
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
707
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
708
  # @raise [Google::Apis::AuthorizationError] Authorization is required
886
- def get_project_location_service_connection_map_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
887
- command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
888
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
889
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
890
- command.params['resource'] = resource unless resource.nil?
891
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
709
+ 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)
710
+ command = make_simple_command(:patch, 'v1alpha1/{+name}', options)
711
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::InternalRange::Representation
712
+ command.request_object = internal_range_object
713
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation::Representation
714
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation
715
+ command.params['name'] = name unless name.nil?
716
+ command.query['requestId'] = request_id unless request_id.nil?
717
+ command.query['updateMask'] = update_mask unless update_mask.nil?
892
718
  command.query['fields'] = fields unless fields.nil?
893
719
  command.query['quotaUser'] = quota_user unless quota_user.nil?
894
720
  execute_or_queue_command(command, &block)
@@ -919,7 +745,7 @@ module Google
919
745
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
920
746
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
921
747
  # @raise [Google::Apis::AuthorizationError] Authorization is required
922
- def set_service_connection_map_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
748
+ def set_internal_range_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
923
749
  command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
924
750
  command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
925
751
  command.request_object = set_iam_policy_request_object
@@ -958,7 +784,7 @@ module Google
958
784
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
959
785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
960
786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
961
- def test_service_connection_map_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
787
+ def test_internal_range_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
962
788
  command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
963
789
  command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
964
790
  command.request_object = test_iam_permissions_request_object
@@ -970,23 +796,17 @@ module Google
970
796
  execute_or_queue_command(command, &block)
971
797
  end
972
798
 
973
- # Gets the access control policy for a resource. Returns an empty policy if the
974
- # resource exists and does not have a policy set.
975
- # @param [String] resource
976
- # REQUIRED: The resource for which the policy is being requested. See [Resource
977
- # names](https://cloud.google.com/apis/design/resource_names) for the
978
- # appropriate value for this field.
979
- # @param [Fixnum] options_requested_policy_version
980
- # Optional. The maximum policy version that will be used to format the policy.
981
- # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
982
- # rejected. Requests for policies with any conditional role bindings must
983
- # specify version 3. Policies with no conditional role bindings may specify any
984
- # valid value or leave the field unset. The policy in the response might use the
985
- # policy version that you specified, or it might use a lower policy version. For
986
- # example, if you specify version 3, but the policy has no conditional role
987
- # bindings, the response uses version 1. To learn which resources support
988
- # conditions in their IAM policies, see the [IAM documentation](https://cloud.
989
- # google.com/iam/help/conditions/resource-policies).
799
+ # Starts asynchronous cancellation on a long-running operation. The server makes
800
+ # a best effort to cancel the operation, but success is not guaranteed. If the
801
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
802
+ # Clients can use Operations.GetOperation or other methods to check whether the
803
+ # cancellation succeeded or whether the operation completed despite cancellation.
804
+ # On successful cancellation, the operation is not deleted; instead, it becomes
805
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
806
+ # corresponding to `Code.CANCELLED`.
807
+ # @param [String] name
808
+ # The name of the operation resource to be cancelled.
809
+ # @param [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningCancelOperationRequest] google_longrunning_cancel_operation_request_object
990
810
  # @param [String] fields
991
811
  # Selector specifying which fields to include in a partial response.
992
812
  # @param [String] quota_user
@@ -996,33 +816,32 @@ module Google
996
816
  # Request-specific options
997
817
  #
998
818
  # @yield [result, err] Result & error if block supplied
999
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
819
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Empty] parsed result object
1000
820
  # @yieldparam err [StandardError] error object if request failed
1001
821
  #
1002
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
822
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::Empty]
1003
823
  #
1004
824
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1005
825
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1006
826
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1007
- def get_project_location_service_connection_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
1008
- command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
1009
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
1010
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
1011
- command.params['resource'] = resource unless resource.nil?
1012
- command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
827
+ def cancel_project_location_operation(name, google_longrunning_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
828
+ command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
829
+ command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningCancelOperationRequest::Representation
830
+ command.request_object = google_longrunning_cancel_operation_request_object
831
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Empty::Representation
832
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Empty
833
+ command.params['name'] = name unless name.nil?
1013
834
  command.query['fields'] = fields unless fields.nil?
1014
835
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1015
836
  execute_or_queue_command(command, &block)
1016
837
  end
1017
838
 
1018
- # Sets the access control policy on the specified resource. Replaces any
1019
- # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
1020
- # PERMISSION_DENIED` errors.
1021
- # @param [String] resource
1022
- # REQUIRED: The resource for which the policy is being specified. See [Resource
1023
- # names](https://cloud.google.com/apis/design/resource_names) for the
1024
- # appropriate value for this field.
1025
- # @param [Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest] set_iam_policy_request_object
839
+ # Deletes a long-running operation. This method indicates that the client is no
840
+ # longer interested in the operation result. It does not cancel the operation.
841
+ # If the server doesn't support this method, it returns `google.rpc.Code.
842
+ # UNIMPLEMENTED`.
843
+ # @param [String] name
844
+ # The name of the operation resource to be deleted.
1026
845
  # @param [String] fields
1027
846
  # Selector specifying which fields to include in a partial response.
1028
847
  # @param [String] quota_user
@@ -1032,36 +851,28 @@ module Google
1032
851
  # Request-specific options
1033
852
  #
1034
853
  # @yield [result, err] Result & error if block supplied
1035
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Policy] parsed result object
854
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::Empty] parsed result object
1036
855
  # @yieldparam err [StandardError] error object if request failed
1037
856
  #
1038
- # @return [Google::Apis::NetworkconnectivityV1alpha1::Policy]
857
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::Empty]
1039
858
  #
1040
859
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1041
860
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1042
861
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1043
- def set_service_connection_policy_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1044
- command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
1045
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::SetIamPolicyRequest::Representation
1046
- command.request_object = set_iam_policy_request_object
1047
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Policy::Representation
1048
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Policy
1049
- command.params['resource'] = resource unless resource.nil?
862
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
863
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
864
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::Empty::Representation
865
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::Empty
866
+ command.params['name'] = name unless name.nil?
1050
867
  command.query['fields'] = fields unless fields.nil?
1051
868
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1052
869
  execute_or_queue_command(command, &block)
1053
870
  end
1054
871
 
1055
- # Returns permissions that a caller has on the specified resource. If the
1056
- # resource does not exist, this will return an empty set of permissions, not a `
1057
- # NOT_FOUND` error. Note: This operation is designed to be used for building
1058
- # permission-aware UIs and command-line tools, not for authorization checking.
1059
- # This operation may "fail open" without warning.
1060
- # @param [String] resource
1061
- # REQUIRED: The resource for which the policy detail is being requested. See [
1062
- # Resource names](https://cloud.google.com/apis/design/resource_names) for the
1063
- # appropriate value for this field.
1064
- # @param [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest] test_iam_permissions_request_object
872
+ # Gets the latest state of a long-running operation. Clients can use this method
873
+ # to poll the operation result at intervals as recommended by the API service.
874
+ # @param [String] name
875
+ # The name of the operation resource.
1065
876
  # @param [String] fields
1066
877
  # Selector specifying which fields to include in a partial response.
1067
878
  # @param [String] quota_user
@@ -1071,21 +882,65 @@ module Google
1071
882
  # Request-specific options
1072
883
  #
1073
884
  # @yield [result, err] Result & error if block supplied
1074
- # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse] parsed result object
885
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation] parsed result object
1075
886
  # @yieldparam err [StandardError] error object if request failed
1076
887
  #
1077
- # @return [Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse]
888
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation]
1078
889
  #
1079
890
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1080
891
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1081
892
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1082
- def test_service_connection_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1083
- command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
1084
- command.request_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsRequest::Representation
1085
- command.request_object = test_iam_permissions_request_object
1086
- command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse::Representation
1087
- command.response_class = Google::Apis::NetworkconnectivityV1alpha1::TestIamPermissionsResponse
1088
- command.params['resource'] = resource unless resource.nil?
893
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
894
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
895
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation::Representation
896
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningOperation
897
+ command.params['name'] = name unless name.nil?
898
+ command.query['fields'] = fields unless fields.nil?
899
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
900
+ execute_or_queue_command(command, &block)
901
+ end
902
+
903
+ # Lists operations that match the specified filter in the request. If the server
904
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
905
+ # binding allows API services to override the binding to use different resource
906
+ # name schemes, such as `users/*/operations`. To override the binding, API
907
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
908
+ # service configuration. For backwards compatibility, the default name includes
909
+ # the operations collection id, however overriding users must ensure the name
910
+ # binding is the parent resource, without the operations collection id.
911
+ # @param [String] name
912
+ # The name of the operation's parent resource.
913
+ # @param [String] filter
914
+ # The standard list filter.
915
+ # @param [Fixnum] page_size
916
+ # The standard list page size.
917
+ # @param [String] page_token
918
+ # The standard list page token.
919
+ # @param [String] fields
920
+ # Selector specifying which fields to include in a partial response.
921
+ # @param [String] quota_user
922
+ # Available to use for quota purposes for server-side applications. Can be any
923
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
924
+ # @param [Google::Apis::RequestOptions] options
925
+ # Request-specific options
926
+ #
927
+ # @yield [result, err] Result & error if block supplied
928
+ # @yieldparam result [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse] parsed result object
929
+ # @yieldparam err [StandardError] error object if request failed
930
+ #
931
+ # @return [Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse]
932
+ #
933
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
934
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
935
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
936
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
937
+ command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
938
+ command.response_representation = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse::Representation
939
+ command.response_class = Google::Apis::NetworkconnectivityV1alpha1::GoogleLongrunningListOperationsResponse
940
+ command.params['name'] = name unless name.nil?
941
+ command.query['filter'] = filter unless filter.nil?
942
+ command.query['pageSize'] = page_size unless page_size.nil?
943
+ command.query['pageToken'] = page_token unless page_token.nil?
1089
944
  command.query['fields'] = fields unless fields.nil?
1090
945
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1091
946
  execute_or_queue_command(command, &block)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-networkconnectivity_v1alpha1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.25.0
4
+ version: 0.27.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-31 00:00:00.000000000 Z
11
+ date: 2022-11-14 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_v1alpha1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.25.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-networkconnectivity_v1alpha1/v0.27.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-networkconnectivity_v1alpha1
63
63
  post_install_message:
64
64
  rdoc_options: []