google-cloud-network_connectivity-v1 1.3.0 → 1.4.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.
Files changed (25) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +4 -4
  3. data/README.md +4 -4
  4. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/client.rb +2413 -0
  5. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/credentials.rb +51 -0
  6. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/operations.rb +813 -0
  7. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service/paths.rb +195 -0
  8. data/lib/google/cloud/network_connectivity/v1/cross_network_automation_service.rb +50 -0
  9. data/lib/google/cloud/network_connectivity/v1/hub_service/client.rb +242 -0
  10. data/lib/google/cloud/network_connectivity/v1/policy_based_routing_service/client.rb +24 -17
  11. data/lib/google/cloud/network_connectivity/v1/version.rb +1 -1
  12. data/lib/google/cloud/network_connectivity/v1.rb +2 -1
  13. data/lib/google/cloud/networkconnectivity/v1/common_pb.rb +1 -1
  14. data/lib/google/cloud/networkconnectivity/v1/cross_network_automation_pb.rb +95 -0
  15. data/lib/google/cloud/networkconnectivity/v1/cross_network_automation_services_pb.rb +79 -0
  16. data/lib/google/cloud/networkconnectivity/v1/hub_pb.rb +5 -1
  17. data/lib/google/cloud/networkconnectivity/v1/hub_services_pb.rb +4 -0
  18. data/lib/google/cloud/networkconnectivity/v1/policy_based_routing_services_pb.rb +4 -4
  19. data/proto_docs/google/api/client.rb +14 -0
  20. data/proto_docs/google/cloud/networkconnectivity/v1/common.rb +4 -3
  21. data/proto_docs/google/cloud/networkconnectivity/v1/cross_network_automation.rb +1138 -0
  22. data/proto_docs/google/cloud/networkconnectivity/v1/hub.rb +142 -13
  23. data/proto_docs/google/cloud/networkconnectivity/v1/policy_based_routing.rb +74 -58
  24. data/proto_docs/google/rpc/error_details.rb +346 -0
  25. metadata +12 -3
