google-cloud-api_gateway-v1 0.1.3 → 0.2.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: 887e8d22b893feef8190c5226a8ccbc79f09ca86123682a0ea7259670915ba99
4
- data.tar.gz: cfb90c33149cc4c3a894289472774cab39b613f8336b60306bbef2ede8be5588
3
+ metadata.gz: cf08457a825f8d93a5b4acde15f311b7360aaa43ddf6d786594e8b91f4d02dc8
4
+ data.tar.gz: fdba547a70c8b9ece6f25295b135da295a5e1675736019f1ae5cbfed4077b8df
5
5
  SHA512:
6
- metadata.gz: 88888e3f2db1cf974b24b1808ceb27422113ad335a2c104d56fa0fc027609a2ff09f567669cc26db745095282f666cf72fd799b6d70fe8fa2fb32a317b760872
7
- data.tar.gz: d11fb914400f76e8cdf7abacec74c115198d36ee6a2b762052d7b0387246f4663a68bc6c93976c6d73970e93041bba9de8c7f365d2c33f3fe0163fa08fcf80fe
6
+ metadata.gz: 9bfbac1960092a80a8163d9f62ab9ad1a40ee6d729d87c801975edac85db77b235346129b760b41fdefdc3730f8c6db93772e3d0e102d2a119de469b4974c24c
7
+ data.tar.gz: 1d9395d20153f0c01e2b0d0e83e90402f2814d1421adfc8e164fa6fa0f6d9c409833a02507ffce157727a6adc9c055a7d4e394194b37f6d642aefa5a3225ee5a
data/.yardopts CHANGED
@@ -1,5 +1,5 @@
1
1
  --no-private
2
- --title=API Gateway V1 API
2
+ --title="API Gateway V1 API"
3
3
  --exclude _pb\.rb$
4
4
  --markup markdown
5
5
  --markup-provider redcarpet
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 Developers Console][dev-console].
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 slide-out navigation tray and select **API Manager**. From
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
- You should see a screen like one of the following.
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, and click "Generate
164
- new JSON key":
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::ApiGateway::V1::ListGatewaysRequest.new # (request fi
37
37
  response = client.list_gateways request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-api_gateway-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-api_gateway-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/api-gateway/)
@@ -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.5+.
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. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
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
 
@@ -180,6 +180,7 @@ module Google
180
180
 
181
181
  @operations_client = Operations.new do |config|
182
182
  config.credentials = credentials
183
+ config.quota_project = @quota_project_id
183
184
  config.endpoint = @config.endpoint
184
185
  end
185
186
 
@@ -239,6 +240,27 @@ module Google
239
240
  #
240
241
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
241
242
  #
243
+ # @example Basic example
244
+ # require "google/cloud/api_gateway/v1"
245
+ #
246
+ # # Create a client object. The client can be reused for multiple calls.
247
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
248
+ #
249
+ # # Create a request. To set request fields, pass in keyword arguments.
250
+ # request = Google::Cloud::ApiGateway::V1::ListGatewaysRequest.new
251
+ #
252
+ # # Call the list_gateways method.
253
+ # result = client.list_gateways request
254
+ #
255
+ # # The returned object is of type Gapic::PagedEnumerable. You can
256
+ # # iterate over all elements by calling #each, and the enumerable
257
+ # # will lazily make API calls to fetch subsequent pages. Other
258
+ # # methods are also available for managing paging directly.
259
+ # result.each do |response|
260
+ # # Each element is of type ::Google::Cloud::ApiGateway::V1::Gateway.
261
+ # p response
262
+ # end
263
+ #
242
264
  def list_gateways request, options = nil
243
265
  raise ::ArgumentError, "request must be provided" if request.nil?
244
266
 
@@ -256,9 +278,11 @@ module Google
256
278
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
257
279
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
258
280
 
259
- header_params = {
260
- "parent" => request.parent
261
- }
281
+ header_params = {}
282
+ if request.parent
283
+ header_params["parent"] = request.parent
284
+ end
285
+
262
286
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
263
287
  metadata[:"x-goog-request-params"] ||= request_params_header
264
288
 
@@ -309,6 +333,21 @@ module Google
309
333
  #
310
334
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
311
335
  #
