google-cloud-network_security-v1beta1 0.8.0 → 0.8.1

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: '0496174d9074492e39a68c2100422c941f907ec9401872314b3dc2cd182f0c04'
4
- data.tar.gz: a6fe28b28a6b9449743e88eb5b6d044404f344adc9ddaa730d03129a3142eb62
3
+ metadata.gz: 97ba4eb83c0b14ef0d25bf5d3383c6db7c427464274e74c39a56766b5ee050af
4
+ data.tar.gz: edfdff4e1fdb100913eb8939222841e78f6df4b89ae392e47287fdde8d5b9a7c
5
5
  SHA512:
6
- metadata.gz: 8843d7e9b7f1c469c7f987da581e6b6e4b415cce0ff1c50c54581f0ec73f57e72cbcbae71c49700f6f7b55d77dea3b3d884ba537ba517cd12bd405c0d7dacefe
7
- data.tar.gz: 5c3635449eb9d3c855e8d860bf3eb2264fdb35840676a72902d180ffae45e1d825875f1f628b7b9ba019f64a02b067d4e44f82082ac3b44b39cb223c0c2598d2
6
+ metadata.gz: 565de9c25457c9b0ee26e0ecaf75ccb7c480abe5bc2c48c9a62e1861cbc781e2c4df63b513d0a61161a94c088eac39e75cf58413325650273e77ab1eb40da701
7
+ data.tar.gz: dfb151621ce4e1c79b795589c2dbbb506de282a8352d6bd936de85bd15b14742be0ec23bb4b7bb5c0e5ccb0d7a319511bd80459282d5b7926128b108f23eed88
@@ -34,6 +34,9 @@ module Google
34
34
  # information.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "networksecurity.$UNIVERSE_DOMAIN$"
39
42
 
@@ -276,10 +279,11 @@ module Google
276
279
  # Customize the options with defaults
277
280
  metadata = @config.rpcs.list_authorization_policies.metadata.to_h
278
281
 
279
- # Set x-goog-api-client and x-goog-user-project headers
282
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
280
283
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
281
284
  lib_name: @config.lib_name, lib_version: @config.lib_version,
282
285
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
286
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
283
287
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
284
288
 
285
289
  header_params = {}
@@ -363,10 +367,11 @@ module Google
363
367
  # Customize the options with defaults
364
368
  metadata = @config.rpcs.get_authorization_policy.metadata.to_h
365
369
 
366
- # Set x-goog-api-client and x-goog-user-project headers
370
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
367
371
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
368
372
  lib_name: @config.lib_name, lib_version: @config.lib_version,
369
373
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
374
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
370
375
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
371
376
 
372
377
  header_params = {}
@@ -463,10 +468,11 @@ module Google
463
468
  # Customize the options with defaults
464
469
  metadata = @config.rpcs.create_authorization_policy.metadata.to_h
465
470
 
466
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
467
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
468
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
469
474
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
470
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
471
477
 
472
478
  header_params = {}
@@ -562,10 +568,11 @@ module Google
562
568
  # Customize the options with defaults
563
569
  metadata = @config.rpcs.update_authorization_policy.metadata.to_h
564
570
 
565
- # Set x-goog-api-client and x-goog-user-project headers
571
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
566
572
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
567
573
  lib_name: @config.lib_name, lib_version: @config.lib_version,
568
574
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
575
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
569
576
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
570
577
 
571
578
  header_params = {}
@@ -656,10 +663,11 @@ module Google
656
663
  # Customize the options with defaults
657
664
  metadata = @config.rpcs.delete_authorization_policy.metadata.to_h
658
665
 
659
- # Set x-goog-api-client and x-goog-user-project headers
666
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
660
667
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
661
668
  lib_name: @config.lib_name, lib_version: @config.lib_version,
662
669
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
670
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
671
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
672
 
665
673
  header_params = {}
@@ -754,10 +762,11 @@ module Google
754
762
  # Customize the options with defaults
755
763
  metadata = @config.rpcs.list_server_tls_policies.metadata.to_h
756
764
 
757
- # Set x-goog-api-client and x-goog-user-project headers
765
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
758
766
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
759
767
  lib_name: @config.lib_name, lib_version: @config.lib_version,
760
768
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
769
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
761
770
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
762
771
 
