google-cloud-certificate_manager-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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e581375372d0113ee0df9a9698e0a6b2bc992bf9dbc009f87bed0bbedf4124c
4
- data.tar.gz: 6962b446d02ec8d992c53dffe683696d45cc6fff66078f1f477ac2a6358b81e1
3
+ metadata.gz: ee33affb06d2eed88e9f846abbb9542e5a608c1dbd9830858ff91074645ef044
4
+ data.tar.gz: 949d1dcebfc79902b3ec6957441ccde5c137159579201be22d7893f7dd22d7fb
5
5
  SHA512:
6
- metadata.gz: 9a7770db119042654ba1d882e83034a43beb17e08e6f42a812f39fc6e7278a78c358fe66055e48fd879e1e1563ad549ea0cf4de6670a4fa9b8a2ecfb73385091
7
- data.tar.gz: 78b23ac6fe8e4e14da2db5222b02e1fda645fe239d65d3a397d7128426040fd9d97dd99fb2c5db6887dfdffcf4cce0b4684958891625f36b37e9ccff47f0667a
6
+ metadata.gz: 86bb8f70ccbb5d64a323f47259ef9b4338050881258b13db2915bae0c7104763befc9b3813ce96b547384bf3836a1f1d20b84f449ceb6cb5fcef1c249ab50028
7
+ data.tar.gz: 54216381db71f8840f8a1f2e0b480adef791be7404e076249df94e98d05dca6c61f88df1758afe056808f382622086230ef198c44d06ab4e2678ec42cd5c79a4
@@ -0,0 +1,102 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/config"
20
+
21
+ module Google
22
+ module Cloud
23
+ module CertificateManager
24
+ ##
25
+ # @example Loading just the REST part of this package, including all its services, and instantiating a REST client
26
+ #
27
+ # require "google/cloud/certificate_manager/v1/rest"
28
+ # client = ::Google::Cloud::CertificateManager::V1::CertificateManager::Rest::Client.new
29
+ #
30
+ module V1
31
+ ##
32
+ # @private
33
+ # Initialize the mixin bindings configuration
34
+ #
35
+ def self.configure
36
+ @configure ||= begin
37
+ namespace = ["Google", "Cloud", "CertificateManager"]
38
+ parent_config = while namespace.any?
39
+ parent_name = namespace.join "::"
40
+ parent_const = const_get parent_name
41
+ break parent_const.configure if parent_const.respond_to? :configure
42
+ namespace.pop
43
+ end
44
+
45
+ default_config = Configuration.new parent_config
46
+ default_config.bindings_override["google.cloud.location.Locations.GetLocation"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config.bindings_override["google.cloud.location.Locations.ListLocations"] = [
57
+
58
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
59
+ uri_method: :get,
60
+ uri_template: "/v1/{name}/locations",
61
+ matches: [
62
+ ["name", %r{^projects/[^/]+/?$}, false]
63
+ ],
64
+ body: nil
65
+ )
66
+ ]
67
+ default_config
68
+ end
69
+ yield @configure if block_given?
70
+ @configure
71
+ end
72
+
73
+ ##
74
+ # @private
75
+ # Configuration class for the google.cloud.certificatemanager.v1 package.
76
+ #
77
+ # This class contains common configuration for all services
78
+ # of the google.cloud.certificatemanager.v1 package.
79
+ #
80
+ # This configuration is for internal use of the client library classes,
81
+ # and it is not intended that the end-users will read or change it.
82
+ #
83
+ class Configuration
84
+ extend ::Gapic::Config
85
+
86
+ # @private
87
+ # Overrides for http bindings for the RPC of the mixins for this package.
88
+ # Services in this package should use these when creating clients for the mixin services.
89
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
90
+ config_attr :bindings_override, {}, ::Hash, nil
91
+
92
+ # @private
93
+ def initialize parent_config = nil
94
+ @parent_config = parent_config unless parent_config.nil?
95
+
96
+ yield self if block_given?
97
+ end
98
+ end
99
+ end
100
+ end
101
+ end
102
+ end
@@ -370,13 +370,11 @@ module Google
370
370
  # # Call the list_certificates method.
371
371
  # result = client.list_certificates request
372
372
  #
