google-cloud-network_connectivity-v1 1.6.0 → 1.7.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.
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module NetworkConnectivity
23
+ module V1
24
+ module InternalRangeService
25
+ # Path helper methods for the InternalRangeService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified InternalRange resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}/internalRanges/{internal_range}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ # @param internal_range [String]
37
+ #
38
+ # @return [::String]
39
+ def internal_range_path project:, location:, internal_range:
40
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
41
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
42
+
43
+ "projects/#{project}/locations/#{location}/internalRanges/#{internal_range}"
44
+ end
45
+
46
+ ##
47
+ # Create a fully-qualified Location resource string.
48
+ #
49
+ # The resource will be in the following format:
50
+ #
51
+ # `projects/{project}/locations/{location}`
52
+ #
53
+ # @param project [String]
54
+ # @param location [String]
55
+ #
56
+ # @return [::String]
57
+ def location_path project:, location:
58
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
59
+
60
+ "projects/#{project}/locations/#{location}"
61
+ end
62
+
63
+ extend self
64
+ end
65
+ end
66
+ end
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2025 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/network_connectivity/v1/version"
24
+
25
+ require "google/cloud/network_connectivity/v1/internal_range_service/credentials"
26
+ require "google/cloud/network_connectivity/v1/internal_range_service/paths"
27
+ require "google/cloud/network_connectivity/v1/internal_range_service/operations"
28
+ require "google/cloud/network_connectivity/v1/internal_range_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module NetworkConnectivity
33
+ module V1
34
+ ##
35
+ # The CLH-based service for internal range resources used to perform IPAM
36
+ # operations within a VPC network.
37
+ #
38
+ # @example Load this service and instantiate a gRPC client
39
+ #
40
+ # require "google/cloud/network_connectivity/v1/internal_range_service"
41
+ # client = ::Google::Cloud::NetworkConnectivity::V1::InternalRangeService::Client.new
42
+ #
43
+ module InternalRangeService
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "internal_range_service", "helpers.rb"
51
+ require "google/cloud/network_connectivity/v1/internal_range_service/helpers" if ::File.file? helper_path
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
23
  module V1
24
- VERSION = "1.6.0"
24
+ VERSION = "1.7.0"
25
25
  end
26
26
  end
27
27
  end
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/network_connectivity/v1/cross_network_automation_service"
20
20
  require "google/cloud/network_connectivity/v1/hub_service"
21
+ require "google/cloud/network_connectivity/v1/internal_range_service"
21
22
  require "google/cloud/network_connectivity/v1/policy_based_routing_service"
22
23
  require "google/cloud/network_connectivity/v1/version"
23
24
 
