google-cloud-essential_contacts-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: e055e225c35ebb515a17d6e81decb830f77265c61ccf38b7583bfdb3294b0a64
4
- data.tar.gz: dbcdaf2ad49769659b1a53d902307bd67c6699855d078bd2da5e763b7902e1af
3
+ metadata.gz: 2754bc1e3bd20a0ce5fc855065bac52e082545c31b3dd543e96c042923716483
4
+ data.tar.gz: 66cfd2029150d811527fdffcb576a1315905a4cf2fe11be20489e92013a99325
5
5
  SHA512:
6
- metadata.gz: 494470453ddc4690a02c99aa2afb6b17edc394a50f7fdf55870f566dd25e262c222a5fbb271a276c7aa4f1003b8f4a7b4098e3629c2ca8e79ba9fb1780004d41
7
- data.tar.gz: 063c1c02104e37c2feb45a28d955367708114f733efe3414964679ce2f85f8edbcbc458d09747972b9e815aebb05280fb44daeb68c85a2937bacb5d4458d84d5
6
+ metadata.gz: 5bd3b43f59a979abc0dfffbaa1a0f8074cef9e625e8baf8c80502478aef4a6ec38d65c104ac6eafb01458d2e345f4af2aef663e9a6cecd660463169073c1a430
7
+ data.tar.gz: 7e13caa1bb0342aa6451d9593cd37b0d6594817aef26723efa0cf0a7e5c2e7279c76a370e2417acbbd24b091c5ed585aec8a906824ea34604cfcc2fad4f5085b
@@ -198,6 +198,21 @@ module Google
198
198
  #
199
199
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
200
200
  #
201
+ # @example Basic example
202
+ # require "google/cloud/essential_contacts/v1"
203
+ #
204
+ # # Create a client object. The client can be reused for multiple calls.
205
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
206
+ #
207
+ # # Create a request. To set request fields, pass in keyword arguments.
208
+ # request = Google::Cloud::EssentialContacts::V1::CreateContactRequest.new
209
+ #
210
+ # # Call the create_contact method.
211
+ # result = client.create_contact request
212
+ #
213
+ # # The returned object is of type Google::Cloud::EssentialContacts::V1::Contact.
214
+ # p result
215
+ #
201
216
  def create_contact request, options = nil
202
217
  raise ::ArgumentError, "request must be provided" if request.nil?
203
218
 
@@ -215,9 +230,11 @@ module Google
215
230
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
216
231
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
217
232
 
218
- header_params = {
219
- "parent" => request.parent
220
- }
233
+ header_params = {}
234
+ if request.parent
235
+ header_params["parent"] = request.parent
236
+ end
237
+
221
238
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
222
239
  metadata[:"x-goog-request-params"] ||= request_params_header
223
240
 
@@ -272,6 +289,21 @@ module Google
272
289
  #
273
290
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
274
291
  #
292
+ # @example Basic example
293
+ # require "google/cloud/essential_contacts/v1"
294
+ #
295
+ # # Create a client object. The client can be reused for multiple calls.
296
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
297
+ #
298
+ # # Create a request. To set request fields, pass in keyword arguments.
299
+ # request = Google::Cloud::EssentialContacts::V1::UpdateContactRequest.new
300
+ #
301
+ # # Call the update_contact method.
302
+ # result = client.update_contact request
303
+ #
304
+ # # The returned object is of type Google::Cloud::EssentialContacts::V1::Contact.
305
+ # p result
306
+ #
275
307
  def update_contact request, options = nil
276
308
  raise ::ArgumentError, "request must be provided" if request.nil?
277
309
 
@@ -289,9 +321,11 @@ module Google
289
321
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
290
322
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
291
323
 
292
- header_params = {
293
- "contact.name" => request.contact.name
294
- }
324
+ header_params = {}
325
+ if request.contact&.name
326
+ header_params["contact.name"] = request.contact.name
327
+ end
328
+
295
329
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
296
330
  metadata[:"x-goog-request-params"] ||= request_params_header
297
331
 
@@ -352,6 +386,27 @@ module Google
352
386
  #
353
387
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
354
388
  #
389
+ # @example Basic example
390
+ # require "google/cloud/essential_contacts/v1"
391
+ #
392
+ # # Create a client object. The client can be reused for multiple calls.
393
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
394
+ #
395
+ # # Create a request. To set request fields, pass in keyword arguments.
396
+ # request = Google::Cloud::EssentialContacts::V1::ListContactsRequest.new
397
+ #
398
+ # # Call the list_contacts method.
399
+ # result = client.list_contacts request
400
+ #
401
+ # # The returned object is of type Gapic::PagedEnumerable. You can
402
+ # # iterate over all elements by calling #each, and the enumerable
403
+ # # will lazily make API calls to fetch subsequent pages. Other
404
+ # # methods are also available for managing paging directly.
405
+ # result.each do |response|
406
+ # # Each element is of type ::Google::Cloud::EssentialContacts::V1::Contact.
407
+ # p response
408
+ # end
409
+ #
355
410
  def list_contacts request, options = nil
356
411
  raise ::ArgumentError, "request must be provided" if request.nil?
357
412
 
@@ -369,9 +424,11 @@ module Google
369
424
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
370
425
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
371
426
 
372
- header_params = {
373
- "parent" => request.parent
374
- }
427
+ header_params = {}
428
+ if request.parent
429
+ header_params["parent"] = request.parent
430
+ end
431
+
375
432
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
376
433
  metadata[:"x-goog-request-params"] ||= request_params_header
377
434
 
@@ -424,6 +481,21 @@ module Google
424
481
  #
425
482
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
426
483
  #