373
- # # The returned object is of type Gapic::PagedEnumerable. You can
374
- # # iterate over all elements by calling #each, and the enumerable
375
- # # will lazily make API calls to fetch subsequent pages. Other
376
- # # methods are also available for managing paging directly.
377
- # result.each do |response|
373
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
374
+ # # over elements, and API calls will be issued to fetch pages as needed.
375
+ # result.each do |item|
378
376
  # # Each element is of type ::Google::Cloud::CertificateManager::V1::Certificate.
379
- # p response
377
+ # p item
380
378
  # end
381
379
  #
382
380
  def list_certificates request, options = nil
@@ -553,14 +551,14 @@ module Google
553
551
  # # Call the create_certificate method.
554
552
  # result = client.create_certificate request
555
553
  #
556
- # # The returned object is of type Gapic::Operation. You can use this
557
- # # object to check the status of an operation, cancel it, or wait
558
- # # for results. Here is how to block until completion:
554
+ # # The returned object is of type Gapic::Operation. You can use it to
555
+ # # check the status of an operation, cancel it, or wait for results.
556
+ # # Here is how to wait for a response.
559
557
  # result.wait_until_done! timeout: 60
560
558
  # if result.response?
561
559
  # p result.response
562
560
  # else
563
- # puts "Error!"
561
+ # puts "No response received."
564
562
  # end
565
563
  #
566
564
  def create_certificate request, options = nil
@@ -650,14 +648,14 @@ module Google
650
648
  # # Call the update_certificate method.
651
649
  # result = client.update_certificate request
652
650
  #
653
- # # The returned object is of type Gapic::Operation. You can use this
654
- # # object to check the status of an operation, cancel it, or wait
655
- # # for results. Here is how to block until completion:
651
+ # # The returned object is of type Gapic::Operation. You can use it to
652
+ # # check the status of an operation, cancel it, or wait for results.
653
+ # # Here is how to wait for a response.
656
654
  # result.wait_until_done! timeout: 60
657
655
  # if result.response?
658
656
  # p result.response
659
657
  # else
660
- # puts "Error!"
658
+ # puts "No response received."
661
659
  # end
662
660
  #
663
661
  def update_certificate request, options = nil
@@ -744,14 +742,14 @@ module Google
744
742
  # # Call the delete_certificate method.
745
743
  # result = client.delete_certificate request
746
744
  #
747
- # # The returned object is of type Gapic::Operation. You can use this
748
- # # object to check the status of an operation, cancel it, or wait
749
- # # for results. Here is how to block until completion:
745
+ # # The returned object is of type Gapic::Operation. You can use it to
746
+ # # check the status of an operation, cancel it, or wait for results.
747
+ # # Here is how to wait for a response.
750
748
  # result.wait_until_done! timeout: 60
751
749
  # if result.response?
752
750
  # p result.response
753
751
  # else
754
- # puts "Error!"
752
+ # puts "No response received."
755
753
  # end
756
754
  #
757
755
  def delete_certificate request, options = nil
@@ -850,13 +848,11 @@ module Google
850
848
  # # Call the list_certificate_maps method.
851
849
  # result = client.list_certificate_maps request
852
850
  #
853
- # # The returned object is of type Gapic::PagedEnumerable. You can
854
- # # iterate over all elements by calling #each, and the enumerable
855
- # # will lazily make API calls to fetch subsequent pages. Other
856
- # # methods are also available for managing paging directly.
857
- # result.each do |response|
851
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
852
+ # # over elements, and API calls will be issued to fetch pages as needed.
853
+ # result.each do |item|
858
854
  # # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateMap.
859
- # p response
855
+ # p item
860
856
  # end
861
857
  #
862
858
  def list_certificate_maps request, options = nil
@@ -1033,14 +1029,14 @@ module Google
1033
1029
  # # Call the create_certificate_map method.
1034
1030
  # result = client.create_certificate_map request
1035
1031
  #
1036
- # # The returned object is of type Gapic::Operation. You can use this
1037
- # # object to check the status of an operation, cancel it, or wait
1038
- # # for results. Here is how to block until completion:
1032
+ # # The returned object is of type Gapic::Operation. You can use it to
1033
+ # # check the status of an operation, cancel it, or wait for results.
1034
+ # # Here is how to wait for a response.
1039
1035
  # result.wait_until_done! timeout: 60
1040
1036
  # if result.response?
1041
1037
  # p result.response
1042
1038
  # else