763
772
  header_params = {}
@@ -841,10 +850,11 @@ module Google
841
850
  # Customize the options with defaults
842
851
  metadata = @config.rpcs.get_server_tls_policy.metadata.to_h
843
852
 
844
- # Set x-goog-api-client and x-goog-user-project headers
853
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
845
854
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
846
855
  lib_name: @config.lib_name, lib_version: @config.lib_version,
847
856
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
857
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
848
858
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
849
859
 
850
860
  header_params = {}
@@ -941,10 +951,11 @@ module Google
941
951
  # Customize the options with defaults
942
952
  metadata = @config.rpcs.create_server_tls_policy.metadata.to_h
943
953
 
944
- # Set x-goog-api-client and x-goog-user-project headers
954
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
945
955
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
946
956
  lib_name: @config.lib_name, lib_version: @config.lib_version,
947
957
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
958
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
948
959
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
949
960
 
950
961
  header_params = {}
@@ -1041,10 +1052,11 @@ module Google
1041
1052
  # Customize the options with defaults
1042
1053
  metadata = @config.rpcs.update_server_tls_policy.metadata.to_h
1043
1054
 
1044
- # Set x-goog-api-client and x-goog-user-project headers
1055
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1045
1056
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1046
1057
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1047
1058
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1059
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1048
1060
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1049
1061
 
1050
1062
  header_params = {}
@@ -1135,10 +1147,11 @@ module Google
1135
1147
  # Customize the options with defaults
1136
1148
  metadata = @config.rpcs.delete_server_tls_policy.metadata.to_h
1137
1149
 
1138
- # Set x-goog-api-client and x-goog-user-project headers
1150
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1139
1151
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1140
1152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1141
1153
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1154
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1142
1155
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1143
1156
 
1144
1157
  header_params = {}
@@ -1233,10 +1246,11 @@ module Google
1233
1246
  # Customize the options with defaults
1234
1247
  metadata = @config.rpcs.list_client_tls_policies.metadata.to_h
1235
1248
 
1236
- # Set x-goog-api-client and x-goog-user-project headers
1249
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1237
1250
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1238
1251
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1239
1252
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1253
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1240
1254
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1241
1255
 
1242
1256
  header_params = {}
@@ -1320,10 +1334,11 @@ module Google
1320
1334
  # Customize the options with defaults
1321
1335
  metadata = @config.rpcs.get_client_tls_policy.metadata.to_h
1322
1336
 
1323
- # Set x-goog-api-client and x-goog-user-project headers
1337
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1324
1338
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1325
1339
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1326
1340
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1341
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1327
1342
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1328
1343
 
1329
1344
  header_params = {}
@@ -1420,10 +1435,11 @@ module Google
1420
1435
  # Customize the options with defaults
1421
1436
  metadata = @config.rpcs.create_client_tls_policy.metadata.to_h
1422
1437
 
1423
- # Set x-goog-api-client and x-goog-user-project headers
1438
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1424
1439
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1425
1440
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1426
1441
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1442
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1427
1443
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1428
1444
 
1429
1445
  header_params = {}
@@ -1520,10 +1536,11 @@ module Google
1520
1536
  # Customize the options with defaults
1521
1537
  metadata = @config.rpcs.update_client_tls_policy.metadata.to_h
1522
1538
 
1523
- # Set x-goog-api-client and x-goog-user-project headers
1539
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1524
1540
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1525
1541
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1526
1542
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1543
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1527
1544
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1528
1545
 
1529
1546
  header_params = {}
@@ -1614,10 +1631,11 @@ module Google
1614
1631
  # Customize the options with defaults
1615
1632
  metadata = @config.rpcs.delete_client_tls_policy.metadata.to_h
1616
1633
 
1617
- # Set x-goog-api-client and x-goog-user-project headers
1634
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1618
1635
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1619
1636
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1620
1637
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION
1638
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1621
1639
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1622
1640
 
1623
1641
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module NetworkSecurity
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 = "networksecurity.$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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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,
@@ -36,6 +36,9 @@ module Google
36
36
  # information.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "networksecurity.$UNIVERSE_DOMAIN$"
41
44
 
@@ -270,12 +273,13 @@ module Google
270
273
  # Customize the options with defaults