336
+ # @example Basic example
337
+ # require "google/cloud/api_gateway/v1"
338
+ #
339
+ # # Create a client object. The client can be reused for multiple calls.
340
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
341
+ #
342
+ # # Create a request. To set request fields, pass in keyword arguments.
343
+ # request = Google::Cloud::ApiGateway::V1::GetGatewayRequest.new
344
+ #
345
+ # # Call the get_gateway method.
346
+ # result = client.get_gateway request
347
+ #
348
+ # # The returned object is of type Google::Cloud::ApiGateway::V1::Gateway.
349
+ # p result
350
+ #
312
351
  def get_gateway request, options = nil
313
352
  raise ::ArgumentError, "request must be provided" if request.nil?
314
353
 
@@ -326,9 +365,11 @@ module Google
326
365
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
327
366
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
328
367
 
329
- header_params = {
330
- "name" => request.name
331
- }
368
+ header_params = {}
369
+ if request.name
370
+ header_params["name"] = request.name
371
+ end
372
+
332
373
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
333
374
  metadata[:"x-goog-request-params"] ||= request_params_header
334
375
 
@@ -383,6 +424,28 @@ module Google
383
424
  #
384
425
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
385
426
  #
427
+ # @example Basic example
428
+ # require "google/cloud/api_gateway/v1"
429
+ #
430
+ # # Create a client object. The client can be reused for multiple calls.
431
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
432
+ #
433
+ # # Create a request. To set request fields, pass in keyword arguments.
434
+ # request = Google::Cloud::ApiGateway::V1::CreateGatewayRequest.new
435
+ #
436
+ # # Call the create_gateway method.
437
+ # result = client.create_gateway request
438
+ #
439
+ # # The returned object is of type Gapic::Operation. You can use this
440
+ # # object to check the status of an operation, cancel it, or wait
441
+ # # for results. Here is how to block until completion:
442
+ # result.wait_until_done! timeout: 60
443
+ # if result.response?
444
+ # p result.response
445
+ # else
446
+ # puts "Error!"
447
+ # end
448
+ #
386
449
  def create_gateway request, options = nil
387
450
  raise ::ArgumentError, "request must be provided" if request.nil?
388
451
 
@@ -400,9 +463,11 @@ module Google
400
463
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
401
464
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
402
465
 
403
- header_params = {
404
- "parent" => request.parent
405
- }
466
+ header_params = {}
467
+ if request.parent
468
+ header_params["parent"] = request.parent
469
+ end
470
+
406
471
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
407
472
  metadata[:"x-goog-request-params"] ||= request_params_header
408
473
 
@@ -458,6 +523,28 @@ module Google
458
523
  #
459
524
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
460
525
  #
526
+ # @example Basic example
527
+ # require "google/cloud/api_gateway/v1"
528
+ #
529
+ # # Create a client object. The client can be reused for multiple calls.
530
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
531
+ #
532
+ # # Create a request. To set request fields, pass in keyword arguments.
533
+ # request = Google::Cloud::ApiGateway::V1::UpdateGatewayRequest.new
534
+ #
535
+ # # Call the update_gateway method.
536
+ # result = client.update_gateway request
537
+ #
538
+ # # The returned object is of type Gapic::Operation. You can use this
539
+ # # object to check the status of an operation, cancel it, or wait
540
+ # # for results. Here is how to block until completion:
541
+ # result.wait_until_done! timeout: 60
542
+ # if result.response?
543
+ # p result.response
544
+ # else
545
+ # puts "Error!"
546
+ # end
547
+ #
461
548
  def update_gateway request, options = nil
462
549
  raise ::ArgumentError, "request must be provided" if request.nil?
463
550
 
@@ -475,9 +562,11 @@ module Google
475
562
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
476
563
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
564
 
478
- header_params = {
479
- "gateway.name" => request.gateway.name
480
- }
565
+ header_params = {}
566
+ if request.gateway&.name
567
+ header_params["gateway.name"] = request.gateway.name
568
+ end
569
+
481
570
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
482
571
  metadata[:"x-goog-request-params"] ||= request_params_header
483
572
 
@@ -528,6 +617,28 @@ module Google
528
617
  #
529
618
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
530
619
  #