484
+ # @example Basic example
485
+ # require "google/cloud/essential_contacts/v1"
486
+ #
487
+ # # Create a client object. The client can be reused for multiple calls.
488
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
489
+ #
490
+ # # Create a request. To set request fields, pass in keyword arguments.
491
+ # request = Google::Cloud::EssentialContacts::V1::GetContactRequest.new
492
+ #
493
+ # # Call the get_contact method.
494
+ # result = client.get_contact request
495
+ #
496
+ # # The returned object is of type Google::Cloud::EssentialContacts::V1::Contact.
497
+ # p result
498
+ #
427
499
  def get_contact request, options = nil
428
500
  raise ::ArgumentError, "request must be provided" if request.nil?
429
501
 
@@ -441,9 +513,11 @@ module Google
441
513
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
442
514
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
515
 
444
- header_params = {
445
- "name" => request.name
446
- }
516
+ header_params = {}
517
+ if request.name
518
+ header_params["name"] = request.name
519
+ end
520
+
447
521
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
448
522
  metadata[:"x-goog-request-params"] ||= request_params_header
449
523
 
@@ -495,6 +569,21 @@ module Google
495
569
  #
496
570
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
497
571
  #
572
+ # @example Basic example
573
+ # require "google/cloud/essential_contacts/v1"
574
+ #
575
+ # # Create a client object. The client can be reused for multiple calls.
576
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
577
+ #
578
+ # # Create a request. To set request fields, pass in keyword arguments.
579
+ # request = Google::Cloud::EssentialContacts::V1::DeleteContactRequest.new
580
+ #
581
+ # # Call the delete_contact method.
582
+ # result = client.delete_contact request
583
+ #
584
+ # # The returned object is of type Google::Protobuf::Empty.
585
+ # p result
586
+ #
498
587
  def delete_contact request, options = nil
499
588
  raise ::ArgumentError, "request must be provided" if request.nil?
500
589
 
@@ -512,9 +601,11 @@ module Google
512
601
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
513
602
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
514
603
 
515
- header_params = {
516
- "name" => request.name
517
- }
604
+ header_params = {}
605
+ if request.name
606
+ header_params["name"] = request.name
607
+ end
608
+
518
609
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
519
610
  metadata[:"x-goog-request-params"] ||= request_params_header
520
611
 
@@ -581,6 +672,27 @@ module Google
581
672
  #
582
673
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
583
674
  #
675
+ # @example Basic example
676
+ # require "google/cloud/essential_contacts/v1"
677
+ #
678
+ # # Create a client object. The client can be reused for multiple calls.
679
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
680
+ #
681
+ # # Create a request. To set request fields, pass in keyword arguments.
682
+ # request = Google::Cloud::EssentialContacts::V1::ComputeContactsRequest.new
683
+ #
684
+ # # Call the compute_contacts method.
685
+ # result = client.compute_contacts request
686
+ #
687
+ # # The returned object is of type Gapic::PagedEnumerable. You can
688
+ # # iterate over all elements by calling #each, and the enumerable
689
+ # # will lazily make API calls to fetch subsequent pages. Other
690
+ # # methods are also available for managing paging directly.
691
+ # result.each do |response|
692
+ # # Each element is of type ::Google::Cloud::EssentialContacts::V1::Contact.
693
+ # p response
694
+ # end
695
+ #
584
696
  def compute_contacts request, options = nil
585
697
  raise ::ArgumentError, "request must be provided" if request.nil?
586
698
 
@@ -598,9 +710,11 @@ module Google
598
710
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
599
711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
600
712
 
601
- header_params = {
602
- "parent" => request.parent
603
- }
713
+ header_params = {}
714
+ if request.parent
715
+ header_params["parent"] = request.parent
716
+ end
717
+
604
718
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
605
719
  metadata[:"x-goog-request-params"] ||= request_params_header
606
720
 
@@ -663,6 +777,21 @@ module Google
663
777
  #
664
778
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
665
779
  #
780
+ # @example Basic example
781
+ # require "google/cloud/essential_contacts/v1"
782
+ #
783
+ # # Create a client object. The client can be reused for multiple calls.
784
+ # client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
785
+ #
786
+ # # Create a request. To set request fields, pass in keyword arguments.
787
+ # request = Google::Cloud::EssentialContacts::V1::SendTestMessageRequest.new
788
+ #
789
+ # # Call the send_test_message method.
790
+ # result = client.send_test_message request
791
+ #
792
+ # # The returned object is of type Google::Protobuf::Empty.
793
+ # p result
794
+ #
666
795
  def send_test_message request, options = nil
667
796
  raise ::ArgumentError, "request must be provided" if request.nil?
668
797
 
@@ -680,9 +809,11 @@ module Google
680
809
  gapic_version: ::Google::Cloud::EssentialContacts::V1::VERSION
681
810
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
682
811
 
683
- header_params = {
684
- "resource" => request.resource
685
- }
812
+ header_params = {}
813
+ if request.resource
814
+ header_params["resource"] = request.resource
815
+ end
816
+
686
817
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
687
818
  metadata[:"x-goog-request-params"] ||= request_params_header
688
819
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module EssentialContacts
23
23
  module V1
24
- VERSION = "0.1.2"
24
+ VERSION = "0.1.3"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/essentialcontacts/v1/service.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'
@@ -11,6 +9,8 @@ require 'google/cloud/essentialcontacts/v1/enums_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/essentialcontacts/v1/service.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.essentialcontacts.v1.Contact" do
@@ -27,7 +27,7 @@ module Google
27
27
  # Manages contacts for important Google Cloud notifications.
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
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-essential_contacts-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