google-cloud-compute-v1 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
  3. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +13 -13
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
  6. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +23 -23
  7. data/lib/google/cloud/compute/v1/compute_pb.rb +129 -0
  8. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
  9. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
  12. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +8 -8
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
  17. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
  18. data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
  19. data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
  20. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
  21. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
  22. data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
  23. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
  24. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
  25. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
  26. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
  27. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  28. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
  29. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
  30. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
  31. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
  33. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +16 -16
  34. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
  35. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +12 -12
  36. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
  37. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
  38. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
  39. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
  40. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
  41. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
  42. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
  43. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
  44. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
  45. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
  46. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
  47. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
  48. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
  49. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
  50. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
  51. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
  52. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +21 -21
  53. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
  54. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
  55. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
  56. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
  57. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
  58. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  59. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
  60. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
  61. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
  62. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
  63. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
  64. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
  65. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
  66. data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
  67. data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
  68. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
  69. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
  70. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
  71. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
  72. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
  73. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
  74. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
  75. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
  76. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
  77. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
  78. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +20 -20
  79. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
  80. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
  81. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
  82. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +11 -11
  83. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
  84. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
  85. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
  86. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
  87. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
  88. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
  89. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
  90. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
  91. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +13 -13
  92. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
  93. data/lib/google/cloud/compute/v1/version.rb +1 -1
  94. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
  95. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +13 -13
  96. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
  97. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
  98. data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
  99. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
  100. data/proto_docs/google/cloud/compute/v1/compute.rb +331 -13
  101. metadata +2 -2
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionNetworkFirewallPolicies service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -686,9 +686,9 @@ module Google
686
686
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/addAssociation",
687
687
  body: "firewall_policy_association_resource",
688
688
  matches: [
689
- ["project", %r{[^/]+}, false],
690
- ["region", %r{[^/]+}, false],
691
- ["firewall_policy", %r{[^/]+}, false]
689
+ ["project", %r{^[^/]+/?$}, false],
690
+ ["region", %r{^[^/]+/?$}, false],
691
+ ["firewall_policy", %r{^[^/]+/?$}, false]
692
692
  ]
693
693
  )
694
694
  transcoder.transcode request_pb
@@ -710,9 +710,9 @@ module Google
710
710
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/addRule",
711
711
  body: "firewall_policy_rule_resource",
712
712
  matches: [
713
- ["project", %r{[^/]+}, false],
714
- ["region", %r{[^/]+}, false],
715
- ["firewall_policy", %r{[^/]+}, false]
713
+ ["project", %r{^[^/]+/?$}, false],
714
+ ["region", %r{^[^/]+/?$}, false],
715
+ ["firewall_policy", %r{^[^/]+/?$}, false]
716
716
  ]
717
717
  )
718
718
  transcoder.transcode request_pb
@@ -733,9 +733,9 @@ module Google
733
733
  uri_method: :post,
734
734
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/cloneRules",
735
735
  matches: [
736
- ["project", %r{[^/]+}, false],
737
- ["region", %r{[^/]+}, false],
738
- ["firewall_policy", %r{[^/]+}, false]
736
+ ["project", %r{^[^/]+/?$}, false],
737
+ ["region", %r{^[^/]+/?$}, false],
738
+ ["firewall_policy", %r{^[^/]+/?$}, false]
739
739
  ]
740
740
  )
741
741
  transcoder.transcode request_pb
@@ -756,9 +756,9 @@ module Google
756
756
  uri_method: :delete,
757
757
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}",
758
758
  matches: [
759
- ["project", %r{[^/]+}, false],
760
- ["region", %r{[^/]+}, false],
761
- ["firewall_policy", %r{[^/]+}, false]
759
+ ["project", %r{^[^/]+/?$}, false],
760
+ ["region", %r{^[^/]+/?$}, false],
761
+ ["firewall_policy", %r{^[^/]+/?$}, false]
762
762
  ]
763
763
  )
764
764
  transcoder.transcode request_pb
@@ -779,9 +779,9 @@ module Google
779
779
  uri_method: :get,