620
+ # @example Basic example
621
+ # require "google/cloud/api_gateway/v1"
622
+ #
623
+ # # Create a client object. The client can be reused for multiple calls.
624
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
625
+ #
626
+ # # Create a request. To set request fields, pass in keyword arguments.
627
+ # request = Google::Cloud::ApiGateway::V1::DeleteGatewayRequest.new
628
+ #
629
+ # # Call the delete_gateway method.
630
+ # result = client.delete_gateway request
631
+ #
632
+ # # The returned object is of type Gapic::Operation. You can use this
633
+ # # object to check the status of an operation, cancel it, or wait
634
+ # # for results. Here is how to block until completion:
635
+ # result.wait_until_done! timeout: 60
636
+ # if result.response?
637
+ # p result.response
638
+ # else
639
+ # puts "Error!"
640
+ # end
641
+ #
531
642
  def delete_gateway request, options = nil
532
643
  raise ::ArgumentError, "request must be provided" if request.nil?
533
644
 
@@ -545,9 +656,11 @@ module Google
545
656
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
546
657
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
547
658
 
548
- header_params = {
549
- "name" => request.name
550
- }
659
+ header_params = {}
660
+ if request.name
661
+ header_params["name"] = request.name
662
+ end
663
+
551
664
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
552
665
  metadata[:"x-goog-request-params"] ||= request_params_header
553
666
 
@@ -606,6 +719,27 @@ module Google
606
719
  #
607
720
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
608
721
  #
722
+ # @example Basic example
723
+ # require "google/cloud/api_gateway/v1"
724
+ #
725
+ # # Create a client object. The client can be reused for multiple calls.
726
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
727
+ #
728
+ # # Create a request. To set request fields, pass in keyword arguments.
729
+ # request = Google::Cloud::ApiGateway::V1::ListApisRequest.new
730
+ #
731
+ # # Call the list_apis method.
732
+ # result = client.list_apis request
733
+ #
734
+ # # The returned object is of type Gapic::PagedEnumerable. You can
735
+ # # iterate over all elements by calling #each, and the enumerable
736
+ # # will lazily make API calls to fetch subsequent pages. Other
737
+ # # methods are also available for managing paging directly.
738
+ # result.each do |response|
739
+ # # Each element is of type ::Google::Cloud::ApiGateway::V1::Api.
740
+ # p response
741
+ # end
742
+ #
609
743
  def list_apis request, options = nil
610
744
  raise ::ArgumentError, "request must be provided" if request.nil?
611
745
 
@@ -623,9 +757,11 @@ module Google
623
757
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
624
758
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
625
759
 
626
- header_params = {
627
- "parent" => request.parent
628
- }
760
+ header_params = {}
761
+ if request.parent
762
+ header_params["parent"] = request.parent
763
+ end
764
+
629
765
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
630
766
  metadata[:"x-goog-request-params"] ||= request_params_header
631
767
 
@@ -676,6 +812,21 @@ module Google
676
812
  #
677
813
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
678
814
  #
815
+ # @example Basic example
816
+ # require "google/cloud/api_gateway/v1"
817
+ #
818
+ # # Create a client object. The client can be reused for multiple calls.
819
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
820
+ #
821
+ # # Create a request. To set request fields, pass in keyword arguments.
822
+ # request = Google::Cloud::ApiGateway::V1::GetApiRequest.new
823
+ #
824
+ # # Call the get_api method.
825
+ # result = client.get_api request
826
+ #
827
+ # # The returned object is of type Google::Cloud::ApiGateway::V1::Api.
828
+ # p result
829
+ #
679
830
  def get_api request, options = nil
680
831
  raise ::ArgumentError, "request must be provided" if request.nil?
681
832
 
@@ -693,9 +844,11 @@ module Google
693
844
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
694
845
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
695
846
 
696
- header_params = {
697
- "name" => request.name
698
- }
847
+ header_params = {}
848
+ if request.name
849
+ header_params["name"] = request.name
850
+ end
851
+
699
852
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
700
853
  metadata[:"x-goog-request-params"] ||= request_params_header
701
854
 
@@ -750,6 +903,28 @@ module Google
750
903
  #
751
904
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
752
905
  #
