google-cloud-apigee_connect-v1 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/apigee_connect/v1/connection_service/client.rb +26 -3
- data/lib/google/cloud/apigee_connect/v1/tether/client.rb +24 -0
- data/lib/google/cloud/apigee_connect/v1/version.rb +1 -1
- data/lib/google/cloud/apigeeconnect/v1/connection_pb.rb +2 -2
- data/lib/google/cloud/apigeeconnect/v1/connection_services_pb.rb +1 -1
- data/lib/google/cloud/apigeeconnect/v1/tether_pb.rb +2 -2
- data/lib/google/cloud/apigeeconnect/v1/tether_services_pb.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 88cc819dda8110c013597162fc7cfd8face7a61ce30a5799ca3ecd898e3ab609
|
4
|
+
data.tar.gz: 9adc038c48de8ec8e3dd47bb51cbc0baafd68c610f2ce6557527b7009e7783ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 719c4cd26118ed1b7f769a7f79952079e1b5ba5c242e8dc89bc4fe599f3bde1435bf01dc67eec3959193ff23a7b864c0b34fc2018ba8465c00010f9eedc396a8
|
7
|
+
data.tar.gz: 46fc0c3d9204426e16ad315ee490ceb5ca5605c3dc39263eb0849760aea88d52fa5895988e642968a5b4821f0686b1604876757070b0d6fcfd23874f13cd4f89
|
@@ -190,6 +190,27 @@ module Google
|
|
190
190
|
#
|
191
191
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
192
192
|
#
|
193
|
+
# @example Basic example
|
194
|
+
# require "google/cloud/apigee_connect/v1"
|
195
|
+
#
|
196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
197
|
+
# client = Google::Cloud::ApigeeConnect::V1::ConnectionService::Client.new
|
198
|
+
#
|
199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
200
|
+
# request = Google::Cloud::ApigeeConnect::V1::ListConnectionsRequest.new
|
201
|
+
#
|
202
|
+
# # Call the list_connections method.
|
203
|
+
# result = client.list_connections request
|
204
|
+
#
|
205
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
206
|
+
# # iterate over all elements by calling #each, and the enumerable
|
207
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
208
|
+
# # methods are also available for managing paging directly.
|
209
|
+
# result.each do |response|
|
210
|
+
# # Each element is of type ::Google::Cloud::ApigeeConnect::V1::Connection.
|
211
|
+
# p response
|
212
|
+
# end
|
213
|
+
#
|
193
214
|
def list_connections request, options = nil
|
194
215
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
195
216
|
|
@@ -207,9 +228,11 @@ module Google
|
|
207
228
|
gapic_version: ::Google::Cloud::ApigeeConnect::V1::VERSION
|
208
229
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
209
230
|
|
210
|
-
header_params = {
|
211
|
-
|
212
|
-
|
231
|
+
header_params = {}
|
232
|
+
if request.parent
|
233
|
+
header_params["parent"] = request.parent
|
234
|
+
end
|
235
|
+
|
213
236
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
214
237
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
215
238
|
|
@@ -166,6 +166,30 @@ module Google
|
|
166
166
|
#
|
167
167
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
168
168
|
#
|
169
|
+
# @example Basic example
|
170
|
+
# require "google/cloud/apigee_connect/v1"
|
171
|
+
#
|
172
|
+
# # Create a client object. The client can be reused for multiple calls.
|
173
|
+
# client = Google::Cloud::ApigeeConnect::V1::Tether::Client.new
|
174
|
+
#
|
175
|
+
# # Create an input stream
|
176
|
+
# input = Gapic::StreamInput.new
|
177
|
+
#
|
178
|
+
# # Call the egress method to start streaming.
|
179
|
+
# output = client.egress input
|
180
|
+
#
|
181
|
+
# # Send requests on the stream. For each request, pass in keyword
|
182
|
+
# # arguments to set fields. Be sure to close the stream when done.
|
183
|
+
# input << Google::Cloud::ApigeeConnect::V1::EgressResponse.new
|
184
|
+
# input << Google::Cloud::ApigeeConnect::V1::EgressResponse.new
|
185
|
+
# input.close
|
186
|
+
#
|
187
|
+
# # Handle streamed responses. These may be interleaved with inputs.
|
188
|
+
# # Each response is of type ::Google::Cloud::ApigeeConnect::V1::EgressRequest.
|
189
|
+
# output.each do |response|
|
190
|
+
# p response
|
191
|
+
# end
|
192
|
+
#
|
169
193
|
def egress request, options = nil
|
170
194
|
unless request.is_a? ::Enumerable
|
171
195
|
raise ::ArgumentError, "request must be an Enumerable" unless request.respond_to? :to_enum
|
@@ -1,12 +1,12 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/apigeeconnect/v1/connection.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
8
|
+
require 'google/protobuf'
|
9
|
+
|
10
10
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
11
|
add_file("google/cloud/apigeeconnect/v1/connection.proto", :syntax => :proto3) do
|
12
12
|
add_message "google.cloud.apigeeconnect.v1.ListConnectionsRequest" do
|
@@ -1,11 +1,11 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/apigeeconnect/v1/tether.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/protobuf/duration_pb'
|
7
5
|
require 'google/rpc/status_pb'
|
8
6
|
require 'google/api/client_pb'
|
7
|
+
require 'google/protobuf'
|
8
|
+
|
9
9
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
10
10
|
add_file("google/cloud/apigeeconnect/v1/tether.proto", :syntax => :proto3) do
|
11
11
|
add_message "google.cloud.apigeeconnect.v1.EgressRequest" do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-apigee_connect-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08
|
11
|
+
date: 2021-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|