google-cloud-app_engine-v1 0.10.0 → 1.0.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.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/app_engine/v1/applications/client.rb +11 -4
  3. data/lib/google/cloud/app_engine/v1/applications/operations.rb +13 -5
  4. data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +11 -4
  5. data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +11 -4
  6. data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +13 -5
  7. data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +13 -5
  8. data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +5 -1
  9. data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +5 -1
  10. data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +13 -5
  11. data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +13 -5
  12. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +13 -5
  13. data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +11 -4
  14. data/lib/google/cloud/app_engine/v1/firewall/client.rb +15 -6
  15. data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +15 -6
  16. data/lib/google/cloud/app_engine/v1/instances/client.rb +11 -4
  17. data/lib/google/cloud/app_engine/v1/instances/operations.rb +13 -5
  18. data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +11 -4
  19. data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +11 -4
  20. data/lib/google/cloud/app_engine/v1/services/client.rb +11 -4
  21. data/lib/google/cloud/app_engine/v1/services/operations.rb +13 -5
  22. data/lib/google/cloud/app_engine/v1/services/rest/client.rb +11 -4
  23. data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +11 -4
  24. data/lib/google/cloud/app_engine/v1/version.rb +1 -1
  25. data/lib/google/cloud/app_engine/v1/versions/client.rb +13 -5
  26. data/lib/google/cloud/app_engine/v1/versions/operations.rb +13 -5
  27. data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +13 -5
  28. data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +11 -4
  29. data/proto_docs/google/api/client.rb +4 -0
  30. metadata +2 -2
@@ -30,6 +30,9 @@ module Google
30
30
  # Manages services of an application.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
35
38
 
@@ -235,10 +238,11 @@ module Google
235
238
  # Customize the options with defaults
236
239
  metadata = @config.rpcs.list_services.metadata.to_h
237
240
 
238
- # Set x-goog-api-client and x-goog-user-project headers
241
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
239
242
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
240
243
  lib_name: @config.lib_name, lib_version: @config.lib_version,
241
244
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
245
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
242
246
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
243
247
 
244
248
  header_params = {}
@@ -321,10 +325,11 @@ module Google
321
325
  # Customize the options with defaults
322
326
  metadata = @config.rpcs.get_service.metadata.to_h
323
327
 
324
- # Set x-goog-api-client and x-goog-user-project headers
328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
325
329
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
326
330
  lib_name: @config.lib_name, lib_version: @config.lib_version,
327
331
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
332
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
328
333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
329
334
 
330
335
  header_params = {}
@@ -431,10 +436,11 @@ module Google
431
436
  # Customize the options with defaults
432
437
  metadata = @config.rpcs.update_service.metadata.to_h
433
438
 
434
- # Set x-goog-api-client and x-goog-user-project headers
439
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
435
440
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
436
441
  lib_name: @config.lib_name, lib_version: @config.lib_version,
437
442
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
443
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
438
444
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
439
445
 
440
446
  header_params = {}
@@ -524,10 +530,11 @@ module Google
524
530
  # Customize the options with defaults
525
531
  metadata = @config.rpcs.delete_service.metadata.to_h
526
532
 
527
- # Set x-goog-api-client and x-goog-user-project headers
533
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
528
534
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
529
535
  lib_name: @config.lib_name, lib_version: @config.lib_version,
530
536
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
537
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
531
538
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
532
539
 
533
540
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Services
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Manages services of an application.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
37
40
 
@@ -227,12 +230,13 @@ module Google
227
230
  # Customize the options with defaults
228
231
  call_metadata = @config.rpcs.list_services.metadata.to_h
229
232
 
230
- # Set x-goog-api-client and x-goog-user-project headers
233
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
231
234
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
232
235
  lib_name: @config.lib_name, lib_version: @config.lib_version,
233
236
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
234
237
  transports_version_send: [:rest]
235
238
 
239
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
236
240
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
237
241
 
238
242
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
@@ -306,12 +310,13 @@ module Google
306
310
  # Customize the options with defaults
307
311
  call_metadata = @config.rpcs.get_service.metadata.to_h
308
312
 
309
- # Set x-goog-api-client and x-goog-user-project headers
313
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
310
314
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
311
315
  lib_name: @config.lib_name, lib_version: @config.lib_version,
312
316
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
313
317
  transports_version_send: [:rest]
314
318
 
319
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
315
320
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
316
321
 
317
322
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
@@ -409,12 +414,13 @@ module Google
409
414
  # Customize the options with defaults
410
415
  call_metadata = @config.rpcs.update_service.metadata.to_h
411
416
 
412
- # Set x-goog-api-client and x-goog-user-project headers
417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
413
418
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
419
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
420
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
416
421
  transports_version_send: [:rest]
417
422
 
423
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
418
424
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
419
425
 
420
426
  options.apply_defaults timeout: @config.rpcs.update_service.timeout,
@@ -495,12 +501,13 @@ module Google
495
501
  # Customize the options with defaults
496
502
  call_metadata = @config.rpcs.delete_service.metadata.to_h
497
503
 
498
- # Set x-goog-api-client and x-goog-user-project headers
504
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
499
505
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
500
506
  lib_name: @config.lib_name, lib_version: @config.lib_version,