906
+ # @example Basic example
907
+ # require "google/cloud/api_gateway/v1"
908
+ #
909
+ # # Create a client object. The client can be reused for multiple calls.
910
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
911
+ #
912
+ # # Create a request. To set request fields, pass in keyword arguments.
913
+ # request = Google::Cloud::ApiGateway::V1::CreateApiRequest.new
914
+ #
915
+ # # Call the create_api method.
916
+ # result = client.create_api request
917
+ #
918
+ # # The returned object is of type Gapic::Operation. You can use this
919
+ # # object to check the status of an operation, cancel it, or wait
920
+ # # for results. Here is how to block until completion:
921
+ # result.wait_until_done! timeout: 60
922
+ # if result.response?
923
+ # p result.response
924
+ # else
925
+ # puts "Error!"
926
+ # end
927
+ #
753
928
  def create_api request, options = nil
754
929
  raise ::ArgumentError, "request must be provided" if request.nil?
755
930
 
@@ -767,9 +942,11 @@ module Google
767
942
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
768
943
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
769
944
 
770
- header_params = {
771
- "parent" => request.parent
772
- }
945
+ header_params = {}
946
+ if request.parent
947
+ header_params["parent"] = request.parent
948
+ end
949
+
773
950
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
774
951
  metadata[:"x-goog-request-params"] ||= request_params_header
775
952
 
@@ -825,6 +1002,28 @@ module Google
825
1002
  #
826
1003
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
827
1004
  #
1005
+ # @example Basic example
1006
+ # require "google/cloud/api_gateway/v1"
1007
+ #
1008
+ # # Create a client object. The client can be reused for multiple calls.
1009
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1010
+ #
1011
+ # # Create a request. To set request fields, pass in keyword arguments.
1012
+ # request = Google::Cloud::ApiGateway::V1::UpdateApiRequest.new
1013
+ #
1014
+ # # Call the update_api method.
1015
+ # result = client.update_api request
1016
+ #
1017
+ # # The returned object is of type Gapic::Operation. You can use this
1018
+ # # object to check the status of an operation, cancel it, or wait
1019
+ # # for results. Here is how to block until completion:
1020
+ # result.wait_until_done! timeout: 60
1021
+ # if result.response?
1022
+ # p result.response
1023
+ # else
1024
+ # puts "Error!"
1025
+ # end
1026
+ #
828
1027
  def update_api request, options = nil
829
1028
  raise ::ArgumentError, "request must be provided" if request.nil?
830
1029
 
@@ -842,9 +1041,11 @@ module Google
842
1041
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
843
1042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
844
1043
 
845
- header_params = {
846
- "api.name" => request.api.name
847
- }
1044
+ header_params = {}
1045
+ if request.api&.name
1046
+ header_params["api.name"] = request.api.name
1047
+ end
1048
+
848
1049
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
849
1050
  metadata[:"x-goog-request-params"] ||= request_params_header
850
1051
 
@@ -895,6 +1096,28 @@ module Google
895
1096
  #
896
1097
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
897
1098
  #
1099
+ # @example Basic example
1100
+ # require "google/cloud/api_gateway/v1"
1101
+ #
1102
+ # # Create a client object. The client can be reused for multiple calls.
1103
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1104
+ #
1105
+ # # Create a request. To set request fields, pass in keyword arguments.
1106
+ # request = Google::Cloud::ApiGateway::V1::DeleteApiRequest.new
1107
+ #
1108
+ # # Call the delete_api method.
1109
+ # result = client.delete_api request
1110
+ #
1111
+ # # The returned object is of type Gapic::Operation. You can use this
1112
+ # # object to check the status of an operation, cancel it, or wait
1113
+ # # for results. Here is how to block until completion:
1114
+ # result.wait_until_done! timeout: 60
1115
+ # if result.response?
1116
+ # p result.response
1117
+ # else
1118
+ # puts "Error!"
1119
+ # end
1120
+ #
898
1121
  def delete_api request, options = nil
899
1122
  raise ::ArgumentError, "request must be provided" if request.nil?
900
1123
 
@@ -912,9 +1135,11 @@ module Google
912
1135
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
913
1136
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
914
1137
 
915
- header_params = {
916
- "name" => request.name
917
- }
1138
+ header_params = {}
1139
+ if request.name
1140
+ header_params["name"] = request.name
1141
+ end
1142
+
918
1143
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
919
1144
  metadata[:"x-goog-request-params"] ||= request_params_header
920
1145
 
@@ -973,6 +1198,27 @@ module Google
973
1198
  #
974
1199
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
975
1200
  #
