google-cloud-network_connectivity-v1 0.1.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 +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +201 -0
- data/README.md +139 -0
- data/lib/google-cloud-network_connectivity-v1.rb +21 -0
- data/lib/google/cloud/network_connectivity/v1.rb +38 -0
- data/lib/google/cloud/network_connectivity/v1/hub_service.rb +52 -0
- data/lib/google/cloud/network_connectivity/v1/hub_service/client.rb +1399 -0
- data/lib/google/cloud/network_connectivity/v1/hub_service/credentials.rb +51 -0
- data/lib/google/cloud/network_connectivity/v1/hub_service/operations.rb +664 -0
- data/lib/google/cloud/network_connectivity/v1/hub_service/paths.rb +143 -0
- data/lib/google/cloud/network_connectivity/v1/version.rb +28 -0
- data/lib/google/cloud/networkconnectivity/v1/common_pb.rb +31 -0
- data/lib/google/cloud/networkconnectivity/v1/hub_pb.rb +158 -0
- data/lib/google/cloud/networkconnectivity/v1/hub_services_pb.rb +72 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/cloud/networkconnectivity/v1/common.rb +56 -0
- data/proto_docs/google/cloud/networkconnectivity/v1/hub.rb +543 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +220 -0
@@ -0,0 +1,143 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 HubService
|
25
|
+
# Path helper methods for the HubService API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Hub resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/global/hubs/{hub}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param hub [String]
|
36
|
+
#
|
37
|
+
# @return [::String]
|
38
|
+
def hub_path project:, hub:
|
39
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
40
|
+
|
41
|
+
"projects/#{project}/locations/global/hubs/#{hub}"
|
42
|
+
end
|
43
|
+
|
44
|
+
##
|
45
|
+
# Create a fully-qualified Instance resource string.
|
46
|
+
#
|
47
|
+
# The resource will be in the following format:
|
48
|
+
#
|
49
|
+
# `projects/{project}/zones/{zone}/instances/{instance}`
|
50
|
+
#
|
51
|
+
# @param project [String]
|
52
|
+
# @param zone [String]
|
53
|
+
# @param instance [String]
|
54
|
+
#
|
55
|
+
# @return [::String]
|
56
|
+
def instance_path project:, zone:, instance:
|
57
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
58
|
+
raise ::ArgumentError, "zone cannot contain /" if zone.to_s.include? "/"
|
59
|
+
|
60
|
+
"projects/#{project}/zones/#{zone}/instances/#{instance}"
|
61
|
+
end
|
62
|
+
|
63
|
+
##
|
64
|
+
# Create a fully-qualified InterconnectAttachment resource string.
|
65
|
+
#
|
66
|
+
# The resource will be in the following format:
|
67
|
+
#
|
68
|
+
# `projects/{project}/regions/{region}/interconnectAttachments/{resource_id}`
|
69
|
+
#
|
70
|
+
# @param project [String]
|
71
|
+
# @param region [String]
|
72
|
+
# @param resource_id [String]
|
73
|
+
#
|
74
|
+
# @return [::String]
|
75
|
+
def interconnect_attachment_path project:, region:, resource_id:
|
76
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
77
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
78
|
+
|
79
|
+
"projects/#{project}/regions/#{region}/interconnectAttachments/#{resource_id}"
|
80
|
+
end
|
81
|
+
|
82
|
+
##
|
83
|
+
# Create a fully-qualified Location resource string.
|
84
|
+
#
|
85
|
+
# The resource will be in the following format:
|
86
|
+
#
|
87
|
+
# `projects/{project}/locations/{location}`
|
88
|
+
#
|
89
|
+
# @param project [String]
|
90
|
+
# @param location [String]
|
91
|
+
#
|
92
|
+
# @return [::String]
|
93
|
+
def location_path project:, location:
|
94
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
95
|
+
|
96
|
+
"projects/#{project}/locations/#{location}"
|
97
|
+
end
|
98
|
+
|
99
|
+
##
|
100
|
+
# Create a fully-qualified Spoke resource string.
|
101
|
+
#
|
102
|
+
# The resource will be in the following format:
|
103
|
+
#
|
104
|
+
# `projects/{project}/locations/{location}/spokes/{spoke}`
|
105
|
+
#
|
106
|
+
# @param project [String]
|
107
|
+
# @param location [String]
|
108
|
+
# @param spoke [String]
|
109
|
+
#
|
110
|
+
# @return [::String]
|
111
|
+
def spoke_path project:, location:, spoke:
|
112
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
113
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
114
|
+
|
115
|
+
"projects/#{project}/locations/#{location}/spokes/#{spoke}"
|
116
|
+
end
|
117
|
+
|
118
|
+
##
|
119
|
+
# Create a fully-qualified VpnTunnel resource string.
|
120
|
+
#
|
121
|
+
# The resource will be in the following format:
|
122
|
+
#
|
123
|
+
# `projects/{project}/regions/{region}/vpnTunnels/{resource_id}`
|
124
|
+
#
|
125
|
+
# @param project [String]
|
126
|
+
# @param region [String]
|
127
|
+
# @param resource_id [String]
|
128
|
+
#
|
129
|
+
# @return [::String]
|
130
|
+
def vpn_tunnel_path project:, region:, resource_id:
|
131
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
132
|
+
raise ::ArgumentError, "region cannot contain /" if region.to_s.include? "/"
|
133
|
+
|
134
|
+
"projects/#{project}/regions/#{region}/vpnTunnels/#{resource_id}"
|
135
|
+
end
|
136
|
+
|
137
|
+
extend self
|
138
|
+
end
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networkconnectivity/v1/common.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/field_behavior_pb'
|
7
|
+
require 'google/protobuf/timestamp_pb'
|
8
|
+
require 'google/api/annotations_pb'
|
9
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
|
+
add_file("google/cloud/networkconnectivity/v1/common.proto", :syntax => :proto3) do
|
11
|
+
add_message "google.cloud.networkconnectivity.v1.OperationMetadata" do
|
12
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
13
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
14
|
+
optional :target, :string, 3
|
15
|
+
optional :verb, :string, 4
|
16
|
+
optional :status_message, :string, 5
|
17
|
+
optional :requested_cancellation, :bool, 6
|
18
|
+
optional :api_version, :string, 7
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
module Google
|
24
|
+
module Cloud
|
25
|
+
module NetworkConnectivity
|
26
|
+
module V1
|
27
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.OperationMetadata").msgclass
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
@@ -0,0 +1,158 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/networkconnectivity/v1/hub.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/field_mask_pb'
|
12
|
+
require 'google/protobuf/timestamp_pb'
|
13
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
+
add_file("google/cloud/networkconnectivity/v1/hub.proto", :syntax => :proto3) do
|
15
|
+
add_message "google.cloud.networkconnectivity.v1.Hub" do
|
16
|
+
optional :name, :string, 1
|
17
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
18
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
19
|
+
map :labels, :string, :string, 4
|
20
|
+
optional :description, :string, 5
|
21
|
+
optional :unique_id, :string, 8
|
22
|
+
optional :state, :enum, 9, "google.cloud.networkconnectivity.v1.State"
|
23
|
+
end
|
24
|
+
add_message "google.cloud.networkconnectivity.v1.Spoke" do
|
25
|
+
optional :name, :string, 1
|
26
|
+
optional :create_time, :message, 2, "google.protobuf.Timestamp"
|
27
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
28
|
+
map :labels, :string, :string, 4
|
29
|
+
optional :description, :string, 5
|
30
|
+
optional :hub, :string, 6
|
31
|
+
optional :linked_vpn_tunnels, :message, 17, "google.cloud.networkconnectivity.v1.LinkedVpnTunnels"
|
32
|
+
optional :linked_interconnect_attachments, :message, 18, "google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments"
|
33
|
+
optional :linked_router_appliance_instances, :message, 19, "google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances"
|
34
|
+
optional :unique_id, :string, 11
|
35
|
+
optional :state, :enum, 15, "google.cloud.networkconnectivity.v1.State"
|
36
|
+
end
|
37
|
+
add_message "google.cloud.networkconnectivity.v1.ListHubsRequest" do
|
38
|
+
optional :parent, :string, 1
|
39
|
+
optional :page_size, :int32, 2
|
40
|
+
optional :page_token, :string, 3
|
41
|
+
optional :filter, :string, 4
|
42
|
+
optional :order_by, :string, 5
|
43
|
+
end
|
44
|
+
add_message "google.cloud.networkconnectivity.v1.ListHubsResponse" do
|
45
|
+
repeated :hubs, :message, 1, "google.cloud.networkconnectivity.v1.Hub"
|
46
|
+
optional :next_page_token, :string, 2
|
47
|
+
repeated :unreachable, :string, 3
|
48
|
+
end
|
49
|
+
add_message "google.cloud.networkconnectivity.v1.GetHubRequest" do
|
50
|
+
optional :name, :string, 1
|
51
|
+
end
|
52
|
+
add_message "google.cloud.networkconnectivity.v1.CreateHubRequest" do
|
53
|
+
optional :parent, :string, 1
|
54
|
+
optional :hub_id, :string, 2
|
55
|
+
optional :hub, :message, 3, "google.cloud.networkconnectivity.v1.Hub"
|
56
|
+
optional :request_id, :string, 4
|
57
|
+
end
|
58
|
+
add_message "google.cloud.networkconnectivity.v1.UpdateHubRequest" do
|
59
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
60
|
+
optional :hub, :message, 2, "google.cloud.networkconnectivity.v1.Hub"
|
61
|
+
optional :request_id, :string, 3
|
62
|
+
end
|
63
|
+
add_message "google.cloud.networkconnectivity.v1.DeleteHubRequest" do
|
64
|
+
optional :name, :string, 1
|
65
|
+
optional :request_id, :string, 2
|
66
|
+
end
|
67
|
+
add_message "google.cloud.networkconnectivity.v1.ListSpokesRequest" do
|
68
|
+
optional :parent, :string, 1
|
69
|
+
optional :page_size, :int32, 2
|
70
|
+
optional :page_token, :string, 3
|
71
|
+
optional :filter, :string, 4
|
72
|
+
optional :order_by, :string, 5
|
73
|
+
end
|
74
|
+
add_message "google.cloud.networkconnectivity.v1.ListSpokesResponse" do
|
75
|
+
repeated :spokes, :message, 1, "google.cloud.networkconnectivity.v1.Spoke"
|
76
|
+
optional :next_page_token, :string, 2
|
77
|
+
repeated :unreachable, :string, 3
|
78
|
+
end
|
79
|
+
add_message "google.cloud.networkconnectivity.v1.GetSpokeRequest" do
|
80
|
+
optional :name, :string, 1
|
81
|
+
end
|
82
|
+
add_message "google.cloud.networkconnectivity.v1.CreateSpokeRequest" do
|
83
|
+
optional :parent, :string, 1
|
84
|
+
optional :spoke_id, :string, 2
|
85
|
+
optional :spoke, :message, 3, "google.cloud.networkconnectivity.v1.Spoke"
|
86
|
+
optional :request_id, :string, 4
|
87
|
+
end
|
88
|
+
add_message "google.cloud.networkconnectivity.v1.UpdateSpokeRequest" do
|
89
|
+
optional :update_mask, :message, 1, "google.protobuf.FieldMask"
|
90
|
+
optional :spoke, :message, 2, "google.cloud.networkconnectivity.v1.Spoke"
|
91
|
+
optional :request_id, :string, 3
|
92
|
+
end
|
93
|
+
add_message "google.cloud.networkconnectivity.v1.DeleteSpokeRequest" do
|
94
|
+
optional :name, :string, 1
|
95
|
+
optional :request_id, :string, 2
|
96
|
+
end
|
97
|
+
add_message "google.cloud.networkconnectivity.v1.DeactivateSpokeRequest" do
|
98
|
+
optional :name, :string, 1
|
99
|
+
optional :request_id, :string, 2
|
100
|
+
end
|
101
|
+
add_message "google.cloud.networkconnectivity.v1.ActivateSpokeRequest" do
|
102
|
+
optional :name, :string, 1
|
103
|
+
optional :request_id, :string, 2
|
104
|
+
end
|
105
|
+
add_message "google.cloud.networkconnectivity.v1.LinkedVpnTunnels" do
|
106
|
+
repeated :uris, :string, 1
|
107
|
+
optional :site_to_site_data_transfer, :bool, 2
|
108
|
+
end
|
109
|
+
add_message "google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments" do
|
110
|
+
repeated :uris, :string, 1
|
111
|
+
optional :site_to_site_data_transfer, :bool, 2
|
112
|
+
end
|
113
|
+
add_message "google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances" do
|
114
|
+
repeated :instances, :message, 1, "google.cloud.networkconnectivity.v1.RouterApplianceInstance"
|
115
|
+
optional :site_to_site_data_transfer, :bool, 2
|
116
|
+
end
|
117
|
+
add_message "google.cloud.networkconnectivity.v1.RouterApplianceInstance" do
|
118
|
+
optional :virtual_machine, :string, 1
|
119
|
+
optional :ip_address, :string, 3
|
120
|
+
end
|
121
|
+
add_enum "google.cloud.networkconnectivity.v1.State" do
|
122
|
+
value :STATE_UNSPECIFIED, 0
|
123
|
+
value :CREATING, 1
|
124
|
+
value :ACTIVE, 2
|
125
|
+
value :DELETING, 3
|
126
|
+
end
|
127
|
+
end
|
128
|
+
end
|
129
|
+
|
130
|
+
module Google
|
131
|
+
module Cloud
|
132
|
+
module NetworkConnectivity
|
133
|
+
module V1
|
134
|
+
Hub = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Hub").msgclass
|
135
|
+
Spoke = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.Spoke").msgclass
|
136
|
+
ListHubsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListHubsRequest").msgclass
|
137
|
+
ListHubsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListHubsResponse").msgclass
|
138
|
+
GetHubRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetHubRequest").msgclass
|
139
|
+
CreateHubRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateHubRequest").msgclass
|
140
|
+
UpdateHubRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateHubRequest").msgclass
|
141
|
+
DeleteHubRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteHubRequest").msgclass
|
142
|
+
ListSpokesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListSpokesRequest").msgclass
|
143
|
+
ListSpokesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ListSpokesResponse").msgclass
|
144
|
+
GetSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.GetSpokeRequest").msgclass
|
145
|
+
CreateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.CreateSpokeRequest").msgclass
|
146
|
+
UpdateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.UpdateSpokeRequest").msgclass
|
147
|
+
DeleteSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeleteSpokeRequest").msgclass
|
148
|
+
DeactivateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.DeactivateSpokeRequest").msgclass
|
149
|
+
ActivateSpokeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.ActivateSpokeRequest").msgclass
|
150
|
+
LinkedVpnTunnels = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedVpnTunnels").msgclass
|
151
|
+
LinkedInterconnectAttachments = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedInterconnectAttachments").msgclass
|
152
|
+
LinkedRouterApplianceInstances = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.LinkedRouterApplianceInstances").msgclass
|
153
|
+
RouterApplianceInstance = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.RouterApplianceInstance").msgclass
|
154
|
+
State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.networkconnectivity.v1.State").enummodule
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
158
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/networkconnectivity/v1/hub.proto for package 'Google.Cloud.NetworkConnectivity.V1'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2021 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/hub_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module NetworkConnectivity
|
25
|
+
module V1
|
26
|
+
module HubService
|
27
|
+
# Network Connectivity Center is a hub-and-spoke abstraction for network
|
28
|
+
# connectivity management in Google Cloud. It reduces operational complexity
|
29
|
+
# through a simple, centralized connectivity management model.
|
30
|
+
class Service
|
31
|
+
|
32
|
+
include GRPC::GenericService
|
33
|
+
|
34
|
+
self.marshal_class_method = :encode
|
35
|
+
self.unmarshal_class_method = :decode
|
36
|
+
self.service_name = 'google.cloud.networkconnectivity.v1.HubService'
|
37
|
+
|
38
|
+
# Lists hubs in a given project.
|
39
|
+
rpc :ListHubs, ::Google::Cloud::NetworkConnectivity::V1::ListHubsRequest, ::Google::Cloud::NetworkConnectivity::V1::ListHubsResponse
|
40
|
+
# Gets details about the specified hub.
|
41
|
+
rpc :GetHub, ::Google::Cloud::NetworkConnectivity::V1::GetHubRequest, ::Google::Cloud::NetworkConnectivity::V1::Hub
|
42
|
+
# Creates a new hub in the specified project.
|
43
|
+
rpc :CreateHub, ::Google::Cloud::NetworkConnectivity::V1::CreateHubRequest, ::Google::Longrunning::Operation
|
44
|
+
# Updates the description and/or labels of the specified hub.
|
45
|
+
rpc :UpdateHub, ::Google::Cloud::NetworkConnectivity::V1::UpdateHubRequest, ::Google::Longrunning::Operation
|
46
|
+
# Deletes the specified hub.
|
47
|
+
rpc :DeleteHub, ::Google::Cloud::NetworkConnectivity::V1::DeleteHubRequest, ::Google::Longrunning::Operation
|
48
|
+
# Lists the spokes in the specified project and location.
|
49
|
+
rpc :ListSpokes, ::Google::Cloud::NetworkConnectivity::V1::ListSpokesRequest, ::Google::Cloud::NetworkConnectivity::V1::ListSpokesResponse
|
50
|
+
# Gets details about the specified spoke.
|
51
|
+
rpc :GetSpoke, ::Google::Cloud::NetworkConnectivity::V1::GetSpokeRequest, ::Google::Cloud::NetworkConnectivity::V1::Spoke
|
52
|
+
# Creates a spoke in the specified project and location.
|
53
|
+
rpc :CreateSpoke, ::Google::Cloud::NetworkConnectivity::V1::CreateSpokeRequest, ::Google::Longrunning::Operation
|
54
|
+
# Updates the parameters of the specified spoke.
|
55
|
+
rpc :UpdateSpoke, ::Google::Cloud::NetworkConnectivity::V1::UpdateSpokeRequest, ::Google::Longrunning::Operation
|
56
|
+
# Deactivates the specified spoke. Deactivating keeps the spoke information
|
57
|
+
# for future re-activation, but disconnects the Google Cloud network from
|
58
|
+
# non-Google-Cloud network.
|
59
|
+
rpc :DeactivateSpoke, ::Google::Cloud::NetworkConnectivity::V1::DeactivateSpokeRequest, ::Google::Longrunning::Operation
|
60
|
+
# Activates the specified spoke. Activating reconnects the Google Cloud
|
61
|
+
# network with the non-Google-Cloud network.
|
62
|
+
rpc :ActivateSpoke, ::Google::Cloud::NetworkConnectivity::V1::ActivateSpokeRequest, ::Google::Longrunning::Operation
|
63
|
+
# Deletes the specified spoke.
|
64
|
+
rpc :DeleteSpoke, ::Google::Cloud::NetworkConnectivity::V1::DeleteSpokeRequest, ::Google::Longrunning::Operation
|
65
|
+
end
|
66
|
+
|
67
|
+
Stub = Service.rpc_stub_class
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
|
58
|
+
# Denotes that a (repeated) field is an unordered list.
|
59
|
+
# This indicates that the service may provide the elements of the list
|
60
|
+
# in any arbitrary order, rather than the order the user originally
|
61
|
+
# provided. Additionally, the list's order may or may not be stable.
|
62
|
+
UNORDERED_LIST = 6
|
63
|
+
|
64
|
+
# Denotes that this field returns a non-empty default value if not set.
|
65
|
+
# This indicates that if the user provides the empty value in a request,
|
66
|
+
# a non-empty value will be returned. The user will not be aware of what
|
67
|
+
# non-empty value to expect.
|
68
|
+
NON_EMPTY_DEFAULT = 7
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|