@@ -0,0 +1,195 @@
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 CrossNetworkAutomationService
25
+ # Path helper methods for the CrossNetworkAutomationService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Location resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/locations/{location}`
33
+ #
34
+ # @param project [String]
35
+ # @param location [String]
36
+ #
37
+ # @return [::String]
38
+ def location_path project:, location:
39
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
+
41
+ "projects/#{project}/locations/#{location}"
42
+ end
43
+
44
+ ##
45
+ # Create a fully-qualified Network resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}/global/networks/{resource_id}`
50
+ #
51
+ # @param project [String]
52
+ # @param resource_id [String]
53
+ #
54
+ # @return [::String]
55
+ def network_path project:, resource_id:
56
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
57
+
58
+ "projects/#{project}/global/networks/#{resource_id}"
59
+ end
60
+
61
+ ##
62
+ # Create a fully-qualified Project resource string.
63
+ #
64
+ # The resource will be in the following format:
65
+ #
66
+ # `projects/{project}`
67
+ #
68
+ # @param project [String]
69
+ #
70
+ # @return [::String]
71
+ def project_path project:
72
+ "projects/#{project}"
73
+ end
74
+
75
+ ##
76
+ # Create a fully-qualified ServiceAttachment resource string.
77
+ #
78
+ # The resource will be in the following format:
79
+ #
80
+ # `projects/{project}/regions/{region}/serviceAttachments/{service_attachment}`
81
+ #
82
+ # @param project [String]
83
+ # @param region [String]
84
+ # @param service_attachment [String]
85
+ #
86
+ # @return [::String]
87
+ def service_attachment_path project:, region:, service_attachment:
88
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
89
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
90
+
91
+ "projects/#{project}/regions/#{region}/serviceAttachments/#{service_attachment}"
92
+ end
93
+
94
+ ##
95
+ # Create a fully-qualified ServiceClass resource string.
96
+ #
97
+ # The resource will be in the following format:
98
+ #
99
+ # `projects/{project}/locations/{location}/serviceClasses/{service_class}`
100
+ #
101
+ # @param project [String]
102
+ # @param location [String]
103
+ # @param service_class [String]
104
+ #
105
+ # @return [::String]
106
+ def service_class_path project:, location:, service_class:
107
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
108
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
109
+
110
+ "projects/#{project}/locations/#{location}/serviceClasses/#{service_class}"
111
+ end
112
+
113
+ ##
114
+ # Create a fully-qualified ServiceConnectionMap resource string.
115
+ #
116
+ # The resource will be in the following format:
117
+ #
118
+ # `projects/{project}/locations/{location}/serviceConnectionMaps/{service_connection_map}`
119
+ #
120
+ # @param project [String]
121
+ # @param location [String]
122
+ # @param service_connection_map [String]
123
+ #
124
+ # @return [::String]
125
+ def service_connection_map_path project:, location:, service_connection_map:
126
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
127
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
128
+
129
+ "projects/#{project}/locations/#{location}/serviceConnectionMaps/#{service_connection_map}"
130
+ end
131
+
132
+ ##
133
+ # Create a fully-qualified ServiceConnectionPolicy resource string.
134
+ #
135
+ # The resource will be in the following format:
136
+ #
137
+ # `projects/{project}/locations/{location}/serviceConnectionPolicies/{service_connection_policy}`
138
+ #
139
+ # @param project [String]
140
+ # @param location [String]
141
+ # @param service_connection_policy [String]
142
+ #
143
+ # @return [::String]
144
+ def service_connection_policy_path project:, location:, service_connection_policy:
145
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
146
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
147
+
148
+ "projects/#{project}/locations/#{location}/serviceConnectionPolicies/#{service_connection_policy}"
149
+ end
150
+
151
+ ##
152
+ # Create a fully-qualified ServiceConnectionToken resource string.
153
+ #
154
+ # The resource will be in the following format:
155
+ #
156
+ # `projects/{project}/locations/{location}/serviceConnectionTokens/{service_connection_token}`
157
+ #
158
+ # @param project [String]
159
+ # @param location [String]
160
+ # @param service_connection_token [String]
161
+ #
162
+ # @return [::String]
163
+ def service_connection_token_path project:, location:, service_connection_token:
164
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
165
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
166
+
167
+ "projects/#{project}/locations/#{location}/serviceConnectionTokens/#{service_connection_token}"
168
+ end
169
+
170
+ ##
171
+ # Create a fully-qualified Subnetwork resource string.
172
+ #
173
+ # The resource will be in the following format:
174
+ #
175
+ # `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
176
+ #
177
+ # @param project [String]
178
+ # @param region [String]
179
+ # @param subnetwork [String]
180
+ #
181
+ # @return [::String]
182
+ def subnetwork_path project:, region:, subnetwork:
183
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
184
+ raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
185
+
186
+ "projects/#{project}/regions/#{region}/subnetworks/#{subnetwork}"
187
+ end
188
+
189
+ extend self
190
+ end
191
+ end
192
+ end
193
+ end
194
+ end
195
+ end
@@ -0,0 +1,50 @@
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/cross_network_automation_service/credentials"
26
+ require "google/cloud/network_connectivity/v1/cross_network_automation_service/paths"
27
+ require "google/cloud/network_connectivity/v1/cross_network_automation_service/operations"
28
+ require "google/cloud/network_connectivity/v1/cross_network_automation_service/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module NetworkConnectivity
33
+ module V1
34
+ ##
35
+ # The service for CrossNetworkAutomation resources.
36
+ #
37
+ # @example Load this service and instantiate a gRPC client
38
+ #
39
+ # require "google/cloud/network_connectivity/v1/cross_network_automation_service"
40
+ # client = ::Google::Cloud::NetworkConnectivity::V1::CrossNetworkAutomationService::Client.new
41
+ #
42
+ module CrossNetworkAutomationService
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+
49
+ helper_path = ::File.join __dir__, "cross_network_automation_service", "helpers.rb"
50
+ require "google/cloud/network_connectivity/v1/cross_network_automation_service/helpers" if ::File.file? helper_path
@@ -1651,6 +1651,234 @@ module Google
1651
1651
  raise ::Google::Cloud::Error.from_error(e)