1201
+ # @example Basic example
1202
+ # require "google/cloud/api_gateway/v1"
1203
+ #
1204
+ # # Create a client object. The client can be reused for multiple calls.
1205
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1206
+ #
1207
+ # # Create a request. To set request fields, pass in keyword arguments.
1208
+ # request = Google::Cloud::ApiGateway::V1::ListApiConfigsRequest.new
1209
+ #
1210
+ # # Call the list_api_configs method.
1211
+ # result = client.list_api_configs request
1212
+ #
1213
+ # # The returned object is of type Gapic::PagedEnumerable. You can
1214
+ # # iterate over all elements by calling #each, and the enumerable
1215
+ # # will lazily make API calls to fetch subsequent pages. Other
1216
+ # # methods are also available for managing paging directly.
1217
+ # result.each do |response|
1218
+ # # Each element is of type ::Google::Cloud::ApiGateway::V1::ApiConfig.
1219
+ # p response
1220
+ # end
1221
+ #
976
1222
  def list_api_configs request, options = nil
977
1223
  raise ::ArgumentError, "request must be provided" if request.nil?
978
1224
 
@@ -990,9 +1236,11 @@ module Google
990
1236
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
991
1237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
992
1238
 
993
- header_params = {
994
- "parent" => request.parent
995
- }
1239
+ header_params = {}
1240
+ if request.parent
1241
+ header_params["parent"] = request.parent
1242
+ end
1243
+
996
1244
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
997
1245
  metadata[:"x-goog-request-params"] ||= request_params_header
998
1246
 
@@ -1046,6 +1294,21 @@ module Google
1046
1294
  #
1047
1295
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1048
1296
  #
1297
+ # @example Basic example
1298
+ # require "google/cloud/api_gateway/v1"
1299
+ #
1300
+ # # Create a client object. The client can be reused for multiple calls.
1301
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1302
+ #
1303
+ # # Create a request. To set request fields, pass in keyword arguments.
1304
+ # request = Google::Cloud::ApiGateway::V1::GetApiConfigRequest.new
1305
+ #
1306
+ # # Call the get_api_config method.
1307
+ # result = client.get_api_config request
1308
+ #
1309
+ # # The returned object is of type Google::Cloud::ApiGateway::V1::ApiConfig.
1310
+ # p result
1311
+ #
1049
1312
  def get_api_config request, options = nil
1050
1313
  raise ::ArgumentError, "request must be provided" if request.nil?
1051
1314
 
@@ -1063,9 +1326,11 @@ module Google
1063
1326
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
1064
1327
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1065
1328
 
1066
- header_params = {
1067
- "name" => request.name
1068
- }
1329
+ header_params = {}
1330
+ if request.name
1331
+ header_params["name"] = request.name
1332
+ end
1333
+
1069
1334
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1070
1335
  metadata[:"x-goog-request-params"] ||= request_params_header
1071
1336
 
@@ -1120,6 +1385,28 @@ module Google
1120
1385
  #
1121
1386
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1122
1387
  #
1388
+ # @example Basic example
1389
+ # require "google/cloud/api_gateway/v1"
1390
+ #
1391
+ # # Create a client object. The client can be reused for multiple calls.
1392
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1393
+ #
1394
+ # # Create a request. To set request fields, pass in keyword arguments.
1395
+ # request = Google::Cloud::ApiGateway::V1::CreateApiConfigRequest.new
1396
+ #
1397
+ # # Call the create_api_config method.
1398
+ # result = client.create_api_config request
1399
+ #
1400
+ # # The returned object is of type Gapic::Operation. You can use this
1401
+ # # object to check the status of an operation, cancel it, or wait
1402
+ # # for results. Here is how to block until completion:
1403
+ # result.wait_until_done! timeout: 60
1404
+ # if result.response?
1405
+ # p result.response
1406
+ # else
1407
+ # puts "Error!"
1408
+ # end
1409
+ #
1123
1410
  def create_api_config request, options = nil
1124
1411
  raise ::ArgumentError, "request must be provided" if request.nil?
1125
1412
 
@@ -1137,9 +1424,11 @@ module Google
1137
1424
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
1138
1425
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1139
1426
 
1140
- header_params = {
1141
- "parent" => request.parent
1142
- }
1427
+ header_params = {}
1428
+ if request.parent
1429
+ header_params["parent"] = request.parent
1430
+ end
1431
+
1143
1432
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1144
1433
  metadata[:"x-goog-request-params"] ||= request_params_header
