google-cloud-apigee_connect-v1 0.1.2 → 0.1.3

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: 216abd964967c120ea8b4a6927c41ea0d97bf2bc5e1d576e1e1d13eba4fb183a
4
- data.tar.gz: 6fa985d759d9b78ed004f90a1459ff1f4cd660495c7e71641bcc26bfb8d30b3b
3
+ metadata.gz: 88cc819dda8110c013597162fc7cfd8face7a61ce30a5799ca3ecd898e3ab609
4
+ data.tar.gz: 9adc038c48de8ec8e3dd47bb51cbc0baafd68c610f2ce6557527b7009e7783ae
5
5
  SHA512:
6
- metadata.gz: 44900abfd393b4895f18ff089077f9a72bc7f11e485ebf58b08e361f66c1f80010c80b28c8b73d832c9dc6a85272c01726085e86d54b10f245433639a2b91f4e
7
- data.tar.gz: 4afafee3c1037ed4d8a004afbedbfe04ed0ac3418873c9d832a5454c664ff5535bd480d7b7256021a9b6672daaecdea2b05732e76456d15864408e87abf95efb
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
- "parent" => request.parent
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
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApigeeConnect
23
23
  module V1
24
- VERSION = "0.1.2"
24
+ VERSION = "0.1.3"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -27,7 +27,7 @@ module Google
27
27
  # Service Interface for the Apigee Connect connection management APIs.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -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
@@ -29,7 +29,7 @@ module Google
29
29
  # requiring customers to open firewalls on their runtime plane.
30
30
  class Service
31
31
 
32
- include GRPC::GenericService
32
+ include ::GRPC::GenericService
33
33
 
34
34
  self.marshal_class_method = :encode
35
35
  self.unmarshal_class_method = :decode
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.2
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 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common