780
780
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}",
781
781
  matches: [
782
- ["project", %r{[^/]+}, false],
783
- ["region", %r{[^/]+}, false],
784
- ["firewall_policy", %r{[^/]+}, false]
782
+ ["project", %r{^[^/]+/?$}, false],
783
+ ["region", %r{^[^/]+/?$}, false],
784
+ ["firewall_policy", %r{^[^/]+/?$}, false]
785
785
  ]
786
786
  )
787
787
  transcoder.transcode request_pb
@@ -802,9 +802,9 @@ module Google
802
802
  uri_method: :get,
803
803
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/getAssociation",
804
804
  matches: [
805
- ["project", %r{[^/]+}, false],
806
- ["region", %r{[^/]+}, false],
807
- ["firewall_policy", %r{[^/]+}, false]
805
+ ["project", %r{^[^/]+/?$}, false],
806
+ ["region", %r{^[^/]+/?$}, false],
807
+ ["firewall_policy", %r{^[^/]+/?$}, false]
808
808
  ]
809
809
  )
810
810
  transcoder.transcode request_pb
@@ -825,8 +825,8 @@ module Google
825
825
  uri_method: :get,
826
826
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/getEffectiveFirewalls",
827
827
  matches: [
828
- ["project", %r{[^/]+}, false],
829
- ["region", %r{[^/]+}, false]
828
+ ["project", %r{^[^/]+/?$}, false],
829
+ ["region", %r{^[^/]+/?$}, false]
830
830
  ]
831
831
  )
832
832
  transcoder.transcode request_pb
@@ -847,9 +847,9 @@ module Google
847
847
  uri_method: :get,
848
848
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy",
849
849
  matches: [
850
- ["project", %r{[^/]+}, false],
851
- ["region", %r{[^/]+}, false],
852
- ["resource", %r{[^/]+}, false]
850
+ ["project", %r{^[^/]+/?$}, false],
851
+ ["region", %r{^[^/]+/?$}, false],
852
+ ["resource", %r{^[^/]+/?$}, false]
853
853
  ]
854
854
  )
855
855
  transcoder.transcode request_pb
@@ -870,9 +870,9 @@ module Google
870
870
  uri_method: :get,
871
871
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/getRule",
872
872
  matches: [
873
- ["project", %r{[^/]+}, false],
874
- ["region", %r{[^/]+}, false],
875
- ["firewall_policy", %r{[^/]+}, false]
873
+ ["project", %r{^[^/]+/?$}, false],
874
+ ["region", %r{^[^/]+/?$}, false],
875
+ ["firewall_policy", %r{^[^/]+/?$}, false]
876
876
  ]
877
877
  )
878
878
  transcoder.transcode request_pb
@@ -894,8 +894,8 @@ module Google
894
894
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies",
895
895
  body: "firewall_policy_resource",
896
896
  matches: [
897
- ["project", %r{[^/]+}, false],
898
- ["region", %r{[^/]+}, false]
897
+ ["project", %r{^[^/]+/?$}, false],
898
+ ["region", %r{^[^/]+/?$}, false]
899
899
  ]
900
900
  )
901
901
  transcoder.transcode request_pb
@@ -916,8 +916,8 @@ module Google
916
916
  uri_method: :get,
917
917
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies",
918
918
  matches: [
919
- ["project", %r{[^/]+}, false],
920
- ["region", %r{[^/]+}, false]
919
+ ["project", %r{^[^/]+/?$}, false],
920
+ ["region", %r{^[^/]+/?$}, false]
921
921
  ]
922
922
  )
923
923
  transcoder.transcode request_pb
@@ -939,9 +939,9 @@ module Google
939
939
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}",
940
940
  body: "firewall_policy_resource",
941
941
  matches: [
942
- ["project", %r{[^/]+}, false],
943
- ["region", %r{[^/]+}, false],
944
- ["firewall_policy", %r{[^/]+}, false]
942
+ ["project", %r{^[^/]+/?$}, false],
943
+ ["region", %r{^[^/]+/?$}, false],
944
+ ["firewall_policy", %r{^[^/]+/?$}, false]
945
945
  ]
946
946
  )
947
947
  transcoder.transcode request_pb
@@ -963,9 +963,9 @@ module Google
963
963
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/patchRule",
964
964
  body: "firewall_policy_rule_resource",
