google-cloud-trace-v1 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6058eaca1038413cdf7d19ca27da0c4c565909b70b04a5e5422c789946bf5739
4
- data.tar.gz: aa96c078e319be069eb945efb7a69396b227665da0e25b48bc936718f12e1eca
3
+ metadata.gz: 95269a0c506bd591f4e5a3d1da7a51124d8320fd325ca5130fa7a87841289bf6
4
+ data.tar.gz: 0ea42ea7491d0125b6689d1037f6ebd58d50341ba16285ee4534a1b80422dcce
5
5
  SHA512:
6
- metadata.gz: 04b0c16f7861bd869a94ee493e3bb803d7f6352caf3ec34a13b8996c316185014ad1d26a3084663cd068cb629065230049ba1b6c3168c28d957b70065572209a
7
- data.tar.gz: 82d900b3d3c9958a22d4346cd48a09200ebce30f2b11f18f62e408d7d3ac32d17f45479fa7c5506ca2618e6d6f51dc54feeb3e079825ad03ef5d902483cb8f05
6
+ metadata.gz: 465bb0b621cd8167e4bfadb3db51d14c7a6a06795f10f76b060d17e078f9c685cddb038a0ae3634db06efca764852c7fe2ce1d2a4d8228e65d784dbdc3bf1ffa
7
+ data.tar.gz: f58b079dec973466fade2ab57d4c4f67ee6b5a2b3e7c1b59c6419022135a2adee3db25803544ec4107ef777f78e3bd8b5f9fc425f33c5a8da199a0a40d96ca69
@@ -251,6 +251,27 @@ module Google
251
251
  #
252
252
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
253
253
  #
254
+ # @example Basic example
255
+ # require "google/cloud/trace/v1"
256
+ #
257
+ # # Create a client object. The client can be reused for multiple calls.
258
+ # client = Google::Cloud::Trace::V1::TraceService::Client.new
259
+ #
260
+ # # Create a request. To set request fields, pass in keyword arguments.
261
+ # request = Google::Cloud::Trace::V1::ListTracesRequest.new
262
+ #
263
+ # # Call the list_traces method.
264
+ # result = client.list_traces request
265
+ #
266
+ # # The returned object is of type Gapic::PagedEnumerable. You can
267
+ # # iterate over all elements by calling #each, and the enumerable
268
+ # # will lazily make API calls to fetch subsequent pages. Other
269
+ # # methods are also available for managing paging directly.
270
+ # result.each do |response|
271
+ # # Each element is of type ::Google::Cloud::Trace::V1::Trace.
272
+ # p response
273
+ # end
274
+ #
254
275
  def list_traces request, options = nil
255
276
  raise ::ArgumentError, "request must be provided" if request.nil?
256
277
 
@@ -268,9 +289,11 @@ module Google
268
289
  gapic_version: ::Google::Cloud::Trace::V1::VERSION
269
290
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
291
 
271
- header_params = {
272
- "project_id" => request.project_id
273
- }
292
+ header_params = {}
293
+ if request.project_id
294
+ header_params["project_id"] = request.project_id
295
+ end
296
+
274
297
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
275
298
  metadata[:"x-goog-request-params"] ||= request_params_header
276
299
 
@@ -322,6 +345,21 @@ module Google
322
345
  #
323
346
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
324
347
  #
348
+ # @example Basic example
349
+ # require "google/cloud/trace/v1"
350
+ #
351
+ # # Create a client object. The client can be reused for multiple calls.
352
+ # client = Google::Cloud::Trace::V1::TraceService::Client.new
353
+ #
354
+ # # Create a request. To set request fields, pass in keyword arguments.
355
+ # request = Google::Cloud::Trace::V1::GetTraceRequest.new
356
+ #
357
+ # # Call the get_trace method.
358
+ # result = client.get_trace request
359
+ #
360
+ # # The returned object is of type Google::Cloud::Trace::V1::Trace.
361
+ # p result
362
+ #
325
363
  def get_trace request, options = nil
326
364
  raise ::ArgumentError, "request must be provided" if request.nil?
327
365
 
@@ -339,10 +377,14 @@ module Google
339
377
  gapic_version: ::Google::Cloud::Trace::V1::VERSION
340
378
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
341
379
 
342
- header_params = {
343
- "project_id" => request.project_id,
344
- "trace_id" => request.trace_id
345
- }
380
+ header_params = {}
381
+ if request.project_id
382
+ header_params["project_id"] = request.project_id
383
+ end
384
+ if request.trace_id
385
+ header_params["trace_id"] = request.trace_id
386
+ end
387
+
346
388
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
347
389
  metadata[:"x-goog-request-params"] ||= request_params_header
348
390
 
@@ -397,6 +439,21 @@ module Google
397
439
  #
398
440
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
399
441
  #
442
+ # @example Basic example
443
+ # require "google/cloud/trace/v1"
444
+ #
445
+ # # Create a client object. The client can be reused for multiple calls.
446
+ # client = Google::Cloud::Trace::V1::TraceService::Client.new
447
+ #
448
+ # # Create a request. To set request fields, pass in keyword arguments.
449
+ # request = Google::Cloud::Trace::V1::PatchTracesRequest.new
450
+ #
451
+ # # Call the patch_traces method.
452
+ # result = client.patch_traces request
453
+ #
454
+ # # The returned object is of type Google::Protobuf::Empty.
455
+ # p result
456
+ #
400
457
  def patch_traces request, options = nil
401
458
  raise ::ArgumentError, "request must be provided" if request.nil?
402
459
 
@@ -414,9 +471,11 @@ module Google
414
471
  gapic_version: ::Google::Cloud::Trace::V1::VERSION
415
472
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
416
473
 
417
- header_params = {
418
- "project_id" => request.project_id
419
- }
474
+ header_params = {}
475
+ if request.project_id
476
+ header_params["project_id"] = request.project_id
477
+ end
478
+
420
479
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
421
480
  metadata[:"x-goog-request-params"] ||= request_params_header
422
481
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Trace
23
23
  module V1
24
- VERSION = "0.3.3"
24
+ VERSION = "0.3.4"
25
25
  end
26
26
  end
27
27
  end
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/devtools/cloudtrace/v1/trace.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/client_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
9
7
  require 'google/protobuf/empty_pb'
10
8
  require 'google/protobuf/timestamp_pb'
11
9
  require 'google/api/annotations_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/devtools/cloudtrace/v1/trace.proto", :syntax => :proto3) do
14
14
  add_message "google.devtools.cloudtrace.v1.Trace" do
@@ -31,7 +31,7 @@ module Google
31
31
  # may span multiple services.
32
32
  class Service
33
33
 
34
- include GRPC::GenericService
34
+ include ::GRPC::GenericService
35
35
 
36
36
  self.marshal_class_method = :encode
37
37
  self.unmarshal_class_method = :decode
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-trace-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
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