1043
- # puts "Error!"
1039
+ # puts "No response received."
1044
1040
  # end
1045
1041
  #
1046
1042
  def create_certificate_map request, options = nil
@@ -1130,14 +1126,14 @@ module Google
1130
1126
  # # Call the update_certificate_map method.
1131
1127
  # result = client.update_certificate_map request
1132
1128
  #
1133
- # # The returned object is of type Gapic::Operation. You can use this
1134
- # # object to check the status of an operation, cancel it, or wait
1135
- # # for results. Here is how to block until completion:
1129
+ # # The returned object is of type Gapic::Operation. You can use it to
1130
+ # # check the status of an operation, cancel it, or wait for results.
1131
+ # # Here is how to wait for a response.
1136
1132
  # result.wait_until_done! timeout: 60
1137
1133
  # if result.response?
1138
1134
  # p result.response
1139
1135
  # else
1140
- # puts "Error!"
1136
+ # puts "No response received."
1141
1137
  # end
1142
1138
  #
1143
1139
  def update_certificate_map request, options = nil
@@ -1226,14 +1222,14 @@ module Google
1226
1222
  # # Call the delete_certificate_map method.
1227
1223
  # result = client.delete_certificate_map request
1228
1224
  #
1229
- # # The returned object is of type Gapic::Operation. You can use this
1230
- # # object to check the status of an operation, cancel it, or wait
1231
- # # for results. Here is how to block until completion:
1225
+ # # The returned object is of type Gapic::Operation. You can use it to
1226
+ # # check the status of an operation, cancel it, or wait for results.
1227
+ # # Here is how to wait for a response.
1232
1228
  # result.wait_until_done! timeout: 60
1233
1229
  # if result.response?
1234
1230
  # p result.response
1235
1231
  # else
1236
- # puts "Error!"
1232
+ # puts "No response received."
1237
1233
  # end
1238
1234
  #
1239
1235
  def delete_certificate_map request, options = nil
@@ -1337,13 +1333,11 @@ module Google
1337
1333
  # # Call the list_certificate_map_entries method.
1338
1334
  # result = client.list_certificate_map_entries request
1339
1335
  #
1340
- # # The returned object is of type Gapic::PagedEnumerable. You can
1341
- # # iterate over all elements by calling #each, and the enumerable
1342
- # # will lazily make API calls to fetch subsequent pages. Other
1343
- # # methods are also available for managing paging directly.
1344
- # result.each do |response|
1336
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1337
+ # # over elements, and API calls will be issued to fetch pages as needed.
1338
+ # result.each do |item|
1345
1339
  # # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateMapEntry.
1346
- # p response
1340
+ # p item
1347
1341
  # end
1348
1342
  #
1349
1343
  def list_certificate_map_entries request, options = nil
@@ -1520,14 +1514,14 @@ module Google
1520
1514
  # # Call the create_certificate_map_entry method.
1521
1515
  # result = client.create_certificate_map_entry request
1522
1516
  #
1523
- # # The returned object is of type Gapic::Operation. You can use this
1524
- # # object to check the status of an operation, cancel it, or wait
1525
- # # for results. Here is how to block until completion:
1517
+ # # The returned object is of type Gapic::Operation. You can use it to
1518
+ # # check the status of an operation, cancel it, or wait for results.
1519
+ # # Here is how to wait for a response.
1526
1520
  # result.wait_until_done! timeout: 60
1527
1521
  # if result.response?
1528
1522
  # p result.response
1529
1523
  # else
1530
- # puts "Error!"
1524
+ # puts "No response received."
1531
1525
  # end
1532
1526
  #
1533
1527
  def create_certificate_map_entry request, options = nil
@@ -1617,14 +1611,14 @@ module Google
1617
1611
  # # Call the update_certificate_map_entry method.
1618
1612
  # result = client.update_certificate_map_entry request
1619
1613
  #
1620
- # # The returned object is of type Gapic::Operation. You can use this
1621
- # # object to check the status of an operation, cancel it, or wait
1622
- # # for results. Here is how to block until completion:
1614
+ # # The returned object is of type Gapic::Operation. You can use it to
1615
+ # # check the status of an operation, cancel it, or wait for results.
1616
+ # # Here is how to wait for a response.
1623
1617
  # result.wait_until_done! timeout: 60
1624
1618
  # if result.response?