965
965
  matches: [
966
- ["project", %r{[^/]+}, false],
967
- ["region", %r{[^/]+}, false],
968
- ["firewall_policy", %r{[^/]+}, false]
966
+ ["project", %r{^[^/]+/?$}, false],
967
+ ["region", %r{^[^/]+/?$}, false],
968
+ ["firewall_policy", %r{^[^/]+/?$}, false]
969
969
  ]
970
970
  )
971
971
  transcoder.transcode request_pb
@@ -986,9 +986,9 @@ module Google
986
986
  uri_method: :post,
987
987
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/removeAssociation",
988
988
  matches: [
989
- ["project", %r{[^/]+}, false],
990
- ["region", %r{[^/]+}, false],
991
- ["firewall_policy", %r{[^/]+}, false]
989
+ ["project", %r{^[^/]+/?$}, false],
990
+ ["region", %r{^[^/]+/?$}, false],
991
+ ["firewall_policy", %r{^[^/]+/?$}, false]
992
992
  ]
993
993
  )
994
994
  transcoder.transcode request_pb
@@ -1009,9 +1009,9 @@ module Google
1009
1009
  uri_method: :post,
1010
1010
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{firewall_policy}/removeRule",
1011
1011
  matches: [
1012
- ["project", %r{[^/]+}, false],
1013
- ["region", %r{[^/]+}, false],
1014
- ["firewall_policy", %r{[^/]+}, false]
1012
+ ["project", %r{^[^/]+/?$}, false],
1013
+ ["region", %r{^[^/]+/?$}, false],
1014
+ ["firewall_policy", %r{^[^/]+/?$}, false]
1015
1015
  ]
1016
1016
  )
1017
1017
  transcoder.transcode request_pb
@@ -1033,9 +1033,9 @@ module Google
1033
1033
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy",
1034
1034
  body: "region_set_policy_request_resource",
1035
1035
  matches: [
1036
- ["project", %r{[^/]+}, false],
1037
- ["region", %r{[^/]+}, false],
1038
- ["resource", %r{[^/]+}, false]
1036
+ ["project", %r{^[^/]+/?$}, false],
1037
+ ["region", %r{^[^/]+/?$}, false],
1038
+ ["resource", %r{^[^/]+/?$}, false]
1039
1039
  ]
1040
1040
  )
1041
1041
  transcoder.transcode request_pb
@@ -1057,9 +1057,9 @@ module Google
1057
1057
  uri_template: "/compute/v1/projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions",
1058
1058
  body: "test_permissions_request_resource",
1059
1059
  matches: [
1060
- ["project", %r{[^/]+}, false],
1061
- ["region", %r{[^/]+}, false],
1062
- ["resource", %r{[^/]+}, false]
1060
+ ["project", %r{^[^/]+/?$}, false],
1061
+ ["region", %r{^[^/]+/?$}, false],
1062
+ ["resource", %r{^[^/]+/?$}, false]
1063
1063
  ]
1064
1064
  )
1065
1065
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionNotificationEndpoints service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -204,9 +204,9 @@ module Google
204
204
  uri_method: :delete,
205
205
  uri_template: "/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notification_endpoint}",
206
206
  matches: [
207
- ["project", %r{[^/]+}, false],
208
- ["region", %r{[^/]+}, false],
209
- ["notification_endpoint", %r{[^/]+}, false]
207
+ ["project", %r{^[^/]+/?$}, false],
208
+ ["region", %r{^[^/]+/?$}, false],
209
+ ["notification_endpoint", %r{^[^/]+/?$}, false]
210
210
  ]
211
211
  )
212
212
  transcoder.transcode request_pb
@@ -227,9 +227,9 @@ module Google
227
227
  uri_method: :get,
228
228
  uri_template: "/compute/v1/projects/{project}/regions/{region}/notificationEndpoints/{notification_endpoint}",
229
229
  matches: [
230
- ["project", %r{[^/]+}, false],
231
- ["region", %r{[^/]+}, false],
232
- ["notification_endpoint", %r{[^/]+}, false]
230
+ ["project", %r{^[^/]+/?$}, false],
231
+ ["region", %r{^[^/]+/?$}, false],
232
+ ["notification_endpoint", %r{^[^/]+/?$}, false]
233
233
  ]
234
234
  )
