google-cloud-essential_contacts-v1 0.4.1 → 0.5.0
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/essential_contacts/v1/essential_contacts_service/client.rb +10 -1
- data/lib/google/cloud/essential_contacts/v1/essential_contacts_service/rest/client.rb +120 -0
- data/lib/google/cloud/essential_contacts/v1/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89d71f8f2583420d828247b5f6d9e76a77089fcd1b4b04a9467e60e2332f3e9e
|
4
|
+
data.tar.gz: 733a9ee7ca1129b550cc44e203d317ac962d969002a2b555df1cec60ba2a1ca5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 806efe1497b0056a7dc0329d0ce7c950993a5c3dc2721f99f5b78e959c2e140290e09d753b4a3c38b5e4a8d8b24f1d3613c7cd5659ab705d96031d27a014ecd6
|
7
|
+
data.tar.gz: 945f971588fd6e610e00ed3caf2e12bb6c833559921fa43113cad0fa39c028992b2efdf18c9b8135f3df74400d9da8aa6ff5eb62834a567646719b20846a6976
|
@@ -158,7 +158,8 @@ module Google
|
|
158
158
|
credentials: credentials,
|
159
159
|
endpoint: @config.endpoint,
|
160
160
|
channel_args: @config.channel_args,
|
161
|
-
interceptors: @config.interceptors
|
161
|
+
interceptors: @config.interceptors,
|
162
|
+
channel_pool_config: @config.channel_pool
|
162
163
|
)
|
163
164
|
end
|
164
165
|
|
@@ -948,6 +949,14 @@ module Google
|
|
948
949
|
end
|
949
950
|
end
|
950
951
|
|
952
|
+
##
|
953
|
+
# Configuration for the channel pool
|
954
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
955
|
+
#
|
956
|
+
def channel_pool
|
957
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
958
|
+
end
|
959
|
+
|
951
960
|
##
|
952
961
|
# Configuration RPC class for the EssentialContactsService API.
|
953
962
|
#
|
@@ -187,6 +187,22 @@ module Google
|
|
187
187
|
# @return [::Google::Cloud::EssentialContacts::V1::Contact]
|
188
188
|
#
|
189
189
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
190
|
+
#
|
191
|
+
# @example Basic example
|
192
|
+
# require "google/cloud/essential_contacts/v1"
|
193
|
+
#
|
194
|
+
# # Create a client object. The client can be reused for multiple calls.
|
195
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
196
|
+
#
|
197
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
198
|
+
# request = Google::Cloud::EssentialContacts::V1::CreateContactRequest.new
|
199
|
+
#
|
200
|
+
# # Call the create_contact method.
|
201
|
+
# result = client.create_contact request
|
202
|
+
#
|
203
|
+
# # The returned object is of type Google::Cloud::EssentialContacts::V1::Contact.
|
204
|
+
# p result
|
205
|
+
#
|
190
206
|
def create_contact request, options = nil
|
191
207
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
208
|
|
@@ -255,6 +271,22 @@ module Google
|
|
255
271
|
# @return [::Google::Cloud::EssentialContacts::V1::Contact]
|
256
272
|
#
|
257
273
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
274
|
+
#
|
275
|
+
# @example Basic example
|
276
|
+
# require "google/cloud/essential_contacts/v1"
|
277
|
+
#
|
278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
279
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
280
|
+
#
|
281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
282
|
+
# request = Google::Cloud::EssentialContacts::V1::UpdateContactRequest.new
|
283
|
+
#
|
284
|
+
# # Call the update_contact method.
|
285
|
+
# result = client.update_contact request
|
286
|
+
#
|
287
|
+
# # The returned object is of type Google::Cloud::EssentialContacts::V1::Contact.
|
288
|
+
# p result
|
289
|
+
#
|
258
290
|
def update_contact request, options = nil
|
259
291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
260
292
|
|
@@ -329,6 +361,26 @@ module Google
|
|
329
361
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::EssentialContacts::V1::Contact>]
|
330
362
|
#
|
331
363
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
364
|
+
#
|
365
|
+
# @example Basic example
|
366
|
+
# require "google/cloud/essential_contacts/v1"
|
367
|
+
#
|
368
|
+
# # Create a client object. The client can be reused for multiple calls.
|
369
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
370
|
+
#
|
371
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
372
|
+
# request = Google::Cloud::EssentialContacts::V1::ListContactsRequest.new
|
373
|
+
#
|
374
|
+
# # Call the list_contacts method.
|
375
|
+
# result = client.list_contacts request
|
376
|
+
#
|
377
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
378
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
379
|
+
# result.each do |item|
|
380
|
+
# # Each element is of type ::Google::Cloud::EssentialContacts::V1::Contact.
|
381
|
+
# p item
|
382
|
+
# end
|
383
|
+
#
|
332
384
|
def list_contacts request, options = nil
|
333
385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
334
386
|
|
@@ -395,6 +447,22 @@ module Google
|
|
395
447
|
# @return [::Google::Cloud::EssentialContacts::V1::Contact]
|
396
448
|
#
|
397
449
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
450
|
+
#
|
451
|
+
# @example Basic example
|
452
|
+
# require "google/cloud/essential_contacts/v1"
|
453
|
+
#
|
454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
455
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
456
|
+
#
|
457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
458
|
+
# request = Google::Cloud::EssentialContacts::V1::GetContactRequest.new
|
459
|
+
#
|
460
|
+
# # Call the get_contact method.
|
461
|
+
# result = client.get_contact request
|
462
|
+
#
|
463
|
+
# # The returned object is of type Google::Cloud::EssentialContacts::V1::Contact.
|
464
|
+
# p result
|
465
|
+
#
|
398
466
|
def get_contact request, options = nil
|
399
467
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
400
468
|
|
@@ -460,6 +528,22 @@ module Google
|
|
460
528
|
# @return [::Google::Protobuf::Empty]
|
461
529
|
#
|
462
530
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
531
|
+
#
|
532
|
+
# @example Basic example
|
533
|
+
# require "google/cloud/essential_contacts/v1"
|
534
|
+
#
|
535
|
+
# # Create a client object. The client can be reused for multiple calls.
|
536
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
537
|
+
#
|
538
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
539
|
+
# request = Google::Cloud::EssentialContacts::V1::DeleteContactRequest.new
|
540
|
+
#
|
541
|
+
# # Call the delete_contact method.
|
542
|
+
# result = client.delete_contact request
|
543
|
+
#
|
544
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
545
|
+
# p result
|
546
|
+
#
|
463
547
|
def delete_contact request, options = nil
|
464
548
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
465
549
|
|
@@ -540,6 +624,26 @@ module Google
|
|
540
624
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::EssentialContacts::V1::Contact>]
|
541
625
|
#
|
542
626
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
627
|
+
#
|
628
|
+
# @example Basic example
|
629
|
+
# require "google/cloud/essential_contacts/v1"
|
630
|
+
#
|
631
|
+
# # Create a client object. The client can be reused for multiple calls.
|
632
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
633
|
+
#
|
634
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
635
|
+
# request = Google::Cloud::EssentialContacts::V1::ComputeContactsRequest.new
|
636
|
+
#
|
637
|
+
# # Call the compute_contacts method.
|
638
|
+
# result = client.compute_contacts request
|
639
|
+
#
|
640
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
641
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
642
|
+
# result.each do |item|
|
643
|
+
# # Each element is of type ::Google::Cloud::EssentialContacts::V1::Contact.
|
644
|
+
# p item
|
645
|
+
# end
|
646
|
+
#
|
543
647
|
def compute_contacts request, options = nil
|
544
648
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
545
649
|
|
@@ -616,6 +720,22 @@ module Google
|
|
616
720
|
# @return [::Google::Protobuf::Empty]
|
617
721
|
#
|
618
722
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
723
|
+
#
|
724
|
+
# @example Basic example
|
725
|
+
# require "google/cloud/essential_contacts/v1"
|
726
|
+
#
|
727
|
+
# # Create a client object. The client can be reused for multiple calls.
|
728
|
+
# client = Google::Cloud::EssentialContacts::V1::EssentialContactsService::Rest::Client.new
|
729
|
+
#
|
730
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
731
|
+
# request = Google::Cloud::EssentialContacts::V1::SendTestMessageRequest.new
|
732
|
+
#
|
733
|
+
# # Call the send_test_message method.
|
734
|
+
# result = client.send_test_message request
|
735
|
+
#
|
736
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
737
|
+
# p result
|
738
|
+
#
|
619
739
|
def send_test_message request, options = nil
|
620
740
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
621
741
|
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
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.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -216,7 +216,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
216
216
|
- !ruby/object:Gem::Version
|
217
217
|
version: '0'
|
218
218
|
requirements: []
|
219
|
-
rubygems_version: 3.4.
|
219
|
+
rubygems_version: 3.4.19
|
220
220
|
signing_key:
|
221
221
|
specification_version: 4
|
222
222
|
summary: API Client library for the Essential Contacts V1 API
|