1652
1652
  end
1653
1653
 
1654
+ ##
1655
+ # Accepts a proposal to update a Network Connectivity Center spoke in a hub.
1656
+ #
1657
+ # @overload accept_spoke_update(request, options = nil)
1658
+ # Pass arguments to `accept_spoke_update` via a request object, either of type
1659
+ # {::Google::Cloud::NetworkConnectivity::V1::AcceptSpokeUpdateRequest} or an equivalent Hash.
1660
+ #
1661
+ # @param request [::Google::Cloud::NetworkConnectivity::V1::AcceptSpokeUpdateRequest, ::Hash]
1662
+ # A request object representing the call parameters. Required. To specify no
1663
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1664
+ # @param options [::Gapic::CallOptions, ::Hash]
1665
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1666
+ #
1667
+ # @overload accept_spoke_update(name: nil, spoke_uri: nil, spoke_etag: nil, request_id: nil)
1668
+ # Pass arguments to `accept_spoke_update` via keyword arguments. Note that at
1669
+ # least one keyword argument is required. To specify no parameters, or to keep all
1670
+ # the default parameter values, pass an empty Hash as a request object (see above).
1671
+ #
1672
+ # @param name [::String]
1673
+ # Required. The name of the hub to accept spoke update.
1674
+ # @param spoke_uri [::String]
1675
+ # Required. The URI of the spoke to accept update.
1676
+ # @param spoke_etag [::String]
1677
+ # Required. The etag of the spoke to accept update.
1678
+ # @param request_id [::String]
1679
+ # Optional. A request ID to identify requests. Specify a unique request ID so
1680
+ # that if you must retry your request, the server knows to ignore the request
1681
+ # if it has already been completed. The server guarantees that a request
1682
+ # doesn't result in creation of duplicate commitments for at least 60
1683
+ # minutes.
1684
+ #
1685
+ # For example, consider a situation where you make an initial request and
1686
+ # the request times out. If you make the request again with the same request
1687
+ # ID, the server can check to see whether the original operation
1688
+ # was received. If it was, the server ignores the second request. This
1689
+ # behavior prevents clients from mistakenly creating duplicate commitments.
1690
+ #
1691
+ # The request ID must be a valid UUID, with the exception that zero UUID is
1692
+ # not supported (00000000-0000-0000-0000-000000000000).
1693
+ #
1694
+ # @yield [response, operation] Access the result along with the RPC operation
1695
+ # @yieldparam response [::Gapic::Operation]
1696
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1697
+ #
1698
+ # @return [::Gapic::Operation]
1699
+ #
1700
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1701
+ #
1702
+ # @example Basic example
1703
+ # require "google/cloud/network_connectivity/v1"
1704
+ #
1705
+ # # Create a client object. The client can be reused for multiple calls.
1706
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
1707
+ #
1708
+ # # Create a request. To set request fields, pass in keyword arguments.
1709
+ # request = Google::Cloud::NetworkConnectivity::V1::AcceptSpokeUpdateRequest.new
1710
+ #
1711
+ # # Call the accept_spoke_update method.
1712
+ # result = client.accept_spoke_update request
1713
+ #
1714
+ # # The returned object is of type Gapic::Operation. You can use it to
1715
+ # # check the status of an operation, cancel it, or wait for results.
1716
+ # # Here is how to wait for a response.
1717
+ # result.wait_until_done! timeout: 60
1718
+ # if result.response?
1719
+ # p result.response
1720
+ # else
1721
+ # puts "No response received."
1722
+ # end
1723
+ #
1724
+ def accept_spoke_update request, options = nil
1725
+ raise ::ArgumentError, "request must be provided" if request.nil?
1726
+
1727
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkConnectivity::V1::AcceptSpokeUpdateRequest
1728
+
1729
+ # Converts hash and nil to an options object
1730
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1731
+
1732
+ # Customize the options with defaults
1733
+ metadata = @config.rpcs.accept_spoke_update.metadata.to_h
1734
+
1735
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1736
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1737
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1738
+ gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
1739
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1740
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1741
+
1742
+ header_params = {}
1743
+ if request.name
1744
+ header_params["name"] = request.name
1745
+ end
1746
+
1747
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1748
+ metadata[:"x-goog-request-params"] ||= request_params_header
1749
+
1750
+ options.apply_defaults timeout: @config.rpcs.accept_spoke_update.timeout,
1751
+ metadata: metadata,
1752
+ retry_policy: @config.rpcs.accept_spoke_update.retry_policy
1753
+
1754
+ options.apply_defaults timeout: @config.timeout,
1755
+ metadata: @config.metadata,
1756
+ retry_policy: @config.retry_policy
1757
+
1758
+ @hub_service_stub.call_rpc :accept_spoke_update, request, options: options do |response, operation|
1759
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1760
+ yield response, operation if block_given?
1761
+ throw :response, response
1762
+ end
1763
+ rescue ::GRPC::BadStatus => e
1764
+ raise ::Google::Cloud::Error.from_error(e)
1765
+ end
1766
+
1767
+ ##
1768
+ # Rejects a proposal to update a Network Connectivity Center spoke in a hub.
1769
+ #
1770
+ # @overload reject_spoke_update(request, options = nil)
1771
+ # Pass arguments to `reject_spoke_update` via a request object, either of type
1772
+ # {::Google::Cloud::NetworkConnectivity::V1::RejectSpokeUpdateRequest} or an equivalent Hash.
1773
+ #
1774
+ # @param request [::Google::Cloud::NetworkConnectivity::V1::RejectSpokeUpdateRequest, ::Hash]
1775
+ # A request object representing the call parameters. Required. To specify no
1776
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1777
+ # @param options [::Gapic::CallOptions, ::Hash]
1778
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1779
+ #
1780
+ # @overload reject_spoke_update(name: nil, spoke_uri: nil, spoke_etag: nil, details: nil, request_id: nil)
1781
+ # Pass arguments to `reject_spoke_update` via keyword arguments. Note that at
1782
+ # least one keyword argument is required. To specify no parameters, or to keep all
1783
+ # the default parameter values, pass an empty Hash as a request object (see above).
1784
+ #
1785
+ # @param name [::String]
1786
+ # Required. The name of the hub to reject spoke update.
1787
+ # @param spoke_uri [::String]
1788
+ # Required. The URI of the spoke to reject update.
1789
+ # @param spoke_etag [::String]
1790
+ # Required. The etag of the spoke to reject update.
1791
+ # @param details [::String]
1792
+ # Optional. Additional information provided by the hub administrator.
1793
+ # @param request_id [::String]
1794
+ # Optional. A request ID to identify requests. Specify a unique request ID so
1795
+ # that if you must retry your request, the server knows to ignore the request
1796
+ # if it has already been completed. The server guarantees that a request
1797
+ # doesn't result in creation of duplicate commitments for at least 60
1798
+ # minutes.
1799
+ #
1800
+ # For example, consider a situation where you make an initial request and
1801
+ # the request times out. If you make the request again with the same request
1802
+ # ID, the server can check to see whether the original operation
1803
+ # was received. If it was, the server ignores the second request. This
1804
+ # behavior prevents clients from mistakenly creating duplicate commitments.
1805
+ #
1806
+ # The request ID must be a valid UUID, with the exception that zero UUID is
1807
+ # not supported (00000000-0000-0000-0000-000000000000).
1808
+ #
1809
+ # @yield [response, operation] Access the result along with the RPC operation
1810
+ # @yieldparam response [::Gapic::Operation]
1811
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1812
+ #
1813
+ # @return [::Gapic::Operation]
1814
+ #
1815
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1816
+ #
1817
+ # @example Basic example
1818
+ # require "google/cloud/network_connectivity/v1"
1819
+ #
1820
+ # # Create a client object. The client can be reused for multiple calls.
1821
+ # client = Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
1822
+ #
1823
+ # # Create a request. To set request fields, pass in keyword arguments.
1824
+ # request = Google::Cloud::NetworkConnectivity::V1::RejectSpokeUpdateRequest.new
1825
+ #
1826
+ # # Call the reject_spoke_update method.
1827
+ # result = client.reject_spoke_update request
1828
+ #
1829
+ # # The returned object is of type Gapic::Operation. You can use it to
1830
+ # # check the status of an operation, cancel it, or wait for results.
1831
+ # # Here is how to wait for a response.
1832
+ # result.wait_until_done! timeout: 60
1833
+ # if result.response?
1834
+ # p result.response
1835
+ # else
1836
+ # puts "No response received."
1837
+ # end
1838
+ #
1839
+ def reject_spoke_update request, options = nil
1840
+ raise ::ArgumentError, "request must be provided" if request.nil?
1841
+
1842
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::NetworkConnectivity::V1::RejectSpokeUpdateRequest
1843
+
1844
+ # Converts hash and nil to an options object
1845
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1846
+
1847
+ # Customize the options with defaults
1848
+ metadata = @config.rpcs.reject_spoke_update.metadata.to_h
1849
+
1850
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1851
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1852
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1853
+ gapic_version: ::Google::Cloud::NetworkConnectivity::V1::VERSION
1854
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1855
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1856
+
1857
+ header_params = {}
1858
+ if request.name
1859
+ header_params["name"] = request.name
1860
+ end
1861
+
1862
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1863
+ metadata[:"x-goog-request-params"] ||= request_params_header
1864
+
1865
+ options.apply_defaults timeout: @config.rpcs.reject_spoke_update.timeout,
1866
+ metadata: metadata,
1867
+ retry_policy: @config.rpcs.reject_spoke_update.retry_policy
1868
+
1869
+ options.apply_defaults timeout: @config.timeout,
1870
+ metadata: @config.metadata,
1871
+ retry_policy: @config.retry_policy
1872
+
1873
+ @hub_service_stub.call_rpc :reject_spoke_update, request, options: options do |response, operation|
1874
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1875
+ yield response, operation if block_given?
1876
+ throw :response, response
1877
+ end
1878
+ rescue ::GRPC::BadStatus => e
1879
+ raise ::Google::Cloud::Error.from_error(e)
1880
+ end
1881
+
1654
1882
  ##