235
235
  transcoder.transcode request_pb
@@ -251,8 +251,8 @@ module Google
251
251
  uri_template: "/compute/v1/projects/{project}/regions/{region}/notificationEndpoints",
252
252
  body: "notification_endpoint_resource",
253
253
  matches: [
254
- ["project", %r{[^/]+}, false],
255
- ["region", %r{[^/]+}, false]
254
+ ["project", %r{^[^/]+/?$}, false],
255
+ ["region", %r{^[^/]+/?$}, false]
256
256
  ]
257
257
  )
258
258
  transcoder.transcode request_pb
@@ -273,8 +273,8 @@ module Google
273
273
  uri_method: :get,
274
274
  uri_template: "/compute/v1/projects/{project}/regions/{region}/notificationEndpoints",
275
275
  matches: [
276
- ["project", %r{[^/]+}, false],
277
- ["region", %r{[^/]+}, false]
276
+ ["project", %r{^[^/]+/?$}, false],
277
+ ["region", %r{^[^/]+/?$}, false]
278
278
  ]
279
279
  )
280
280
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionOperations service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -204,9 +204,9 @@ module Google
204
204
  uri_method: :delete,
205
205
  uri_template: "/compute/v1/projects/{project}/regions/{region}/operations/{operation}",
206
206
  matches: [
207
- ["project", %r{[^/]+}, false],
208
- ["region", %r{[^/]+}, false],
209
- ["operation", %r{[^/]+}, false]
207
+ ["project", %r{^[^/]+/?$}, false],
208
+ ["region", %r{^[^/]+/?$}, false],
209
+ ["operation", %r{^[^/]+/?$}, false]
210
210
  ]
211
211
  )
212
212
  transcoder.transcode request_pb
@@ -227,9 +227,9 @@ module Google
227
227
  uri_method: :get,
228
228
  uri_template: "/compute/v1/projects/{project}/regions/{region}/operations/{operation}",
229
229
  matches: [
230
- ["project", %r{[^/]+}, false],
231
- ["region", %r{[^/]+}, false],
232
- ["operation", %r{[^/]+}, false]
230
+ ["project", %r{^[^/]+/?$}, false],
231
+ ["region", %r{^[^/]+/?$}, false],
232
+ ["operation", %r{^[^/]+/?$}, false]
233
233
  ]
234
234
  )
235
235
  transcoder.transcode request_pb
@@ -250,8 +250,8 @@ module Google
250
250
  uri_method: :get,
251
251
  uri_template: "/compute/v1/projects/{project}/regions/{region}/operations",
252
252
  matches: [
253
- ["project", %r{[^/]+}, false],
254
- ["region", %r{[^/]+}, false]
253
+ ["project", %r{^[^/]+/?$}, false],
254
+ ["region", %r{^[^/]+/?$}, false]
255
255
  ]
256
256
  )
257
257
  transcoder.transcode request_pb
@@ -272,9 +272,9 @@ module Google
272
272
  uri_method: :post,
273
273
  uri_template: "/compute/v1/projects/{project}/regions/{region}/operations/{operation}/wait",
274
274
  matches: [
275
- ["project", %r{[^/]+}, false],
276
- ["region", %r{[^/]+}, false],
277
- ["operation", %r{[^/]+}, false]
275
+ ["project", %r{^[^/]+/?$}, false],
276
+ ["region", %r{^[^/]+/?$}, false],
277
+ ["operation", %r{^[^/]+/?$}, false]
278
278
  ]
279
279
  )
280
280
  transcoder.transcode request_pb
@@ -16,6 +16,7 @@
16
16
 
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
+ require "google/cloud/compute/v1/region_operations/rest/nonstandard_lro"
19
20
  require "google/cloud/compute/v1/region_operations/rest/client"
20
21
 
21
22
  module Google
@@ -22,7 +22,6 @@ require "gapic/config/method"
22
22
  require "google/cloud/compute/v1/version"
23
23
 
24
24
  require "google/cloud/compute/v1/region_operations/credentials"
25
- require "google/cloud/compute/v1/region_operations/rest/nonstandard_lro"
26
25
  require "google/cloud/compute/v1/region_operations/rest"
27
26
 
