google-cloud-compute-v1 1.5.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (123) hide show
  1. checksums.yaml +4 -4
  2. data/AUTHENTICATION.md +1 -1
  3. data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
  4. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +87 -0
  5. data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +74 -13
  6. data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
  7. data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
  8. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +151 -0
  9. data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -23
  10. data/lib/google/cloud/compute/v1/compute_pb.rb +357 -0
  11. data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
  12. data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
  13. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
  14. data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
  15. data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
  16. data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
  17. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +82 -0
  18. data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +68 -8
  19. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
  20. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
  21. data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
  22. data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
  23. data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
  24. data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
  25. data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
  26. data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
  27. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
  28. data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
  29. data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
  30. data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
  31. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
  32. data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
  33. data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
  34. data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
  35. data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
  36. data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
  37. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +87 -0
  38. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +77 -16
  39. data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
  40. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +82 -0
  41. data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +72 -12
  42. data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
  43. data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
  44. data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
  45. data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
  46. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
  47. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
  48. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
  49. data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
  50. data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
  51. data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
  52. data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
  53. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
  54. data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
  55. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
  56. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
  57. data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
  58. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +155 -0
  59. data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +142 -21
  60. data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
  61. data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
  62. data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
  63. data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
  64. data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
  65. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
  66. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
  67. data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
  68. data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
  69. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
  70. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
  71. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
  72. data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
  73. data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
  74. data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
  75. data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
  76. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
  77. data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
  78. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +759 -0
  79. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
  80. data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
  81. data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
  82. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
  83. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
  84. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
  85. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +587 -0
  86. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
  87. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
  88. data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
  89. data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
  90. data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
  91. data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
  92. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
  93. data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
  94. data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
  95. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +82 -0
  96. data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +80 -20
  97. data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
  98. data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
  99. data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
  100. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +86 -0
  101. data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +69 -11
  102. data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
  103. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
  104. data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
  105. data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
  106. data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
  107. data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
  108. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
  109. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
  110. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +87 -0
  111. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +74 -13
  112. data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
  113. data/lib/google/cloud/compute/v1/version.rb +1 -1
  114. data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
  115. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +87 -0
  116. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +74 -13
  117. data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
  118. data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
  119. data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
  120. data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
  121. data/lib/google/cloud/compute/v1.rb +2 -0
  122. data/proto_docs/google/cloud/compute/v1/compute.rb +968 -39
  123. metadata +12 -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
@@ -0,0 +1,52 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2022 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "googleauth"
20
+
21
+ module Google
22
+ module Cloud
23
+ module Compute
24
+ module V1
25
+ module RegionSslPolicies
26
+ # Credentials for the RegionSslPolicies API.
27
+ class Credentials < ::Google::Auth::Credentials
28
+ self.scope = [
29
+ "https://www.googleapis.com/auth/compute",
30
+ "https://www.googleapis.com/auth/cloud-platform"
31
+ ]
32
+ self.env_vars = [
33
+ "COMPUTE_CREDENTIALS",
34
+ "COMPUTE_KEYFILE",
35
+ "GOOGLE_CLOUD_CREDENTIALS",
36
+ "GOOGLE_CLOUD_KEYFILE",
37
+ "GCLOUD_KEYFILE",
38
+ "COMPUTE_CREDENTIALS_JSON",
39
+ "COMPUTE_KEYFILE_JSON",
40
+ "GOOGLE_CLOUD_CREDENTIALS_JSON",
41
+ "GOOGLE_CLOUD_KEYFILE_JSON",
42
+ "GCLOUD_KEYFILE_JSON"
43
+ ]
44
+ self.paths = [
45
+ "~/.config/google_cloud/application_default_credentials.json"
46
+ ]
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end