1655
1883
  # Deletes a Network Connectivity Center spoke.
1656
1884
  #
@@ -2659,6 +2887,16 @@ module Google
2659
2887
  #
2660
2888
  attr_reader :accept_hub_spoke
2661
2889
  ##
2890
+ # RPC-specific configuration for `accept_spoke_update`
2891
+ # @return [::Gapic::Config::Method]
2892
+ #
2893
+ attr_reader :accept_spoke_update
2894
+ ##
2895
+ # RPC-specific configuration for `reject_spoke_update`
2896
+ # @return [::Gapic::Config::Method]
2897
+ #
2898
+ attr_reader :reject_spoke_update
2899
+ ##
2662
2900
  # RPC-specific configuration for `delete_spoke`
2663
2901
  # @return [::Gapic::Config::Method]
2664
2902
  #
@@ -2727,6 +2965,10 @@ module Google
2727
2965
  @reject_hub_spoke = ::Gapic::Config::Method.new reject_hub_spoke_config
2728
2966
  accept_hub_spoke_config = parent_rpcs.accept_hub_spoke if parent_rpcs.respond_to? :accept_hub_spoke
2729
2967
  @accept_hub_spoke = ::Gapic::Config::Method.new accept_hub_spoke_config
2968
+ accept_spoke_update_config = parent_rpcs.accept_spoke_update if parent_rpcs.respond_to? :accept_spoke_update
2969
+ @accept_spoke_update = ::Gapic::Config::Method.new accept_spoke_update_config
2970
+ reject_spoke_update_config = parent_rpcs.reject_spoke_update if parent_rpcs.respond_to? :reject_spoke_update
2971
+ @reject_spoke_update = ::Gapic::Config::Method.new reject_spoke_update_config
2730
2972
  delete_spoke_config = parent_rpcs.delete_spoke if parent_rpcs.respond_to? :delete_spoke