501
507
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
502
508
  transports_version_send: [:rest]
503
509
 
510
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
504
511
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
505
512
 
506
513
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AppEngine
23
23
  module V1
24
- VERSION = "0.10.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -30,6 +30,9 @@ module Google
30
30
  # Manages versions of a service.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
35
38
 
@@ -238,10 +241,11 @@ module Google
238
241
  # Customize the options with defaults
239
242
  metadata = @config.rpcs.list_versions.metadata.to_h
240
243
 
241
- # Set x-goog-api-client and x-goog-user-project headers
244
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
242
245
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
243
246
  lib_name: @config.lib_name, lib_version: @config.lib_version,
244
247
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
248
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
245
249
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
246
250
 
247
251
  header_params = {}
@@ -329,10 +333,11 @@ module Google
329
333
  # Customize the options with defaults
330
334
  metadata = @config.rpcs.get_version.metadata.to_h
331
335
 
332
- # Set x-goog-api-client and x-goog-user-project headers
336
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
333
337
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
334
338
  lib_name: @config.lib_name, lib_version: @config.lib_version,
335
339
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
340
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
336
341
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
337
342
 
338
343
  header_params = {}
@@ -424,10 +429,11 @@ module Google
424
429
  # Customize the options with defaults
425
430
  metadata = @config.rpcs.create_version.metadata.to_h
426
431
 
427
- # Set x-goog-api-client and x-goog-user-project headers
432
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
428
433
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
429
434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
430
435
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
436
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
431
437
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
432
438
 
433
439
  header_params = {}
@@ -558,10 +564,11 @@ module Google
558
564
  # Customize the options with defaults
559
565
  metadata = @config.rpcs.update_version.metadata.to_h
560
566
 
561
- # Set x-goog-api-client and x-goog-user-project headers
567
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
562
568
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
563
569
  lib_name: @config.lib_name, lib_version: @config.lib_version,
564
570
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
571
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
565
572
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
566
573
 
567
574
  header_params = {}
@@ -652,10 +659,11 @@ module Google
652
659
  # Customize the options with defaults
653
660
  metadata = @config.rpcs.delete_version.metadata.to_h
654
661
 
655
- # Set x-goog-api-client and x-goog-user-project headers
662
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
656
663
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
657
664
  lib_name: @config.lib_name, lib_version: @config.lib_version,
658
665
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
666
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
659
667
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
660
668
 
661
669
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Versions
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Manages versions of a service.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
37
40
 
@@ -230,12 +233,13 @@ module Google
230
233
  # Customize the options with defaults
231
234
  call_metadata = @config.rpcs.list_versions.metadata.to_h
232
235
 
233
- # Set x-goog-api-client and x-goog-user-project headers
236
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
234
237
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
235
238
  lib_name: @config.lib_name, lib_version: @config.lib_version,
236
239
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
237
240
  transports_version_send: [:rest]
238
241
 
242
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
239
243
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
240
244
 
241
245
  options.apply_defaults timeout: @config.rpcs.list_versions.timeout,
@@ -314,12 +318,13 @@ module Google
314
318
  # Customize the options with defaults
315
319
  call_metadata = @config.rpcs.get_version.metadata.to_h
316
320
 
317
- # Set x-goog-api-client and x-goog-user-project headers
321
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
318
322
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
319
323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
320
324
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
321
325
  transports_version_send: [:rest]
322
326
 
327
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
323
328
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
324
329
 
325
330
  options.apply_defaults timeout: @config.rpcs.get_version.timeout,
@@ -402,12 +407,13 @@ module Google
402
407
  # Customize the options with defaults
403
408
  call_metadata = @config.rpcs.create_version.metadata.to_h
404
409
 
405
- # Set x-goog-api-client and x-goog-user-project headers
410
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
406
411
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
407
412
  lib_name: @config.lib_name, lib_version: @config.lib_version,
408
413
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
409
414
  transports_version_send: [:rest]
410
415
 
416
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
411
417
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
412
418
 
413
419
  options.apply_defaults timeout: @config.rpcs.create_version.timeout,
@@ -529,12 +535,13 @@ module Google
529
535
  # Customize the options with defaults
530
536
  call_metadata = @config.rpcs.update_version.metadata.to_h
531
537
 
532
- # Set x-goog-api-client and x-goog-user-project headers
538
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
533
539
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
534
540
  lib_name: @config.lib_name, lib_version: @config.lib_version,
535
541
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
536
542
  transports_version_send: [:rest]
537
543
 
544
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
538
545
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
539
546
 
540
547
  options.apply_defaults timeout: @config.rpcs.update_version.timeout,
@@ -616,12 +623,13 @@ module Google
616
623
  # Customize the options with defaults
617
624
  call_metadata = @config.rpcs.delete_version.metadata.to_h
618
625
 
619
- # Set x-goog-api-client and x-goog-user-project headers
626
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
620
627
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
621
628
  lib_name: @config.lib_name, lib_version: @config.lib_version,
622
629
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
623
630
  transports_version_send: [:rest]
624
631
 
632
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
625
633
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
626
634
 
627
635
  options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "appengine.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::AppEngine::V1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-app_engine-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 1.0.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common