1145
1434
 
@@ -1195,6 +1484,28 @@ module Google
1195
1484
  #
1196
1485
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1197
1486
  #
1487
+ # @example Basic example
1488
+ # require "google/cloud/api_gateway/v1"
1489
+ #
1490
+ # # Create a client object. The client can be reused for multiple calls.
1491
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1492
+ #
1493
+ # # Create a request. To set request fields, pass in keyword arguments.
1494
+ # request = Google::Cloud::ApiGateway::V1::UpdateApiConfigRequest.new
1495
+ #
1496
+ # # Call the update_api_config method.
1497
+ # result = client.update_api_config request
1498
+ #
1499
+ # # The returned object is of type Gapic::Operation. You can use this
1500
+ # # object to check the status of an operation, cancel it, or wait
1501
+ # # for results. Here is how to block until completion:
1502
+ # result.wait_until_done! timeout: 60
1503
+ # if result.response?
1504
+ # p result.response
1505
+ # else
1506
+ # puts "Error!"
1507
+ # end
1508
+ #
1198
1509
  def update_api_config request, options = nil
1199
1510
  raise ::ArgumentError, "request must be provided" if request.nil?
1200
1511
 
@@ -1212,9 +1523,11 @@ module Google
1212
1523
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
1213
1524
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1214
1525
 
1215
- header_params = {
1216
- "api_config.name" => request.api_config.name
1217
- }
1526
+ header_params = {}
1527
+ if request.api_config&.name
1528
+ header_params["api_config.name"] = request.api_config.name
1529
+ end
1530
+
1218
1531
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1219
1532
  metadata[:"x-goog-request-params"] ||= request_params_header
1220
1533
 
@@ -1265,6 +1578,28 @@ module Google
1265
1578
  #
1266
1579
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
1267
1580
  #
1581
+ # @example Basic example
1582
+ # require "google/cloud/api_gateway/v1"
1583
+ #
1584
+ # # Create a client object. The client can be reused for multiple calls.
1585
+ # client = Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
1586
+ #
1587
+ # # Create a request. To set request fields, pass in keyword arguments.
1588
+ # request = Google::Cloud::ApiGateway::V1::DeleteApiConfigRequest.new
1589
+ #
1590
+ # # Call the delete_api_config method.
1591
+ # result = client.delete_api_config request
1592
+ #
1593
+ # # The returned object is of type Gapic::Operation. You can use this
1594
+ # # object to check the status of an operation, cancel it, or wait
1595
+ # # for results. Here is how to block until completion:
1596
+ # result.wait_until_done! timeout: 60
1597
+ # if result.response?
1598
+ # p result.response
1599
+ # else
1600
+ # puts "Error!"
1601
+ # end
1602
+ #
1268
1603
  def delete_api_config request, options = nil
1269
1604
  raise ::ArgumentError, "request must be provided" if request.nil?
1270
1605
 
@@ -1282,9 +1617,11 @@ module Google
1282
1617
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
1283
1618
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1284
1619
 
1285
- header_params = {
1286
- "name" => request.name
1287
- }
1620
+ header_params = {}
1621
+ if request.name
1622
+ header_params["name"] = request.name
1623
+ end
1624
+
1288
1625
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1289
1626
  metadata[:"x-goog-request-params"] ||= request_params_header
1290
1627
 
@@ -95,6 +95,9 @@ module Google
95
95
  channel_args: @config.channel_args,
96
96
  interceptors: @config.interceptors
97
97
  )
98
+
99
+ # Used by an LRO wrapper for some methods of this service
100
+ @operations_client = self
98
101
  end
99
102
 
100
103
  # Service calls
@@ -143,6 +146,27 @@ module Google
143
146
  #
144
147
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
148
  #
149
+ # @example Basic example
150
+ # require "google/longrunning"
151
+ #
152
+ # # Create a client object. The client can be reused for multiple calls.
153
+ # client = Google::Longrunning::Operations::Client.new
154
+ #
155
+ # # Create a request. To set request fields, pass in keyword arguments.
156
+ # request = Google::Longrunning::ListOperationsRequest.new
157
+ #
158
+ # # Call the list_operations method.
159
+ # result = client.list_operations request
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|
166
+ # # Each element is of type ::Google::Longrunning::Operation.
167
+ # p response
168
+ # end
169
+ #
146
170
  def list_operations request, options = nil