2731
2973
  @delete_spoke = ::Gapic::Config::Method.new delete_spoke_config
2732
2974
  get_route_table_config = parent_rpcs.get_route_table if parent_rpcs.respond_to? :get_route_table
@@ -240,7 +240,7 @@ module Google
240
240
  # Service calls
241
241
 
242
242
  ##
243
- # Lists PolicyBasedRoutes in a given project and location.
243
+ # Lists policy-based routes in a given project and location.
244
244
  #
245
245
  # @overload list_policy_based_routes(request, options = nil)
246
246
  # Pass arguments to `list_policy_based_routes` via a request object, either of type
@@ -339,7 +339,7 @@ module Google
339
339
  end
340
340
 
341
341
  ##
342
- # Gets details of a single PolicyBasedRoute.
342
+ # Gets details of a single policy-based route.
343
343
  #
344
344
  # @overload get_policy_based_route(request, options = nil)
345
345
  # Pass arguments to `get_policy_based_route` via a request object, either of type
@@ -424,7 +424,7 @@ module Google
424
424
  end
425
425
 
426
426
  ##
427
- # Creates a new PolicyBasedRoute in a given project and location.
427
+ # Creates a new policy-based route in a given project and location.
428
428
  #
429
429
  # @overload create_policy_based_route(request, options = nil)