271
274
  call_metadata = @config.rpcs.list_authorization_policies.metadata.to_h
272
275
 
273
- # 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
274
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
279
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
277
280
  transports_version_send: [:rest]
278
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
279
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
284
 
281
285
  options.apply_defaults timeout: @config.rpcs.list_authorization_policies.timeout,
@@ -350,12 +354,13 @@ module Google
350
354
  # Customize the options with defaults
351
355
  call_metadata = @config.rpcs.get_authorization_policy.metadata.to_h
352
356
 
353
- # Set x-goog-api-client and x-goog-user-project headers
357
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
354
358
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
355
359
  lib_name: @config.lib_name, lib_version: @config.lib_version,
356
360
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
357
361
  transports_version_send: [:rest]
358
362
 
363
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
364
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
365
 
361
366
  options.apply_defaults timeout: @config.rpcs.get_authorization_policy.timeout,
@@ -443,12 +448,13 @@ module Google
443
448
  # Customize the options with defaults
444
449
  call_metadata = @config.rpcs.create_authorization_policy.metadata.to_h
445
450
 
446
- # Set x-goog-api-client and x-goog-user-project headers
451
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
447
452
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
448
453
  lib_name: @config.lib_name, lib_version: @config.lib_version,
449
454
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
450
455
  transports_version_send: [:rest]
451
456
 
457
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
452
458
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
453
459
 
454
460
  options.apply_defaults timeout: @config.rpcs.create_authorization_policy.timeout,
@@ -535,12 +541,13 @@ module Google
535
541
  # Customize the options with defaults
536
542
  call_metadata = @config.rpcs.update_authorization_policy.metadata.to_h
537
543
 
538
- # Set x-goog-api-client and x-goog-user-project headers
544
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
539
545
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
546
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
547
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
542
548
  transports_version_send: [:rest]
543
549
 
550
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
551
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
552
 
546
553
  options.apply_defaults timeout: @config.rpcs.update_authorization_policy.timeout,
@@ -622,12 +629,13 @@ module Google
622
629
  # Customize the options with defaults
623
630
  call_metadata = @config.rpcs.delete_authorization_policy.metadata.to_h
624
631
 
625
- # Set x-goog-api-client and x-goog-user-project headers
632
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
633
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
634
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
635
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
629
636
  transports_version_send: [:rest]
630
637
 
638
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
631
639
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
632
640
 
633
641
  options.apply_defaults timeout: @config.rpcs.delete_authorization_policy.timeout,
@@ -713,12 +721,13 @@ module Google
713
721
  # Customize the options with defaults
714
722
  call_metadata = @config.rpcs.list_server_tls_policies.metadata.to_h
715
723
 
716
- # Set x-goog-api-client and x-goog-user-project headers
724
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
717
725
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
718
726
  lib_name: @config.lib_name, lib_version: @config.lib_version,
719
727
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
720
728
  transports_version_send: [:rest]
721
729
 
730
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
722
731
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
723
732
 
724
733
  options.apply_defaults timeout: @config.rpcs.list_server_tls_policies.timeout,
@@ -793,12 +802,13 @@ module Google
793
802
  # Customize the options with defaults
794
803
  call_metadata = @config.rpcs.get_server_tls_policy.metadata.to_h
795
804
 
796
- # Set x-goog-api-client and x-goog-user-project headers
805
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
797
806
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
798
807
  lib_name: @config.lib_name, lib_version: @config.lib_version,
799
808
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
800
809
  transports_version_send: [:rest]
801
810
 
811
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
802
812
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
803
813
 
804
814
  options.apply_defaults timeout: @config.rpcs.get_server_tls_policy.timeout,
@@ -886,12 +896,13 @@ module Google
886
896
  # Customize the options with defaults
887
897
  call_metadata = @config.rpcs.create_server_tls_policy.metadata.to_h
888
898
 
889
- # Set x-goog-api-client and x-goog-user-project headers
899
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
890
900
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
891
901
  lib_name: @config.lib_name, lib_version: @config.lib_version,
892
902
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
893
903
  transports_version_send: [:rest]
894
904
 
905
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
895
906
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
896
907
 
897
908
  options.apply_defaults timeout: @config.rpcs.create_server_tls_policy.timeout,
@@ -979,12 +990,13 @@ module Google
979
990
  # Customize the options with defaults