@@ -0,0 +1,66 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: google/cloud/networkconnectivity/v1/internal_range.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
11
+ require 'google/cloud/networkconnectivity/v1/common_pb'
12
+ require 'google/longrunning/operations_pb'
13
+ require 'google/protobuf/empty_pb'
14
+ require 'google/protobuf/field_mask_pb'
15
+ require 'google/protobuf/timestamp_pb'
16
+
17
+
18
+ descriptor_data = "\n8google/cloud/networkconnectivity/v1/internal_range.proto\x12#google.cloud.networkconnectivity.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x30google/cloud/networkconnectivity/v1/common.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8c\r\n\rInternalRange\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12/\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12N\n\x06labels\x18\x04 \x03(\x0b\x32>.google.cloud.networkconnectivity.v1.InternalRange.LabelsEntry\x12\x18\n\x0b\x64\x65scription\x18\x05 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\rip_cidr_range\x18\x06 \x01(\tB\x03\xe0\x41\x01\x12\x14\n\x07network\x18\x07 \x01(\tB\x03\xe0\x41\x05\x12L\n\x05usage\x18\x08 \x01(\x0e\x32\x38.google.cloud.networkconnectivity.v1.InternalRange.UsageB\x03\xe0\x41\x01\x12P\n\x07peering\x18\t \x01(\x0e\x32:.google.cloud.networkconnectivity.v1.InternalRange.PeeringB\x03\xe0\x41\x01\x12\x1a\n\rprefix_length\x18\n \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11target_cidr_range\x18\x0b \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05users\x18\x0c \x03(\tB\x03\xe0\x41\x03\x12Q\n\x08overlaps\x18\r \x03(\x0e\x32:.google.cloud.networkconnectivity.v1.InternalRange.OverlapB\x03\xe0\x41\x01\x12T\n\tmigration\x18\x0e \x01(\x0b\x32<.google.cloud.networkconnectivity.v1.InternalRange.MigrationB\x03\xe0\x41\x01\x12\x16\n\timmutable\x18\x0f \x01(\x08\x42\x03\xe0\x41\x01\x12\x65\n\x12\x61llocation_options\x18\x10 \x01(\x0b\x32\x44.google.cloud.networkconnectivity.v1.InternalRange.AllocationOptionsB\x03\xe0\x41\x01\x12 \n\x13\x65xclude_cidr_ranges\x18\x11 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\tMigration\x12\x13\n\x06source\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x13\n\x06target\x18\x02 \x01(\tB\x03\xe0\x41\x05\x1a\xad\x01\n\x11\x41llocationOptions\x12g\n\x13\x61llocation_strategy\x18\x01 \x01(\x0e\x32\x45.google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategyB\x03\xe0\x41\x01\x12/\n\"first_available_ranges_lookup_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"S\n\x05Usage\x12\x15\n\x11USAGE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x46OR_VPC\x10\x01\x12\x13\n\x0f\x45XTERNAL_TO_VPC\x10\x02\x12\x11\n\rFOR_MIGRATION\x10\x03\"N\n\x07Peering\x12\x17\n\x13PEERING_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x46OR_SELF\x10\x01\x12\x0c\n\x08\x46OR_PEER\x10\x02\x12\x0e\n\nNOT_SHARED\x10\x03\"^\n\x07Overlap\x12\x17\n\x13OVERLAP_UNSPECIFIED\x10\x00\x12\x17\n\x13OVERLAP_ROUTE_RANGE\x10\x01\x12!\n\x1dOVERLAP_EXISTING_SUBNET_RANGE\x10\x02\"\x94\x01\n\x12\x41llocationStrategy\x12#\n\x1f\x41LLOCATION_STRATEGY_UNSPECIFIED\x10\x00\x12\n\n\x06RANDOM\x10\x01\x12\x13\n\x0f\x46IRST_AVAILABLE\x10\x02\x12\x1c\n\x18RANDOM_FIRST_N_AVAILABLE\x10\x03\x12\x1a\n\x16\x46IRST_SMALLEST_FITTING\x10\x04:~\xea\x41{\n0networkconnectivity.googleapis.com/InternalRange\x12Gprojects/{project}/locations/{location}/internalRanges/{internal_range}\"\x9f\x01\n\x19ListInternalRangesRequest\x12\x39\n\x06parent\x18\x01 \x01(\tB)\xe0\x41\x02\xfa\x41#\n!locations.googleapis.com/Location\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x0e\n\x06\x66ilter\x18\x04 \x01(\t\x12\x10\n\x08order_by\x18\x05 \x01(\t\"\x97\x01\n\x1aListInternalRangesResponse\x12K\n\x0finternal_ranges\x18\x01 \x03(\x0b\x32\x32.google.cloud.networkconnectivity.v1.InternalRange\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"a\n\x17GetInternalRangeRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0networkconnectivity.googleapis.com/InternalRange\"\xf0\x01\n\x1a\x43reateInternalRangeRequest\x12H\n\x06parent\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\x12\x30networkconnectivity.googleapis.com/InternalRange\x12\x1e\n\x11internal_range_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12O\n\x0einternal_range\x18\x03 \x01(\x0b\x32\x32.google.cloud.networkconnectivity.v1.InternalRangeB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xbc\x01\n\x1aUpdateInternalRangeRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12O\n\x0einternal_range\x18\x02 \x01(\x0b\x32\x32.google.cloud.networkconnectivity.v1.InternalRangeB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"}\n\x1a\x44\x65leteInternalRangeRequest\x12\x46\n\x04name\x18\x01 \x01(\tB8\xe0\x41\x02\xfa\x41\x32\n0networkconnectivity.googleapis.com/InternalRange\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xa7\n\n\x14InternalRangeService\x12\xda\x01\n\x12ListInternalRanges\x12>.google.cloud.networkconnectivity.v1.ListInternalRangesRequest\x1a?.google.cloud.networkconnectivity.v1.ListInternalRangesResponse\"C\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{parent=projects/*/locations/*}/internalRanges\x12\xc7\x01\n\x10GetInternalRange\x12<.google.cloud.networkconnectivity.v1.GetInternalRangeRequest\x1a\x32.google.cloud.networkconnectivity.v1.InternalRange\"A\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34\x12\x32/v1/{name=projects/*/locations/*/internalRanges/*}\x12\x91\x02\n\x13\x43reateInternalRange\x12?.google.cloud.networkconnectivity.v1.CreateInternalRangeRequest\x1a\x1d.google.longrunning.Operation\"\x99\x01\xca\x41\"\n\rInternalRange\x12\x11OperationMetadata\xda\x41\'parent,internal_range,internal_range_id\x82\xd3\xe4\x93\x02\x44\"2/v1/{parent=projects/*/locations/*}/internalRanges:\x0einternal_range\x12\x93\x02\n\x13UpdateInternalRange\x12?.google.cloud.networkconnectivity.v1.UpdateInternalRangeRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\xca\x41\"\n\rInternalRange\x12\x11OperationMetadata\xda\x41\x1ainternal_range,update_mask\x82\xd3\xe4\x93\x02S2A/v1/{internal_range.name=projects/*/locations/*/internalRanges/*}:\x0einternal_range\x12\xe5\x01\n\x13\x44\x65leteInternalRange\x12?.google.cloud.networkconnectivity.v1.DeleteInternalRangeRequest\x1a\x1d.google.longrunning.Operation\"n\xca\x41*\n\x15google.protobuf.Empty\x12\x11OperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02\x34*2/v1/{name=projects/*/locations/*/internalRanges/*}\x1aV\xca\x41\"networkconnectivity.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x8f\x02\n\'com.google.cloud.networkconnectivity.v1B\x12InternalRangeProtoP\x01ZYcloud.google.com/go/networkconnectivity/apiv1/networkconnectivitypb;networkconnectivitypb\xaa\x02#Google.Cloud.NetworkConnectivity.V1\xca\x02#Google\\Cloud\\NetworkConnectivity\\V1\xea\x02&Google::Cloud::NetworkConnectivity::V1b\x06proto3"
19
+
20
+ pool = Google::Protobuf::DescriptorPool.generated_pool
21
+
22
+ begin
23
+ pool.add_serialized_file(descriptor_data)
24
+ rescue TypeError
25
+ # Compatibility code: will be removed in the next major version.
26
+ require 'google/protobuf/descriptor_pb'
27
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
28
+ parsed.clear_dependency
29
+ serialized = parsed.class.encode(parsed)
30
+ file = pool.add_serialized_file(serialized)
31
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
32
+ imports = [
33
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
35
+ ]
36
+ imports.each do |type_name, expected_filename|
37
+ import_file = pool.lookup(type_name).file_descriptor
38
+ if import_file.name != expected_filename
39
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
40
+ end
41
+ end
42
+ warn "Each proto file must use a consistent fully-qualified name."
43
+ warn "This will become an error in the next major version."
44
+ end
45
+
46
+ module Google
47
+ module Cloud
48
+ module NetworkConnectivity
49
+ module V1
50
+ InternalRange = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange").msgclass
51
+ InternalRange::Migration = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Migration").msgclass
52
+ InternalRange::AllocationOptions = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.AllocationOptions").msgclass
53
+ InternalRange::Usage = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Usage").enummodule
54
+ InternalRange::Peering = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Peering").enummodule
55
+ InternalRange::Overlap = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.Overlap").enummodule
56
+ InternalRange::AllocationStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.InternalRange.AllocationStrategy").enummodule
57
+ ListInternalRangesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListInternalRangesRequest").msgclass
58
+ ListInternalRangesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListInternalRangesResponse").msgclass
59
+ GetInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetInternalRangeRequest").msgclass
60
+ CreateInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateInternalRangeRequest").msgclass
61
+ UpdateInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateInternalRangeRequest").msgclass
62
+ DeleteInternalRangeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteInternalRangeRequest").msgclass
63
+ end
64
+ end
65
+ end
66
+ end
@@ -0,0 +1,54 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/networkconnectivity/v1/internal_range.proto for package 'Google.Cloud.NetworkConnectivity.V1'
3
+ # Original file comments:
4
+ # Copyright 2025 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/networkconnectivity/v1/internal_range_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module NetworkConnectivity
25
+ module V1
26
+ module InternalRangeService
27
+ # The CLH-based service for internal range resources used to perform IPAM
28
+ # operations within a VPC network.
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.networkconnectivity.v1.InternalRangeService'
36
+
37
+ # Lists internal ranges in a given project and location.
38
+ rpc :ListInternalRanges, ::Google::Cloud::NetworkConnectivity::V1::ListInternalRangesRequest, ::Google::Cloud::NetworkConnectivity::V1::ListInternalRangesResponse
39
+ # Gets details of a single internal range.
40
+ rpc :GetInternalRange, ::Google::Cloud::NetworkConnectivity::V1::GetInternalRangeRequest, ::Google::Cloud::NetworkConnectivity::V1::InternalRange
41
+ # Creates a new internal range in a given project and location.
42
+ rpc :CreateInternalRange, ::Google::Cloud::NetworkConnectivity::V1::CreateInternalRangeRequest, ::Google::Longrunning::Operation
43
+ # Updates the parameters of a single internal range.
44
+ rpc :UpdateInternalRange, ::Google::Cloud::NetworkConnectivity::V1::UpdateInternalRangeRequest, ::Google::Longrunning::Operation
45
+ # Deletes a single internal range.
46
+ rpc :DeleteInternalRange, ::Google::Cloud::NetworkConnectivity::V1::DeleteInternalRangeRequest, ::Google::Longrunning::Operation
47
+ end
48
+
49
+ Stub = Service.rpc_stub_class
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end