1625
1619
  # p result.response
1626
1620
  # else
1627
- # puts "Error!"
1621
+ # puts "No response received."
1628
1622
  # end
1629
1623
  #
1630
1624
  def update_certificate_map_entry request, options = nil
@@ -1711,14 +1705,14 @@ module Google
1711
1705
  # # Call the delete_certificate_map_entry method.
1712
1706
  # result = client.delete_certificate_map_entry request
1713
1707
  #
1714
- # # The returned object is of type Gapic::Operation. You can use this
1715
- # # object to check the status of an operation, cancel it, or wait
1716
- # # for results. Here is how to block until completion:
1708
+ # # The returned object is of type Gapic::Operation. You can use it to
1709
+ # # check the status of an operation, cancel it, or wait for results.
1710
+ # # Here is how to wait for a response.
1717
1711
  # result.wait_until_done! timeout: 60
1718
1712
  # if result.response?
1719
1713
  # p result.response
1720
1714
  # else
1721
- # puts "Error!"
1715
+ # puts "No response received."
1722
1716
  # end
1723
1717
  #
1724
1718
  def delete_certificate_map_entry request, options = nil
@@ -1817,13 +1811,11 @@ module Google
1817
1811
  # # Call the list_dns_authorizations method.
1818
1812
  # result = client.list_dns_authorizations request
1819
1813
  #
1820
- # # The returned object is of type Gapic::PagedEnumerable. You can
1821
- # # iterate over all elements by calling #each, and the enumerable
1822
- # # will lazily make API calls to fetch subsequent pages. Other
1823
- # # methods are also available for managing paging directly.
1824
- # result.each do |response|
1814
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
1815
+ # # over elements, and API calls will be issued to fetch pages as needed.
1816
+ # result.each do |item|
1825
1817
  # # Each element is of type ::Google::Cloud::CertificateManager::V1::DnsAuthorization.
1826
- # p response
1818
+ # p item
1827
1819
  # end
1828
1820
  #
1829
1821
  def list_dns_authorizations request, options = nil
@@ -2000,14 +1992,14 @@ module Google
2000
1992
  # # Call the create_dns_authorization method.
2001
1993
  # result = client.create_dns_authorization request
2002
1994
  #
2003
- # # The returned object is of type Gapic::Operation. You can use this
2004
- # # object to check the status of an operation, cancel it, or wait
2005
- # # for results. Here is how to block until completion:
1995
+ # # The returned object is of type Gapic::Operation. You can use it to
1996
+ # # check the status of an operation, cancel it, or wait for results.
1997
+ # # Here is how to wait for a response.
2006
1998
  # result.wait_until_done! timeout: 60
2007
1999
  # if result.response?
2008
2000
  # p result.response
2009
2001
  # else
2010
- # puts "Error!"
2002
+ # puts "No response received."
2011
2003
  # end
2012
2004
  #
2013
2005
  def create_dns_authorization request, options = nil
@@ -2097,14 +2089,14 @@ module Google
2097
2089
  # # Call the update_dns_authorization method.
2098
2090
  # result = client.update_dns_authorization request
2099
2091
  #
2100
- # # The returned object is of type Gapic::Operation. You can use this
2101
- # # object to check the status of an operation, cancel it, or wait
2102
- # # for results. Here is how to block until completion:
2092
+ # # The returned object is of type Gapic::Operation. You can use it to
2093
+ # # check the status of an operation, cancel it, or wait for results.
2094
+ # # Here is how to wait for a response.
2103
2095
  # result.wait_until_done! timeout: 60
2104
2096
  # if result.response?
2105
2097
  # p result.response
2106
2098
  # else
2107
- # puts "Error!"
2099
+ # puts "No response received."
2108
2100
  # end
2109
2101
  #
2110
2102
  def update_dns_authorization request, options = nil
@@ -2191,14 +2183,14 @@ module Google
2191
2183
  # # Call the delete_dns_authorization method.
2192
2184
  # result = client.delete_dns_authorization request
2193
2185
  #
2194
- # # The returned object is of type Gapic::Operation. You can use this
2195
- # # object to check the status of an operation, cancel it, or wait
2196
- # # for results. Here is how to block until completion:
2186
+ # # The returned object is of type Gapic::Operation. You can use it to
2187
+ # # check the status of an operation, cancel it, or wait for results.
2188
+ # # Here is how to wait for a response.
2197
2189
  # result.wait_until_done! timeout: 60