980
991
  call_metadata = @config.rpcs.update_server_tls_policy.metadata.to_h
981
992
 
982
- # Set x-goog-api-client and x-goog-user-project headers
993
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
983
994
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
984
995
  lib_name: @config.lib_name, lib_version: @config.lib_version,
985
996
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
986
997
  transports_version_send: [:rest]
987
998
 
999
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
988
1000
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
989
1001
 
990
1002
  options.apply_defaults timeout: @config.rpcs.update_server_tls_policy.timeout,
@@ -1066,12 +1078,13 @@ module Google
1066
1078
  # Customize the options with defaults
1067
1079
  call_metadata = @config.rpcs.delete_server_tls_policy.metadata.to_h
1068
1080
 
1069
- # Set x-goog-api-client and x-goog-user-project headers
1081
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1070
1082
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1071
1083
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1072
1084
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1073
1085
  transports_version_send: [:rest]
1074
1086
 
1087
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1075
1088
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1076
1089
 
1077
1090
  options.apply_defaults timeout: @config.rpcs.delete_server_tls_policy.timeout,
@@ -1157,12 +1170,13 @@ module Google
1157
1170
  # Customize the options with defaults
1158
1171
  call_metadata = @config.rpcs.list_client_tls_policies.metadata.to_h
1159
1172
 
1160
- # Set x-goog-api-client and x-goog-user-project headers
1173
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1161
1174
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1162
1175
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1163
1176
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1164
1177
  transports_version_send: [:rest]
1165
1178
 
1179
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1166
1180
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1167
1181
 
1168
1182
  options.apply_defaults timeout: @config.rpcs.list_client_tls_policies.timeout,
@@ -1237,12 +1251,13 @@ module Google
1237
1251
  # Customize the options with defaults
1238
1252
  call_metadata = @config.rpcs.get_client_tls_policy.metadata.to_h
1239
1253
 
1240
- # Set x-goog-api-client and x-goog-user-project headers
1254
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1241
1255
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1242
1256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1243
1257
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1244
1258
  transports_version_send: [:rest]
1245
1259
 
1260
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1246
1261
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1247
1262
 
1248
1263
  options.apply_defaults timeout: @config.rpcs.get_client_tls_policy.timeout,
@@ -1330,12 +1345,13 @@ module Google
1330
1345
  # Customize the options with defaults
1331
1346
  call_metadata = @config.rpcs.create_client_tls_policy.metadata.to_h
1332
1347
 
1333
- # Set x-goog-api-client and x-goog-user-project headers
1348
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1334
1349
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1335
1350
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1336
1351
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1337
1352
  transports_version_send: [:rest]
1338
1353
 
1354
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1339
1355
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1340
1356
 
1341
1357
  options.apply_defaults timeout: @config.rpcs.create_client_tls_policy.timeout,
@@ -1423,12 +1439,13 @@ module Google
1423
1439
  # Customize the options with defaults
1424
1440
  call_metadata = @config.rpcs.update_client_tls_policy.metadata.to_h
1425
1441
 
1426
- # Set x-goog-api-client and x-goog-user-project headers
1442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1427
1443
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1428
1444
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1429
1445
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1430
1446
  transports_version_send: [:rest]
1431
1447
 
1448
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1432
1449
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1433
1450
 
1434
1451
  options.apply_defaults timeout: @config.rpcs.update_client_tls_policy.timeout,
@@ -1510,12 +1527,13 @@ module Google
1510
1527
  # Customize the options with defaults
1511
1528
  call_metadata = @config.rpcs.delete_client_tls_policy.metadata.to_h
1512
1529
 
1513
- # Set x-goog-api-client and x-goog-user-project headers
1530
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1514
1531
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1515
1532
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1516
1533
  gapic_version: ::Google::Cloud::NetworkSecurity::V1beta1::VERSION,
1517
1534
  transports_version_send: [:rest]
1518
1535
 
1536
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1519
1537
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1520
1538
 
1521
1539
  options.apply_defaults timeout: @config.rpcs.delete_client_tls_policy.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 = "networksecurity.$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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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::NetworkSecurity::V1beta1::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 NetworkSecurity
23
23
  module V1beta1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end
@@ -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
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-network_security-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
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-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common