google-cloud-essential_contacts-v1 0.1.2 → 0.2.0
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 +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +11 -6
- data/lib/google/cloud/essential_contacts/v1/essential_contacts_service/client.rb +152 -21
- data/lib/google/cloud/essential_contacts/v1/version.rb +1 -1
- data/lib/google/cloud/essential_contacts/v1.rb +2 -0
- data/lib/google/cloud/essentialcontacts/v1/service_pb.rb +1 -0
- data/lib/google/cloud/essentialcontacts/v1/service_services_pb.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- metadata +12 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 16375aa5538eeb3fe26b20e4a705295caf4c78539f61b6d87706fdd5808d5c13
|
|
4
|
+
data.tar.gz: 6b6207395ac85a7008f4224817bcfce455e2ed31b5c3f2b8284435ebc08e365a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 52df46cea6b0fb02c11581984b42b8350a2341711e19fe76dac9926d624898ab2de90b7ee1a4097ccb291802363fd84103159d5366342d5cf68a380e8f2f58bd
|
|
7
|
+
data.tar.gz: b832cc7fe700e46f43e901e06103cf0096d1844eda023990832ece03cf0965a92b4ee0dc11c1012d08ef23aa94b02c93e553df770099386621f2e37680a6a62f
|
data/.yardopts
CHANGED
data/AUTHENTICATION.md
CHANGED
|
@@ -120,15 +120,6 @@ To configure your system for this, simply:
|
|
|
120
120
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
|
121
121
|
*should* only be used during development.
|
|
122
122
|
|
|
123
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
|
124
|
-
[dev-console]: https://console.cloud.google.com/project
|
|
125
|
-
|
|
126
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
|
127
|
-
|
|
128
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
|
129
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
|
130
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
|
131
|
-
|
|
132
123
|
## Creating a Service Account
|
|
133
124
|
|
|
134
125
|
Google Cloud requires **Service Account Credentials** to
|
|
@@ -139,31 +130,22 @@ If you are not running this client within
|
|
|
139
130
|
[Google Cloud Platform environments](#google-cloud-platform-environments), you
|
|
140
131
|
need a Google Developers service account.
|
|
141
132
|
|
|
142
|
-
1. Visit the [Google
|
|
133
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
|
143
134
|
2. Create a new project or click on an existing project.
|
|
144
|
-
3. Activate the
|
|
135
|
+
3. Activate the menu in the upper left and select **APIs & Services**. From
|
|
145
136
|
here, you will enable the APIs that your application requires.
|
|
146
137
|
|
|
147
|
-
![Enable the APIs that your application requires][enable-apis]
|
|
148
|
-
|
|
149
138
|
*Note: You may need to enable billing in order to use these services.*
|
|
150
139
|
|
|
151
140
|
4. Select **Credentials** from the side navigation.
|
|
152
141
|
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
![Create a new service account][create-new-service-account]
|
|
156
|
-
|
|
157
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
|
158
|
-
|
|
159
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
|
160
|
-
guided through downloading a new JSON key file.
|
|
142
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
|
143
|
+
"Service account" to be guided through downloading a new JSON key file.
|
|
161
144
|
|
|
162
145
|
If you want to re-use an existing service account, you can easily generate a
|
|
163
|
-
new key file. Just select the account you wish to re-use,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
![Re-use an existing service account][reuse-service-account]
|
|
146
|
+
new key file. Just select the account you wish to re-use, click the pencil
|
|
147
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
|
148
|
+
and then select **Add Key**.
|
|
167
149
|
|
|
168
150
|
The key file you download will be used by this library to authenticate API
|
|
169
151
|
requests and should be stored in a secure location.
|
data/README.md
CHANGED
|
@@ -37,7 +37,7 @@ request = ::Google::Cloud::EssentialContacts::V1::CreateContactRequest.new # (re
|
|
|
37
37
|
response = client.create_contact request
|
|
38
38
|
```
|
|
39
39
|
|
|
40
|
-
View the [Client Library Documentation](https://
|
|
40
|
+
View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-essential_contacts-v1/latest)
|
|
41
41
|
for class and method documentation.
|
|
42
42
|
|
|
43
43
|
See also the [Product Documentation](https://cloud.google.com/resource-manager/docs/managing-notification-contacts/)
|
|
@@ -69,16 +69,21 @@ module GRPC
|
|
|
69
69
|
end
|
|
70
70
|
```
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
## Google Cloud Samples
|
|
74
|
+
|
|
75
|
+
To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
|
|
76
|
+
|
|
72
77
|
## Supported Ruby Versions
|
|
73
78
|
|
|
74
|
-
This library is supported on Ruby 2.
|
|
79
|
+
This library is supported on Ruby 2.6+.
|
|
75
80
|
|
|
76
81
|
Google provides official support for Ruby versions that are actively supported
|
|
77
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
|
78
|
-
in security maintenance, and not end of life.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
83
|
+
in security maintenance, and not end of life. Older versions of Ruby _may_
|
|
84
|
+
still work, but are unsupported and not recommended. See
|
|
85
|
+
https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
|
|
86
|
+
support schedule.
|
|
82
87
|
|
|
83
88
|
## Which client should I use?
|
|
84
89
|
|
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
|
@@ -25,6 +25,8 @@ module Google
|
|
|
25
25
|
##
|
|
26
26
|
# To load this package, including all its services, and instantiate a client:
|
|
27
27
|
#
|
|
28
|
+
# @example
|
|
29
|
+
#
|
|
28
30
|
# require "google/cloud/essential_contacts/v1"
|
|
29
31
|
# client = ::Google::Cloud::EssentialContacts::V1::EssentialContactsService::Client.new
|
|
30
32
|
#
|
|
@@ -11,6 +11,7 @@ require 'google/cloud/essentialcontacts/v1/enums_pb'
|
|
|
11
11
|
require 'google/protobuf/empty_pb'
|
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
|
13
13
|
require 'google/protobuf/timestamp_pb'
|
|
14
|
+
|
|
14
15
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
15
16
|
add_file("google/cloud/essentialcontacts/v1/service.proto", :syntax => :proto3) do
|
|
16
17
|
add_message "google.cloud.essentialcontacts.v1.Contact" do
|
|
@@ -33,11 +33,7 @@ module Google
|
|
|
33
33
|
# // For Kubernetes resources, the format is {api group}/{kind}.
|
|
34
34
|
# option (google.api.resource) = {
|
|
35
35
|
# type: "pubsub.googleapis.com/Topic"
|
|
36
|
-
#
|
|
37
|
-
# pattern: "projects/{project}/topics/{topic}"
|
|
38
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
|
39
|
-
# parent_name_extractor: "projects/{project}"
|
|
40
|
-
# }
|
|
36
|
+
# pattern: "projects/{project}/topics/{topic}"
|
|
41
37
|
# };
|
|
42
38
|
# }
|
|
43
39
|
#
|
|
@@ -45,10 +41,7 @@ module Google
|
|
|
45
41
|
#
|
|
46
42
|
# resources:
|
|
47
43
|
# - type: "pubsub.googleapis.com/Topic"
|
|
48
|
-
#
|
|
49
|
-
# - pattern: "projects/{project}/topics/{topic}"
|
|
50
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
|
51
|
-
# parent_name_extractor: "projects/{project}"
|
|
44
|
+
# pattern: "projects/{project}/topics/{topic}"
|
|
52
45
|
#
|
|
53
46
|
# Sometimes, resources have multiple patterns, typically because they can
|
|
54
47
|
# live under multiple parents.
|
|
@@ -58,26 +51,10 @@ module Google
|
|
|
58
51
|
# message LogEntry {
|
|
59
52
|
# option (google.api.resource) = {
|
|
60
53
|
# type: "logging.googleapis.com/LogEntry"
|
|
61
|
-
#
|
|
62
|
-
#
|
|
63
|
-
#
|
|
64
|
-
#
|
|
65
|
-
# }
|
|
66
|
-
# name_descriptor: {
|
|
67
|
-
# pattern: "folders/{folder}/logs/{log}"
|
|
68
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
|
69
|
-
# parent_name_extractor: "folders/{folder}"
|
|
70
|
-
# }
|
|
71
|
-
# name_descriptor: {
|
|
72
|
-
# pattern: "organizations/{organization}/logs/{log}"
|
|
73
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
|
74
|
-
# parent_name_extractor: "organizations/{organization}"
|
|
75
|
-
# }
|
|
76
|
-
# name_descriptor: {
|
|
77
|
-
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
|
78
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
|
79
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
|
80
|
-
# }
|
|
54
|
+
# pattern: "projects/{project}/logs/{log}"
|
|
55
|
+
# pattern: "folders/{folder}/logs/{log}"
|
|
56
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
|
57
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
|
81
58
|
# };
|
|
82
59
|
# }
|
|
83
60
|
#
|
|
@@ -85,48 +62,10 @@ module Google
|
|
|
85
62
|
#
|
|
86
63
|
# resources:
|
|
87
64
|
# - type: 'logging.googleapis.com/LogEntry'
|
|
88
|
-
#
|
|
89
|
-
#
|
|
90
|
-
#
|
|
91
|
-
#
|
|
92
|
-
# - pattern: "folders/{folder}/logs/{log}"
|
|
93
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
|
94
|
-
# parent_name_extractor: "folders/{folder}"
|
|
95
|
-
# - pattern: "organizations/{organization}/logs/{log}"
|
|
96
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Organization"
|
|
97
|
-
# parent_name_extractor: "organizations/{organization}"
|
|
98
|
-
# - pattern: "billingAccounts/{billing_account}/logs/{log}"
|
|
99
|
-
# parent_type: "billing.googleapis.com/BillingAccount"
|
|
100
|
-
# parent_name_extractor: "billingAccounts/{billing_account}"
|
|
101
|
-
#
|
|
102
|
-
# For flexible resources, the resource name doesn't contain parent names, but
|
|
103
|
-
# the resource itself has parents for policy evaluation.
|
|
104
|
-
#
|
|
105
|
-
# Example:
|
|
106
|
-
#
|
|
107
|
-
# message Shelf {
|
|
108
|
-
# option (google.api.resource) = {
|
|
109
|
-
# type: "library.googleapis.com/Shelf"
|
|
110
|
-
# name_descriptor: {
|
|
111
|
-
# pattern: "shelves/{shelf}"
|
|
112
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
|
113
|
-
# }
|
|
114
|
-
# name_descriptor: {
|
|
115
|
-
# pattern: "shelves/{shelf}"
|
|
116
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
|
117
|
-
# }
|
|
118
|
-
# };
|
|
119
|
-
# }
|
|
120
|
-
#
|
|
121
|
-
# The ResourceDescriptor Yaml config will look like:
|
|
122
|
-
#
|
|
123
|
-
# resources:
|
|
124
|
-
# - type: 'library.googleapis.com/Shelf'
|
|
125
|
-
# name_descriptor:
|
|
126
|
-
# - pattern: "shelves/{shelf}"
|
|
127
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Project"
|
|
128
|
-
# - pattern: "shelves/{shelf}"
|
|
129
|
-
# parent_type: "cloudresourcemanager.googleapis.com/Folder"
|
|
65
|
+
# pattern: "projects/{project}/logs/{log}"
|
|
66
|
+
# pattern: "folders/{folder}/logs/{log}"
|
|
67
|
+
# pattern: "organizations/{organization}/logs/{log}"
|
|
68
|
+
# pattern: "billingAccounts/{billing_account}/logs/{log}"
|
|
130
69
|
# @!attribute [rw] type
|
|
131
70
|
# @return [::String]
|
|
132
71
|
# The resource type. It must be in the format of
|
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.2.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:
|
|
11
|
+
date: 2022-07-02 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.10'
|
|
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.10'
|
|
30
30
|
- - "<"
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: 2.a
|
|
@@ -50,28 +50,28 @@ dependencies:
|
|
|
50
50
|
requirements:
|
|
51
51
|
- - "~>"
|
|
52
52
|
- !ruby/object:Gem::Version
|
|
53
|
-
version: 1.
|
|
53
|
+
version: 1.26.1
|
|
54
54
|
type: :development
|
|
55
55
|
prerelease: false
|
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
57
|
requirements:
|
|
58
58
|
- - "~>"
|
|
59
59
|
- !ruby/object:Gem::Version
|
|
60
|
-
version: 1.
|
|
60
|
+
version: 1.26.1
|
|
61
61
|
- !ruby/object:Gem::Dependency
|
|
62
62
|
name: minitest
|
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
|
64
64
|
requirements:
|
|
65
65
|
- - "~>"
|
|
66
66
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '5.
|
|
67
|
+
version: '5.16'
|
|
68
68
|
type: :development
|
|
69
69
|
prerelease: false
|
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
71
|
requirements:
|
|
72
72
|
- - "~>"
|
|
73
73
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '5.
|
|
74
|
+
version: '5.16'
|
|
75
75
|
- !ruby/object:Gem::Dependency
|
|
76
76
|
name: minitest-focus
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -106,14 +106,14 @@ dependencies:
|
|
|
106
106
|
requirements:
|
|
107
107
|
- - ">="
|
|
108
108
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
109
|
+
version: '13.0'
|
|
110
110
|
type: :development
|
|
111
111
|
prerelease: false
|
|
112
112
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
113
|
requirements:
|
|
114
114
|
- - ">="
|
|
115
115
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
116
|
+
version: '13.0'
|
|
117
117
|
- !ruby/object:Gem::Dependency
|
|
118
118
|
name: redcarpet
|
|
119
119
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -202,14 +202,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
202
202
|
requirements:
|
|
203
203
|
- - ">="
|
|
204
204
|
- !ruby/object:Gem::Version
|
|
205
|
-
version: '2.
|
|
205
|
+
version: '2.6'
|
|
206
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
207
207
|
requirements:
|
|
208
208
|
- - ">="
|
|
209
209
|
- !ruby/object:Gem::Version
|
|
210
210
|
version: '0'
|
|
211
211
|
requirements: []
|
|
212
|
-
rubygems_version: 3.
|
|
212
|
+
rubygems_version: 3.3.14
|
|
213
213
|
signing_key:
|
|
214
214
|
specification_version: 4
|
|
215
215
|
summary: API Client library for the Essential Contacts V1 API
|