28
27
  module Google
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionSecurityPolicies service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -241,9 +241,9 @@ module Google
241
241
  uri_method: :delete,
242
242
  uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}",
243
243
  matches: [
244
- ["project", %r{[^/]+}, false],
245
- ["region", %r{[^/]+}, false],
246
- ["security_policy", %r{[^/]+}, false]
244
+ ["project", %r{^[^/]+/?$}, false],
245
+ ["region", %r{^[^/]+/?$}, false],
246
+ ["security_policy", %r{^[^/]+/?$}, false]
247
247
  ]
248
248
  )
249
249
  transcoder.transcode request_pb
@@ -264,9 +264,9 @@ module Google
264
264
  uri_method: :get,
265
265
  uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}",
266
266
  matches: [
267
- ["project", %r{[^/]+}, false],
268
- ["region", %r{[^/]+}, false],
269
- ["security_policy", %r{[^/]+}, false]
267
+ ["project", %r{^[^/]+/?$}, false],
268
+ ["region", %r{^[^/]+/?$}, false],
269
+ ["security_policy", %r{^[^/]+/?$}, false]
270
270
  ]
271
271
  )
272
272
  transcoder.transcode request_pb
@@ -288,8 +288,8 @@ module Google
288
288
  uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies",
289
289
  body: "security_policy_resource",
290
290
  matches: [
291
- ["project", %r{[^/]+}, false],
292
- ["region", %r{[^/]+}, false]
291
+ ["project", %r{^[^/]+/?$}, false],
292
+ ["region", %r{^[^/]+/?$}, false]
293
293
  ]
294
294
  )
295
295
  transcoder.transcode request_pb
@@ -310,8 +310,8 @@ module Google
310
310
  uri_method: :get,
311
311
  uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies",
312
312
  matches: [
313
- ["project", %r{[^/]+}, false],
314
- ["region", %r{[^/]+}, false]
313
+ ["project", %r{^[^/]+/?$}, false],
314
+ ["region", %r{^[^/]+/?$}, false]
315
315
  ]
316
316
  )
317
317
  transcoder.transcode request_pb
@@ -333,9 +333,9 @@ module Google
333
333
  uri_template: "/compute/v1/projects/{project}/regions/{region}/securityPolicies/{security_policy}",
334
334
  body: "security_policy_resource",
335
335
  matches: [
336
- ["project", %r{[^/]+}, false],
337
- ["region", %r{[^/]+}, false],
338
- ["security_policy", %r{[^/]+}, false]
336
+ ["project", %r{^[^/]+/?$}, false],
337
+ ["region", %r{^[^/]+/?$}, false],
338
+ ["security_policy", %r{^[^/]+/?$}, false]
339
339
  ]
340
340
  )
341
341
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionSslCertificates service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -204,9 +204,9 @@ module Google
204
204
  uri_method: :delete,
205
205
  uri_template: "/compute/v1/projects/{project}/regions/{region}/sslCertificates/{ssl_certificate}",
206
206
  matches: [
207
- ["project", %r{[^/]+}, false],
208
- ["region", %r{[^/]+}, false],
209
- ["ssl_certificate", %r{[^/]+}, false]
207
+ ["project", %r{^[^/]+/?$}, false],
208
+ ["region", %r{^[^/]+/?$}, false],
209
+ ["ssl_certificate", %r{^[^/]+/?$}, false]
210
210
  ]
211
211
  )
212
212
  transcoder.transcode request_pb
@@ -227,9 +227,9 @@ module Google
227
227
  uri_method: :get,
228
228
  uri_template: "/compute/v1/projects/{project}/regions/{region}/sslCertificates/{ssl_certificate}",
229
229
  matches: [
230
- ["project", %r{[^/]+}, false],
231
- ["region", %r{[^/]+}, false],
232
- ["ssl_certificate", %r{[^/]+}, false]
230
+ ["project", %r{^[^/]+/?$}, false],
231
+ ["region", %r{^[^/]+/?$}, false],
232
+ ["ssl_certificate", %r{^[^/]+/?$}, false]
233
233
  ]
234
234
  )
235
235
  transcoder.transcode request_pb
@@ -251,8 +251,8 @@ module Google
251
251
  uri_template: "/compute/v1/projects/{project}/regions/{region}/sslCertificates",