147
171
  raise ::ArgumentError, "request must be provided" if request.nil?
148
172
 
@@ -160,9 +184,11 @@ module Google
160
184
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
161
185
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
186
 
163
- header_params = {
164
- "name" => request.name
165
- }
187
+ header_params = {}
188
+ if request.name
189
+ header_params["name"] = request.name
190
+ end
191
+
166
192
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
193
  metadata[:"x-goog-request-params"] ||= request_params_header
168
194
 
@@ -215,6 +241,28 @@ module Google
215
241
  #
216
242
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
243
  #
244
+ # @example Basic example
245
+ # require "google/longrunning"
246
+ #
247
+ # # Create a client object. The client can be reused for multiple calls.
248
+ # client = Google::Longrunning::Operations::Client.new
249
+ #
250
+ # # Create a request. To set request fields, pass in keyword arguments.
251
+ # request = Google::Longrunning::GetOperationRequest.new
252
+ #
253
+ # # Call the get_operation method.
254
+ # result = client.get_operation request
255
+ #
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:
259
+ # result.wait_until_done! timeout: 60
260
+ # if result.response?
261
+ # p result.response
262
+ # else
263
+ # puts "Error!"
264
+ # end
265
+ #
218
266
  def get_operation request, options = nil
219
267
  raise ::ArgumentError, "request must be provided" if request.nil?
220
268
 
@@ -232,9 +280,11 @@ module Google
232
280
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
233
281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
282
 
235
- header_params = {
236
- "name" => request.name
237
- }
283
+ header_params = {}
284
+ if request.name
285
+ header_params["name"] = request.name
286
+ end
287
+
238
288
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
289
  metadata[:"x-goog-request-params"] ||= request_params_header
240
290
 
@@ -287,6 +337,21 @@ module Google
287
337
  #
288
338
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
339
  #
340
+ # @example Basic example
341
+ # require "google/longrunning"
342
+ #
343
+ # # Create a client object. The client can be reused for multiple calls.
344
+ # client = Google::Longrunning::Operations::Client.new
345
+ #
346
+ # # Create a request. To set request fields, pass in keyword arguments.
347
+ # request = Google::Longrunning::DeleteOperationRequest.new
348
+ #
349
+ # # Call the delete_operation method.
350
+ # result = client.delete_operation request
351
+ #
352
+ # # The returned object is of type Google::Protobuf::Empty.
353
+ # p result
354
+ #
290
355
  def delete_operation request, options = nil
291
356
  raise ::ArgumentError, "request must be provided" if request.nil?
292
357
 
@@ -304,9 +369,11 @@ module Google
304
369
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
305
370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
371
 
307
- header_params = {
308
- "name" => request.name
309
- }
372
+ header_params = {}
373
+ if request.name
374
+ header_params["name"] = request.name
375
+ end
376
+
310
377
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
378
  metadata[:"x-goog-request-params"] ||= request_params_header
312
379
 
@@ -364,6 +431,21 @@ module Google
364
431
  #
365
432
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
433
  #
434
+ # @example Basic example
435
+ # require "google/longrunning"
436
+ #
437
+ # # Create a client object. The client can be reused for multiple calls.
438
+ # client = Google::Longrunning::Operations::Client.new
439
+ #
440
+ # # Create a request. To set request fields, pass in keyword arguments.
441
+ # request = Google::Longrunning::CancelOperationRequest.new
442
+ #
443
+ # # Call the cancel_operation method.
444
+ # result = client.cancel_operation request
445
+ #
446
+ # # The returned object is of type Google::Protobuf::Empty.
447
+ # p result
448
+ #
367
449
  def cancel_operation request, options = nil
368
450
  raise ::ArgumentError, "request must be provided" if request.nil?
369
451
 
@@ -381,9 +463,11 @@ module Google
381
463
  gapic_version: ::Google::Cloud::ApiGateway::V1::VERSION
382
464
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
465
 
384
- header_params = {
385
- "name" => request.name
386
- }
466
+ header_params = {}
467
+ if request.name
468
+ header_params["name"] = request.name
469
+ end
470
+
387
471
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
472
  metadata[:"x-goog-request-params"] ||= request_params_header
389
473
 
@@ -444,6 +528,28 @@ module Google
444
528
  #
445
529
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
530
  #