430
430
  # Pass arguments to `create_policy_based_route` via a request object, either of type
@@ -444,20 +444,27 @@ module Google
444
444
  # @param parent [::String]
445
445
  # Required. The parent resource's name of the PolicyBasedRoute.
446
446
  # @param policy_based_route_id [::String]
447
- # Required. Unique id for the Policy Based Route to create.
447
+ # Required. Unique id for the policy-based route to create. Provided by the
448
+ # client when the resource is created. The name must comply with
449
+ # https://google.aip.dev/122#resource-id-segments. Specifically, the name
450
+ # must be 1-63 characters long and match the regular expression
451
+ # [a-z]([a-z0-9-]*[a-z0-9])?. The first character must be a lowercase letter,
452
+ # and all following characters (except for the last character) must be a
453
+ # dash, lowercase letter, or digit. The last character must be a lowercase
454
+ # letter or digit.
448
455
  # @param policy_based_route [::Google::Cloud::NetworkConnectivity::V1::PolicyBasedRoute, ::Hash]
449
- # Required. Initial values for a new Policy Based Route.
456
+ # Required. Initial values for a new policy-based route.
450
457
  # @param request_id [::String]
451
458
  # Optional. An optional request ID to identify requests. Specify a unique
452
- # request ID so that if you must retry your request, the server will know to
453
- # ignore the request if it has already been completed. The server will
454
- # guarantee that for at least 60 minutes since the first request.
459
+ # request ID so that if you must retry your request, the server knows to
460
+ # ignore the request if it has already been completed. The server guarantees
461
+ # that for at least 60 minutes since the first request.
455
462
  #
456
463
  # For example, consider a situation where you make an initial request and
457
464
  # the request times out. If you make the request again with the same request
458
465
  # ID, the server can check if original operation with the same request ID
459
- # was received, and if so, will ignore the second request. This prevents
460
- # clients from accidentally creating duplicate commitments.
466
+ # was received, and if so, ignores the second request. This prevents clients
467
+ # from accidentally creating duplicate commitments.
461
468
  #
462
469
  # The request ID must be a valid UUID with the exception that zero UUID is
463
470
  # not supported (00000000-0000-0000-0000-000000000000).
@@ -536,7 +543,7 @@ module Google
536
543
  end
537
544
 
538
545
  ##
539
- # Deletes a single PolicyBasedRoute.
546
+ # Deletes a single policy-based route.
540
547
  #
541
548
  # @overload delete_policy_based_route(request, options = nil)