2198
2190
  # if result.response?
2199
2191
  # p result.response
2200
2192
  # else
2201
- # puts "Error!"
2193
+ # puts "No response received."
2202
2194
  # end
2203
2195
  #
2204
2196
  def delete_dns_authorization request, options = nil
@@ -2298,13 +2290,11 @@ module Google
2298
2290
  # # Call the list_certificate_issuance_configs method.
2299
2291
  # result = client.list_certificate_issuance_configs request
2300
2292
  #
2301
- # # The returned object is of type Gapic::PagedEnumerable. You can
2302
- # # iterate over all elements by calling #each, and the enumerable
2303
- # # will lazily make API calls to fetch subsequent pages. Other
2304
- # # methods are also available for managing paging directly.
2305
- # result.each do |response|
2293
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
2294
+ # # over elements, and API calls will be issued to fetch pages as needed.
2295
+ # result.each do |item|
2306
2296
  # # Each element is of type ::Google::Cloud::CertificateManager::V1::CertificateIssuanceConfig.
2307
- # p response
2297
+ # p item
2308
2298
  # end
2309
2299
  #
2310
2300
  def list_certificate_issuance_configs request, options = nil
@@ -2481,14 +2471,14 @@ module Google
2481
2471
  # # Call the create_certificate_issuance_config method.
2482
2472
  # result = client.create_certificate_issuance_config request
2483
2473
  #
2484
- # # The returned object is of type Gapic::Operation. You can use this
2485
- # # object to check the status of an operation, cancel it, or wait
2486
- # # for results. Here is how to block until completion:
2474
+ # # The returned object is of type Gapic::Operation. You can use it to
2475
+ # # check the status of an operation, cancel it, or wait for results.
2476
+ # # Here is how to wait for a response.
2487
2477
  # result.wait_until_done! timeout: 60
2488
2478
  # if result.response?
2489
2479
  # p result.response
2490
2480
  # else
2491
- # puts "Error!"
2481
+ # puts "No response received."
2492
2482
  # end
2493
2483
  #
2494
2484
  def create_certificate_issuance_config request, options = nil
@@ -2575,14 +2565,14 @@ module Google
2575
2565
  # # Call the delete_certificate_issuance_config method.
2576
2566
  # result = client.delete_certificate_issuance_config request
2577
2567
  #
2578
- # # The returned object is of type Gapic::Operation. You can use this
2579
- # # object to check the status of an operation, cancel it, or wait
2580
- # # for results. Here is how to block until completion:
2568
+ # # The returned object is of type Gapic::Operation. You can use it to
2569
+ # # check the status of an operation, cancel it, or wait for results.
2570
+ # # Here is how to wait for a response.
2581
2571
  # result.wait_until_done! timeout: 60
2582
2572
  # if result.response?
2583
2573
  # p result.response
2584
2574
  # else
2585
- # puts "Error!"
2575
+ # puts "No response received."
2586
2576
  # end
2587
2577
  #
2588
2578
  def delete_certificate_issuance_config request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -253,14 +251,14 @@ module Google
253
251
  # # Call the get_operation method.
254
252
  # result = client.get_operation request
255
253
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
254
+ # # The returned object is of type Gapic::Operation. You can use it to
255
+ # # check the status of an operation, cancel it, or wait for results.
256
+ # # Here is how to wait for a response.
259
257
  # result.wait_until_done! timeout: 60
260
258
  # if result.response?
261
259
  # p result.response
262
260
  # else
263
- # puts "Error!"
261
+ # puts "No response received."
264
262
  # end
265
263
  #
266
264
  def get_operation request, options = nil
@@ -540,14 +538,14 @@ module Google
540
538
  # # Call the wait_operation method.
541
539
  # result = client.wait_operation request
542
540
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
541
+ # # The returned object is of type Gapic::Operation. You can use it to
542
+ # # check the status of an operation, cancel it, or wait for results.
543
+ # # Here is how to wait for a response.
546
544
  # result.wait_until_done! timeout: 60
547
545
  # if result.response?
548
546
  # p result.response
549
547
  # else
550
- # puts "Error!"
548
+ # puts "No response received."
551
549
  # end
552
550
  #
553
551
  def wait_operation request, options = nil