531
+ # @example Basic example
532
+ # require "google/longrunning"
533
+ #
534
+ # # Create a client object. The client can be reused for multiple calls.
535
+ # client = Google::Longrunning::Operations::Client.new
536
+ #
537
+ # # Create a request. To set request fields, pass in keyword arguments.
538
+ # request = Google::Longrunning::WaitOperationRequest.new
539
+ #
540
+ # # Call the wait_operation method.
541
+ # result = client.wait_operation request
542
+ #
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:
546
+ # result.wait_until_done! timeout: 60
547
+ # if result.response?
548
+ # p result.response
549
+ # else
550
+ # puts "Error!"
551
+ # end
552
+ #
447
553
  def wait_operation request, options = nil
448
554
  raise ::ArgumentError, "request must be provided" if request.nil?
449
555
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ApiGateway
23
23
  module V1
24
- VERSION = "0.1.3"
24
+ VERSION = "0.2.0"
25
25
  end
26
26
  end
27
27
  end
@@ -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/api_gateway/v1"
29
31
  # client = ::Google::Cloud::ApiGateway::V1::ApiGatewayService::Client.new
30
32
  #
@@ -8,6 +8,7 @@ require 'google/api/resource_pb'
8
8
  require 'google/protobuf/field_mask_pb'
9
9
  require 'google/protobuf/timestamp_pb'
10
10
  require 'google/api/annotations_pb'
11
+
11
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
13
  add_file("google/cloud/apigateway/v1/apigateway.proto", :syntax => :proto3) do
13
14
  add_message "google.cloud.apigateway.v1.Api" do
@@ -7,6 +7,7 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/cloud/apigateway/v1/apigateway_pb'
9
9
  require 'google/longrunning/operations_pb'
10
+
10
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
11
12
  add_file("google/cloud/apigateway/v1/apigateway_service.proto", :syntax => :proto3) do
12
13
  end
@@ -27,7 +27,7 @@ module Google
27
27
  # The API Gateway Service is the interface for managing API Gateways.
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
@@ -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
- # name_descriptor: {
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
- # name_descriptor:
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
- # name_descriptor: {
62
- # pattern: "projects/{project}/logs/{log}"
63
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
64
- # parent_name_extractor: "projects/{project}"
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
- # name_descriptor:
89
- # - pattern: "projects/{project}/logs/{log}"
90
- # parent_type: "cloudresourcemanager.googleapis.com/Project"
91
- # parent_name_extractor: "projects/{project}"
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
@@ -44,7 +44,7 @@ module Google
44
44
  # foo = any.unpack(Foo.class);
45
45
  # }
46
46
  #
47
- # Example 3: Pack and unpack a message in Python.
47
+ # Example 3: Pack and unpack a message in Python.
48
48
  #
49
49
  # foo = Foo(...)
50
50
  # any = Any()
@@ -54,7 +54,7 @@ module Google
54
54
  # any.Unpack(foo)
55
55
  # ...
56
56
  #
57
- # Example 4: Pack and unpack a message in Go
57
+ # Example 4: Pack and unpack a message in Go
58
58
  #
59
59
  # foo := &pb.Foo{...}
60
60
  # any, err := anypb.New(foo)
@@ -75,7 +75,7 @@ module Google
75
75
  #
76
76
  #
77
77
  # JSON
78
- # ====
78
+ #
79
79
  # The JSON representation of an `Any` value uses the regular
80
80
  # representation of the deserialized, embedded message, with an
81
81
  # additional field `@type` which contains the type URL. Example:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-api_gateway-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
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: 2021-08-11 00:00:00.000000000 Z
11
+ date: 2022-07-01 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.7'
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.7'
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.25.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.25.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.14'
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.14'
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: '12.0'
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: '12.0'
116
+ version: '13.0'
117
117
  - !ruby/object:Gem::Dependency
118
118
  name: redcarpet
119
119
  requirement: !ruby/object:Gem::Requirement
@@ -207,14 +207,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
207
207
  requirements:
208
208
  - - ">="
209
209
  - !ruby/object:Gem::Version
210
- version: '2.5'
210
+ version: '2.6'
211
211
  required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  requirements: []
217
- rubygems_version: 3.2.17
217
+ rubygems_version: 3.3.14
218
218
  signing_key:
219
219
  specification_version: 4
220
220
  summary: API Client library for the API Gateway V1 API