542
549
  # Pass arguments to `delete_policy_based_route` via a request object, either of type
@@ -554,18 +561,18 @@ module Google
554
561
  # the default parameter values, pass an empty Hash as a request object (see above).
555
562
  #
556
563
  # @param name [::String]
557
- # Required. Name of the PolicyBasedRoute resource to delete.
564
+ # Required. Name of the policy-based route resource to delete.
558
565
  # @param request_id [::String]
559
566
  # Optional. An optional request ID to identify requests. Specify a unique
560
- # request ID so that if you must retry your request, the server will know to
561
- # ignore the request if it has already been completed. The server will
562
- # guarantee that for at least 60 minutes after the first request.
567
+ # request ID so that if you must retry your request, the server knows to
568
+ # ignore the request if it has already been completed. The server guarantees
569
+ # that for at least 60 minutes after the first request.
563
570
  #
564
571
  # For example, consider a situation where you make an initial request and
565
572
  # the request times out. If you make the request again with the same request
566
573
  # ID, the server can check if original operation with the same request ID
567
- # was received, and if so, will ignore the second request. This prevents
568
- # clients from accidentally creating duplicate commitments.
574
+ # was received, and if so, ignores the second request. This prevents clients
575
+ # from accidentally creating duplicate commitments.
569
576
  #
570
577
  # The request ID must be a valid UUID with the exception that zero UUID is
571
578
  # not supported (00000000-0000-0000-0000-000000000000).
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module NetworkConnectivity
23
23
  module V1
24
- VERSION = "1.3.0"
24
+ VERSION = "1.4.0"
25
25
  end
26
26
  end
27
27
  end
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/cloud/network_connectivity/v1/cross_network_automation_service"
19
20
  require "google/cloud/network_connectivity/v1/hub_service"
20
21
  require "google/cloud/network_connectivity/v1/policy_based_routing_service"
21
22
  require "google/cloud/network_connectivity/v1/version"
@@ -29,7 +30,7 @@ module Google
29
30
  # @example Load this package, including all its services, and instantiate a gRPC client
30
31
  #
31
32
  # require "google/cloud/network_connectivity/v1"
32
- # client = ::Google::Cloud::NetworkConnectivity::V1::HubService::Client.new
33
+ # client = ::Google::Cloud::NetworkConnectivity::V1::CrossNetworkAutomationService::Client.new
33
34
  #
34
35
  module V1
35
36
  end
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
 
11
11
 
12
- descriptor_data = "\n0google/cloud/networkconnectivity/v1/common.proto\x12#google.cloud.networkconnectivity.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\xda\x03\n\'com.google.cloud.networkconnectivity.v1B\x0b\x43ommonProtoP\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::V1\xea\x41z\n-compute.googleapis.com/InterconnectAttachment\x12Iprojects/{project}/regions/{region}/interconnectAttachments/{resource_id}\xea\x41R\n\x1e\x63ompute.googleapis.com/Network\x12\x30projects/{project}/global/networks/{resource_id}b\x06proto3"
12
+ descriptor_data = "\n0google/cloud/networkconnectivity/v1/common.proto\x12#google.cloud.networkconnectivity.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\x42\xb8\x05\n\'com.google.cloud.networkconnectivity.v1B\x0b\x43ommonProtoP\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::V1\xea\x41z\n-compute.googleapis.com/InterconnectAttachment\x12Iprojects/{project}/regions/{region}/interconnectAttachments/{resource_id}\xea\x41R\n\x1e\x63ompute.googleapis.com/Network\x12\x30projects/{project}/global/networks/{resource_id}\xea\x41\x61\n!compute.googleapis.com/Subnetwork\x12<projects/{project}/regions/{region}/subnetworks/{subnetwork}\xea\x41w\n(compute.googleapis.com/ServiceAttachment\x12Kprojects/{project}/regions/{region}/serviceAttachments/{service_attachment}b\x06proto3"
13
13
 
14
14
  pool = Google::Protobuf::DescriptorPool.generated_pool
15
15