252
252
  body: "ssl_certificate_resource",
253
253
  matches: [
254
- ["project", %r{[^/]+}, false],
255
- ["region", %r{[^/]+}, false]
254
+ ["project", %r{^[^/]+/?$}, false],
255
+ ["region", %r{^[^/]+/?$}, false]
256
256
  ]
257
257
  )
258
258
  transcoder.transcode request_pb
@@ -273,8 +273,8 @@ module Google
273
273
  uri_method: :get,
274
274
  uri_template: "/compute/v1/projects/{project}/regions/{region}/sslCertificates",
275
275
  matches: [
276
- ["project", %r{[^/]+}, false],
277
- ["region", %r{[^/]+}, false]
276
+ ["project", %r{^[^/]+/?$}, false],
277
+ ["region", %r{^[^/]+/?$}, false]
278
278
  ]
279
279
  )
280
280
  transcoder.transcode request_pb
@@ -26,8 +26,8 @@ module Google
26
26
  module Rest
27
27
  ##
28
28
  # REST service stub for the RegionTargetHttpProxies service.
29
- # service stub contains baseline method implementations
30
- # including transcoding, making the REST call and deserialing the response
29
+ # Service stub contains baseline method implementations
30
+ # including transcoding, making the REST call, and deserialing the response.
31
31
  #
32
32
  class ServiceStub
33
33
  def initialize endpoint:, credentials:
@@ -241,9 +241,9 @@ module Google
241
241
  uri_method: :delete,
242
242
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{target_http_proxy}",
243
243
  matches: [
244
- ["project", %r{[^/]+}, false],
245
- ["region", %r{[^/]+}, false],
246
- ["target_http_proxy", %r{[^/]+}, false]
244
+ ["project", %r{^[^/]+/?$}, false],
245
+ ["region", %r{^[^/]+/?$}, false],
246
+ ["target_http_proxy", %r{^[^/]+/?$}, false]
247
247
  ]
248
248
  )
249
249
  transcoder.transcode request_pb
@@ -264,9 +264,9 @@ module Google
264
264
  uri_method: :get,
265
265
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{target_http_proxy}",
266
266
  matches: [
267
- ["project", %r{[^/]+}, false],
268
- ["region", %r{[^/]+}, false],
269
- ["target_http_proxy", %r{[^/]+}, false]
267
+ ["project", %r{^[^/]+/?$}, false],
268
+ ["region", %r{^[^/]+/?$}, false],
269
+ ["target_http_proxy", %r{^[^/]+/?$}, false]
270
270
  ]
271
271
  )
272
272
  transcoder.transcode request_pb
@@ -288,8 +288,8 @@ module Google
288
288
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetHttpProxies",
289
289
  body: "target_http_proxy_resource",
290
290
  matches: [
291
- ["project", %r{[^/]+}, false],
292
- ["region", %r{[^/]+}, false]
291
+ ["project", %r{^[^/]+/?$}, false],
292
+ ["region", %r{^[^/]+/?$}, false]
293
293
  ]
294
294
  )
295
295
  transcoder.transcode request_pb
@@ -310,8 +310,8 @@ module Google
310
310
  uri_method: :get,
311
311
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetHttpProxies",
312
312
  matches: [
313
- ["project", %r{[^/]+}, false],
314
- ["region", %r{[^/]+}, false]
313
+ ["project", %r{^[^/]+/?$}, false],
314
+ ["region", %r{^[^/]+/?$}, false]
315
315
  ]
316
316
  )
317
317
  transcoder.transcode request_pb
@@ -333,9 +333,9 @@ module Google
333
333
  uri_template: "/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{target_http_proxy}/setUrlMap",
334
334
  body: "url_map_reference_resource",
335
335
  matches: [
336
- ["project", %r{[^/]+}, false],
337
- ["region", %r{[^/]+}, false],
338
- ["target_http_proxy", %r{[^/]+}, false]
336
+ ["project", %r{^[^/]+/?$}, false],
337
+ ["region", %r{^[^/]+/?$}, false],
338
+ ["target_http_proxy", %r{^[^/]+/?$}, false]
339
339
  ]
340
340
  )
341
341
  transcoder.transcode request_pb