google-cloud-run-v2 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/run/v2/build_pb.rb +4 -25
  4. data/lib/google/cloud/run/v2/builds/client.rb +31 -4
  5. data/lib/google/cloud/run/v2/builds/rest/client.rb +11 -1
  6. data/lib/google/cloud/run/v2/condition_pb.rb +3 -25
  7. data/lib/google/cloud/run/v2/container_status_pb.rb +21 -0
  8. data/lib/google/cloud/run/v2/execution_pb.rb +2 -26
  9. data/lib/google/cloud/run/v2/execution_template_pb.rb +2 -24
  10. data/lib/google/cloud/run/v2/executions/client.rb +22 -3
  11. data/lib/google/cloud/run/v2/executions/operations.rb +22 -3
  12. data/lib/google/cloud/run/v2/executions/rest/client.rb +2 -0
  13. data/lib/google/cloud/run/v2/executions/rest/operations.rb +2 -0
  14. data/lib/google/cloud/run/v2/instance_pb.rb +42 -0
  15. data/lib/google/cloud/run/v2/instance_services_pb.rb +55 -0
  16. data/lib/google/cloud/run/v2/instance_split_pb.rb +2 -23
  17. data/lib/google/cloud/run/v2/instances/client.rb +1059 -0
  18. data/lib/google/cloud/run/v2/instances/credentials.rb +47 -0
  19. data/lib/google/cloud/run/v2/instances/operations.rb +851 -0
  20. data/lib/google/cloud/run/v2/instances/paths.rb +178 -0
  21. data/lib/google/cloud/run/v2/instances/rest/client.rb +962 -0
  22. data/lib/google/cloud/run/v2/instances/rest/operations.rb +1095 -0
  23. data/lib/google/cloud/run/v2/instances/rest/service_stub.rb +450 -0
  24. data/lib/google/cloud/run/v2/instances/rest.rb +53 -0
  25. data/lib/google/cloud/run/v2/instances.rb +56 -0
  26. data/lib/google/cloud/run/v2/job_pb.rb +3 -30
  27. data/lib/google/cloud/run/v2/jobs/client.rb +22 -3
  28. data/lib/google/cloud/run/v2/jobs/operations.rb +22 -3
  29. data/lib/google/cloud/run/v2/jobs/rest/client.rb +2 -0
  30. data/lib/google/cloud/run/v2/jobs/rest/operations.rb +2 -0
  31. data/lib/google/cloud/run/v2/k8s.min_pb.rb +5 -24
  32. data/lib/google/cloud/run/v2/rest.rb +1 -0
  33. data/lib/google/cloud/run/v2/revision_pb.rb +2 -29
  34. data/lib/google/cloud/run/v2/revision_template_pb.rb +2 -26
  35. data/lib/google/cloud/run/v2/revisions/client.rb +22 -3
  36. data/lib/google/cloud/run/v2/revisions/operations.rb +22 -3
  37. data/lib/google/cloud/run/v2/revisions/rest/client.rb +2 -0
  38. data/lib/google/cloud/run/v2/revisions/rest/operations.rb +2 -0
  39. data/lib/google/cloud/run/v2/service_pb.rb +4 -30
  40. data/lib/google/cloud/run/v2/services/client.rb +22 -3
  41. data/lib/google/cloud/run/v2/services/operations.rb +22 -3
  42. data/lib/google/cloud/run/v2/services/rest/client.rb +2 -0
  43. data/lib/google/cloud/run/v2/services/rest/operations.rb +2 -0
  44. data/lib/google/cloud/run/v2/status_pb.rb +2 -23
  45. data/lib/google/cloud/run/v2/task_pb.rb +2 -29
  46. data/lib/google/cloud/run/v2/task_template_pb.rb +2 -26
  47. data/lib/google/cloud/run/v2/tasks/client.rb +22 -3
  48. data/lib/google/cloud/run/v2/tasks/rest/client.rb +2 -0
  49. data/lib/google/cloud/run/v2/traffic_target_pb.rb +2 -23
  50. data/lib/google/cloud/run/v2/vendor_settings_pb.rb +3 -24
  51. data/lib/google/cloud/run/v2/version.rb +1 -1
  52. data/lib/google/cloud/run/v2/worker_pool_pb.rb +3 -30
  53. data/lib/google/cloud/run/v2/worker_pool_revision_template_pb.rb +3 -27
  54. data/lib/google/cloud/run/v2/worker_pools/client.rb +22 -3
  55. data/lib/google/cloud/run/v2/worker_pools/operations.rb +22 -3
  56. data/lib/google/cloud/run/v2/worker_pools/rest/client.rb +2 -0
  57. data/lib/google/cloud/run/v2/worker_pools/rest/operations.rb +2 -0
  58. data/lib/google/cloud/run/v2.rb +1 -0
  59. data/proto_docs/google/api/client.rb +149 -29
  60. data/proto_docs/google/api/routing.rb +7 -3
  61. data/proto_docs/google/cloud/run/v2/build.rb +11 -0
  62. data/proto_docs/google/cloud/run/v2/condition.rb +3 -0
  63. data/proto_docs/google/cloud/run/v2/container_status.rb +42 -0
  64. data/proto_docs/google/cloud/run/v2/instance.rb +328 -0
  65. data/proto_docs/google/cloud/run/v2/job.rb +2 -2
  66. data/proto_docs/google/cloud/run/v2/k8s.min.rb +37 -2
  67. data/proto_docs/google/cloud/run/v2/service.rb +32 -7
  68. data/proto_docs/google/cloud/run/v2/vendor_settings.rb +5 -0
  69. data/proto_docs/google/cloud/run/v2/worker_pool.rb +23 -22
  70. data/proto_docs/google/cloud/run/v2/worker_pool_revision_template.rb +3 -0
  71. metadata +18 -4
@@ -1146,8 +1146,6 @@ module Google
1146
1146
  # @return [::String,nil]
1147
1147
  # @!attribute [rw] credentials
1148
1148
  # Credentials to send with calls. You may provide any of the following types:
1149
- # * (`String`) The path to a service account key file in JSON format
1150
- # * (`Hash`) A service account key as a Hash
1151
1149
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1152
1150
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1153
1151
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1156,7 +1154,26 @@ module Google
1156
1154
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1157
1155
  # * (`nil`) indicating no credentials
1158
1156
  #
1159
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1157
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1158
+ # is deprecated. Providing an unvalidated credential configuration to
1159
+ # Google APIs can compromise the security of your systems and data.
1160
+ #
1161
+ # @example
1162
+ #
1163
+ # # The recommended way to provide credentials is to use the `make_creds` method
1164
+ # # on the appropriate credentials class for your environment.
1165
+ #
1166
+ # require "googleauth"
1167
+ #
1168
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1169
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1170
+ # )
1171
+ #
1172
+ # client = ::Google::Cloud::Run::V2::Jobs::Client.new do |config|
1173
+ # config.credentials = credentials
1174
+ # end
1175
+ #
1176
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1160
1177
  # external source for authentication to Google Cloud, you must validate it before
1161
1178
  # providing it to a Google API client library. Providing an unvalidated credential
1162
1179
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1190,6 +1207,7 @@ module Google
1190
1207
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1191
1208
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1192
1209
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1210
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1193
1211
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1194
1212
  # trigger a retry.
1195
1213
  # @return [::Hash]
@@ -1273,6 +1291,7 @@ module Google
1273
1291
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1274
1292
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1275
1293
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1294
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1276
1295
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1277
1296
  # trigger a retry.
1278
1297
  #
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -694,6 +711,7 @@ module Google
694
711
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
695
712
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
696
713
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
714
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
697
715
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
698
716
  # trigger a retry.
699
717
  # @return [::Hash]
@@ -777,6 +795,7 @@ module Google
777
795
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
778
796
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
779
797
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
798
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
780
799
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
781
800
  # trigger a retry.
782
801
  #
@@ -1093,6 +1093,7 @@ module Google
1093
1093
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1094
1094
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1095
1095
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1096
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1096
1097
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1097
1098
  # trigger a retry.
1098
1099
  # @return [::Hash]
@@ -1165,6 +1166,7 @@ module Google
1165
1166
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1166
1167
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1167
1168
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1169
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1168
1170
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1169
1171
  # trigger a retry.
1170
1172
  #
@@ -640,6 +640,7 @@ module Google
640
640
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
641
641
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
642
642
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
643
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
643
644
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
644
645
  # trigger a retry.
645
646
  # @return [::Hash]
@@ -712,6 +713,7 @@ module Google
712
713
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
713
714
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
714
715
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
716
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
715
717
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
716
718
  # trigger a retry.
717
719
  #
@@ -8,31 +8,10 @@ require 'google/api/field_behavior_pb'
8
8
  require 'google/api/resource_pb'
9
9
 
10
10
 
11
- descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\x81\x04\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x12\n\ndepends_on\x18\x0c \x03(\t\x12\x16\n\x0e\x62\x61se_image_uri\x18\r \x01(\t\x12\x37\n\nbuild_info\x18\x0f \x01(\x0b\x32\x1e.google.cloud.run.v2.BuildInfoB\x03\xe0\x41\x03\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"9\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\xd4\x02\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x12>\n\tempty_dir\x18\x04 \x01(\x0b\x32).google.cloud.run.v2.EmptyDirVolumeSourceH\x00\x12\x33\n\x03nfs\x18\x05 \x01(\x0b\x32$.google.cloud.run.v2.NFSVolumeSourceH\x00\x12\x33\n\x03gcs\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.GCSVolumeSourceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\x9a\x01\n\x14\x45mptyDirVolumeSource\x12@\n\x06medium\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.EmptyDirVolumeSource.Medium\x12\x12\n\nsize_limit\x18\x02 \x01(\t\",\n\x06Medium\x12\x16\n\x12MEDIUM_UNSPECIFIED\x10\x00\x12\n\n\x06MEMORY\x10\x01\"B\n\x0fNFSVolumeSource\x12\x0e\n\x06server\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\"K\n\x0fGCSVolumeSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x11\n\tread_only\x18\x02 \x01(\x08\x12\x15\n\rmount_options\x18\x03 \x03(\t\"\xc8\x02\n\x05Probe\x12\"\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0eperiod_seconds\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12;\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionB\x03\xe0\x41\x01H\x00\x12?\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionB\x03\xe0\x41\x01H\x00\x12\x34\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionB\x03\xe0\x41\x01H\x00\x42\x0c\n\nprobe_type\"q\n\rHTTPGetAction\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12:\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeaderB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\"3\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x01\"$\n\x0fTCPSocketAction\x12\x11\n\x04port\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\"5\n\nGRPCAction\x12\x11\n\x04port\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07service\x18\x02 \x01(\tB\x03\xe0\x41\x01\"G\n\tBuildInfo\x12\x1c\n\x0f\x66unction_target\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsource_location\x18\x02 \x01(\tB\x03\xe0\x41\x03\x42\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}b\x06proto3"
11
+ descriptor_data = "\n!google/cloud/run/v2/k8s.min.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\"\xf1\x04\n\tContainer\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x12\n\x05image\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x0bsource_code\x18\x11 \x01(\x0b\x32\x1f.google.cloud.run.v2.SourceCodeB\x03\xe0\x41\x01\x12\x0f\n\x07\x63ommand\x18\x03 \x03(\t\x12\x0c\n\x04\x61rgs\x18\x04 \x03(\t\x12(\n\x03\x65nv\x18\x05 \x03(\x0b\x32\x1b.google.cloud.run.v2.EnvVar\x12<\n\tresources\x18\x06 \x01(\x0b\x32).google.cloud.run.v2.ResourceRequirements\x12\x31\n\x05ports\x18\x07 \x03(\x0b\x32\".google.cloud.run.v2.ContainerPort\x12\x37\n\rvolume_mounts\x18\x08 \x03(\x0b\x32 .google.cloud.run.v2.VolumeMount\x12\x13\n\x0bworking_dir\x18\t \x01(\t\x12\x32\n\x0eliveness_probe\x18\n \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x31\n\rstartup_probe\x18\x0b \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x33\n\x0freadiness_probe\x18\x0e \x01(\x0b\x32\x1a.google.cloud.run.v2.Probe\x12\x12\n\ndepends_on\x18\x0c \x03(\t\x12\x16\n\x0e\x62\x61se_image_uri\x18\r \x01(\t\x12\x37\n\nbuild_info\x18\x0f \x01(\x0b\x32\x1e.google.cloud.run.v2.BuildInfoB\x03\xe0\x41\x03\"\xb9\x01\n\x14ResourceRequirements\x12\x45\n\x06limits\x18\x01 \x03(\x0b\x32\x35.google.cloud.run.v2.ResourceRequirements.LimitsEntry\x12\x10\n\x08\x63pu_idle\x18\x02 \x01(\x08\x12\x19\n\x11startup_cpu_boost\x18\x03 \x01(\x08\x1a-\n\x0bLimitsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"q\n\x06\x45nvVar\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x05value\x18\x02 \x01(\tH\x00\x12\x39\n\x0cvalue_source\x18\x03 \x01(\x0b\x32!.google.cloud.run.v2.EnvVarSourceH\x00\x42\x08\n\x06values\"N\n\x0c\x45nvVarSource\x12>\n\x0esecret_key_ref\x18\x01 \x01(\x0b\x32&.google.cloud.run.v2.SecretKeySelector\"\x92\x01\n\x11SecretKeySelector\x12;\n\x06secret\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#secretmanager.googleapis.com/Secret\x12@\n\x07version\x18\x02 \x01(\tB/\xfa\x41,\n*secretmanager.googleapis.com/SecretVersion\"5\n\rContainerPort\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x16\n\x0e\x63ontainer_port\x18\x03 \x01(\x05\"P\n\x0bVolumeMount\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nmount_path\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08sub_path\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xd4\x02\n\x06Volume\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x39\n\x06secret\x18\x02 \x01(\x0b\x32\'.google.cloud.run.v2.SecretVolumeSourceH\x00\x12\x43\n\x12\x63loud_sql_instance\x18\x03 \x01(\x0b\x32%.google.cloud.run.v2.CloudSqlInstanceH\x00\x12>\n\tempty_dir\x18\x04 \x01(\x0b\x32).google.cloud.run.v2.EmptyDirVolumeSourceH\x00\x12\x33\n\x03nfs\x18\x05 \x01(\x0b\x32$.google.cloud.run.v2.NFSVolumeSourceH\x00\x12\x33\n\x03gcs\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.GCSVolumeSourceH\x00\x42\r\n\x0bvolume_type\"r\n\x12SecretVolumeSource\x12\x13\n\x06secret\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x31\n\x05items\x18\x02 \x03(\x0b\x32\".google.cloud.run.v2.VersionToPath\x12\x14\n\x0c\x64\x65\x66\x61ult_mode\x18\x03 \x01(\x05\"A\n\rVersionToPath\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x0f\n\x07version\x18\x02 \x01(\t\x12\x0c\n\x04mode\x18\x03 \x01(\x05\"%\n\x10\x43loudSqlInstance\x12\x11\n\tinstances\x18\x01 \x03(\t\"\x9a\x01\n\x14\x45mptyDirVolumeSource\x12@\n\x06medium\x18\x01 \x01(\x0e\x32\x30.google.cloud.run.v2.EmptyDirVolumeSource.Medium\x12\x12\n\nsize_limit\x18\x02 \x01(\t\",\n\x06Medium\x12\x16\n\x12MEDIUM_UNSPECIFIED\x10\x00\x12\n\n\x06MEMORY\x10\x01\"B\n\x0fNFSVolumeSource\x12\x0e\n\x06server\x18\x01 \x01(\t\x12\x0c\n\x04path\x18\x02 \x01(\t\x12\x11\n\tread_only\x18\x03 \x01(\x08\"K\n\x0fGCSVolumeSource\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x11\n\tread_only\x18\x02 \x01(\x08\x12\x15\n\rmount_options\x18\x03 \x03(\t\"\xc8\x02\n\x05Probe\x12\"\n\x15initial_delay_seconds\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1c\n\x0ftimeout_seconds\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1b\n\x0eperiod_seconds\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x1e\n\x11\x66\x61ilure_threshold\x18\x04 \x01(\x05\x42\x03\xe0\x41\x01\x12;\n\x08http_get\x18\x05 \x01(\x0b\x32\".google.cloud.run.v2.HTTPGetActionB\x03\xe0\x41\x01H\x00\x12?\n\ntcp_socket\x18\x06 \x01(\x0b\x32$.google.cloud.run.v2.TCPSocketActionB\x03\xe0\x41\x01H\x00\x12\x34\n\x04grpc\x18\x07 \x01(\x0b\x32\x1f.google.cloud.run.v2.GRPCActionB\x03\xe0\x41\x01H\x00\x42\x0c\n\nprobe_type\"q\n\rHTTPGetAction\x12\x11\n\x04path\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12:\n\x0chttp_headers\x18\x04 \x03(\x0b\x32\x1f.google.cloud.run.v2.HTTPHeaderB\x03\xe0\x41\x01\x12\x11\n\x04port\x18\x05 \x01(\x05\x42\x03\xe0\x41\x01\"3\n\nHTTPHeader\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\x05value\x18\x02 \x01(\tB\x03\xe0\x41\x01\"$\n\x0fTCPSocketAction\x12\x11\n\x04port\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\"5\n\nGRPCAction\x12\x11\n\x04port\x18\x01 \x01(\x05\x42\x03\xe0\x41\x01\x12\x14\n\x07service\x18\x02 \x01(\tB\x03\xe0\x41\x01\"G\n\tBuildInfo\x12\x1c\n\x0f\x66unction_target\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x1c\n\x0fsource_location\x18\x02 \x01(\tB\x03\xe0\x41\x03\"\xc8\x01\n\nSourceCode\x12R\n\x14\x63loud_storage_source\x18\x01 \x01(\x0b\x32\x32.google.cloud.run.v2.SourceCode.CloudStorageSourceH\x00\x1aW\n\x12\x43loudStorageSource\x12\x13\n\x06\x62ucket\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x13\n\x06object\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x42\r\n\x0bsource_typeB\xe9\x03\n\x17\x63om.google.cloud.run.v2B\x0bK8sMinProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpb\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\xea\x41J\n#secretmanager.googleapis.com/Secret\x12#projects/{project}/secrets/{secret}\xea\x41\x64\n*secretmanager.googleapis.com/SecretVersion\x12\x36projects/{project}/secrets/{secret}/versions/{version}\xea\x41\x64\n\"vpcaccess.googleapis.com/Connector\x12>projects/{project}/locations/{location}/connectors/{connector}b\x06proto3"
12
12
 
13
- pool = Google::Protobuf::DescriptorPool.generated_pool
14
-
15
- begin
16
- pool.add_serialized_file(descriptor_data)
17
- rescue TypeError
18
- # Compatibility code: will be removed in the next major version.
19
- require 'google/protobuf/descriptor_pb'
20
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
21
- parsed.clear_dependency
22
- serialized = parsed.class.encode(parsed)
23
- file = pool.add_serialized_file(serialized)
24
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
25
- imports = [
26
- ]
27
- imports.each do |type_name, expected_filename|
28
- import_file = pool.lookup(type_name).file_descriptor
29
- if import_file.name != expected_filename
30
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
31
- end
32
- end
33
- warn "Each proto file must use a consistent fully-qualified name."
34
- warn "This will become an error in the next major version."
35
- end
13
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
14
+ pool.add_serialized_file(descriptor_data)
36
15
 
37
16
  module Google
38
17
  module Cloud
@@ -59,6 +38,8 @@ module Google
59
38
  TCPSocketAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.TCPSocketAction").msgclass
60
39
  GRPCAction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GRPCAction").msgclass
61
40
  BuildInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.BuildInfo").msgclass
41
+ SourceCode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SourceCode").msgclass
42
+ SourceCode::CloudStorageSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.SourceCode.CloudStorageSource").msgclass
62
43
  end
63
44
  end
64
45
  end
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/run/v2/builds/rest"
20
20
  require "google/cloud/run/v2/executions/rest"
21
+ require "google/cloud/run/v2/instances/rest"
21
22
  require "google/cloud/run/v2/jobs/rest"
22
23
  require "google/cloud/run/v2/revisions/rest"
23
24
  require "google/cloud/run/v2/services/rest"
@@ -21,35 +21,8 @@ require 'google/protobuf/timestamp_pb'
21
21
 
22
22
  descriptor_data = "\n\"google/cloud/run/v2/revision.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a google/cloud/run/v2/status.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a#google/longrunning/operations.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"G\n\x12GetRevisionRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\"\x88\x01\n\x14ListRevisionsRequest\x12\x33\n\x06parent\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\x12\x1brun.googleapis.com/Revision\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"b\n\x15ListRevisionsResponse\x12\x30\n\trevisions\x18\x01 \x03(\x0b\x32\x1d.google.cloud.run.v2.Revision\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"o\n\x15\x44\x65leteRevisionRequest\x12\x31\n\x04name\x18\x01 \x01(\tB#\xe0\x41\x02\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xcb\x0e\n\x08Revision\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x03 \x01(\x03\x42\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32).google.cloud.run.v2.Revision.LabelsEntryB\x03\xe0\x41\x03\x12H\n\x0b\x61nnotations\x18\x05 \x03(\x0b\x32..google.cloud.run.v2.Revision.AnnotationsEntryB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12-\n\x0claunch_stage\x18\n \x01(\x0e\x32\x17.google.api.LaunchStage\x12\x33\n\x07service\x18\x0b \x01(\tB\"\xe0\x41\x03\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x35\n\x07scaling\x18\x0c \x01(\x0b\x32$.google.cloud.run.v2.RevisionScaling\x12\x32\n\nvpc_access\x18\r \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccess\x12(\n max_instance_request_concurrency\x18\" \x01(\x05\x12*\n\x07timeout\x18\x0f \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fservice_account\x18\x10 \x01(\t\x12\x32\n\ncontainers\x18\x11 \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12,\n\x07volumes\x18\x12 \x03(\x0b\x32\x1b.google.cloud.run.v2.Volume\x12H\n\x15\x65xecution_environment\x18\x14 \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironment\x12>\n\x0e\x65ncryption_key\x18\x15 \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x36\n\x0cservice_mesh\x18\x16 \x01(\x0b\x32 .google.cloud.run.v2.ServiceMesh\x12\\\n encryption_key_revocation_action\x18\x17 \x01(\x0e\x32\x32.google.cloud.run.v2.EncryptionKeyRevocationAction\x12\x43\n encryption_key_shutdown_duration\x18\x18 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x18\n\x0breconciling\x18\x1e \x01(\x08\x42\x03\xe0\x41\x03\x12\x37\n\nconditions\x18\x1f \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12 \n\x13observed_generation\x18 \x01(\x03\x42\x03\xe0\x41\x03\x12\x14\n\x07log_uri\x18! \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18% \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x10session_affinity\x18& \x01(\x08\x12G\n\x0escaling_status\x18\' \x01(\x0b\x32*.google.cloud.run.v2.RevisionScalingStatusB\x03\xe0\x41\x03\x12\x38\n\rnode_selector\x18( \x01(\x0b\x32!.google.cloud.run.v2.NodeSelector\x12\x32\n\x1dgpu_zonal_redundancy_disabled\x18\x30 \x01(\x08\x42\x06\xe0\x41\x01\xe0\x41\x03H\x00\x88\x01\x01\x12\x14\n\x07\x63reator\x18\x31 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:t\xea\x41q\n\x1brun.googleapis.com/Revision\x12Oprojects/{project}/locations/{location}/services/{service}/revisions/{revision}R\x01\x01\x42 \n\x1e_gpu_zonal_redundancy_disabled2\xc4\x07\n\tRevisions\x12\x92\x02\n\x0bGetRevision\x12\'.google.cloud.run.v2.GetRevisionRequest\x1a\x1d.google.cloud.run.v2.Revision\"\xba\x01\xda\x41\x04name\x82\xd3\xe4\x93\x02y\x12\x38/v2/{name=projects/*/locations/*/services/*/revisions/*}Z=\x12;/v2/{name=projects/*/locations/*/workerPools/*/revisions/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xa7\x02\n\rListRevisions\x12).google.cloud.run.v2.ListRevisionsRequest\x1a*.google.cloud.run.v2.ListRevisionsResponse\"\xbe\x01\xda\x41\x06parent\x82\xd3\xe4\x93\x02y\x12\x38/v2/{parent=projects/*/locations/*/services/*}/revisionsZ=\x12;/v2/{parent=projects/*/locations/*/workerPools/*}/revisions\x8a\xd3\xe4\x93\x02\x30\x12.\n\x06parent\x12$projects/*/locations/{location=*}/**\x12\xaf\x02\n\x0e\x44\x65leteRevision\x12*.google.cloud.run.v2.DeleteRevisionRequest\x1a\x1d.google.longrunning.Operation\"\xd1\x01\xca\x41\x14\n\x08Revision\x12\x08Revision\xda\x41\x04name\x82\xd3\xe4\x93\x02y*8/v2/{name=projects/*/locations/*/services/*/revisions/*}Z=*;/v2/{name=projects/*/locations/*/workerPools/*/revisions/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBU\n\x17\x63om.google.cloud.run.v2B\rRevisionProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
23
23
 
24
- pool = Google::Protobuf::DescriptorPool.generated_pool
25
-
26
- begin
27
- pool.add_serialized_file(descriptor_data)
28
- rescue TypeError
29
- # Compatibility code: will be removed in the next major version.
30
- require 'google/protobuf/descriptor_pb'
31
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
32
- parsed.clear_dependency
33
- serialized = parsed.class.encode(parsed)
34
- file = pool.add_serialized_file(serialized)
35
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
36
- imports = [
37
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
38
- ["google.cloud.run.v2.RevisionScaling", "google/cloud/run/v2/vendor_settings.proto"],
39
- ["google.protobuf.Duration", "google/protobuf/duration.proto"],
40
- ["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
41
- ["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
42
- ["google.cloud.run.v2.RevisionScalingStatus", "google/cloud/run/v2/status.proto"],
43
- ]
44
- imports.each do |type_name, expected_filename|
45
- import_file = pool.lookup(type_name).file_descriptor
46
- if import_file.name != expected_filename
47
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
48
- end
49
- end
50
- warn "Each proto file must use a consistent fully-qualified name."
51
- warn "This will become an error in the next major version."
52
- end
24
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
25
+ pool.add_serialized_file(descriptor_data)
53
26
 
54
27
  module Google
55
28
  module Cloud
@@ -13,32 +13,8 @@ require 'google/protobuf/duration_pb'
13
13
 
14
14
  descriptor_data = "\n+google/cloud/run/v2/revision_template.proto\x12\x13google.cloud.run.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a!google/cloud/run/v2/k8s.min.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/protobuf/duration.proto\"\xee\t\n\x10RevisionTemplate\x12\x35\n\x08revision\x18\x01 \x01(\tB#\xe0\x41\x01\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x46\n\x06labels\x18\x02 \x03(\x0b\x32\x31.google.cloud.run.v2.RevisionTemplate.LabelsEntryB\x03\xe0\x41\x01\x12P\n\x0b\x61nnotations\x18\x03 \x03(\x0b\x32\x36.google.cloud.run.v2.RevisionTemplate.AnnotationsEntryB\x03\xe0\x41\x01\x12:\n\x07scaling\x18\x04 \x01(\x0b\x32$.google.cloud.run.v2.RevisionScalingB\x03\xe0\x41\x01\x12\x37\n\nvpc_access\x18\x06 \x01(\x0b\x32\x1e.google.cloud.run.v2.VpcAccessB\x03\xe0\x41\x01\x12/\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1c\n\x0fservice_account\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x32\n\ncontainers\x18\n \x03(\x0b\x32\x1e.google.cloud.run.v2.Container\x12\x31\n\x07volumes\x18\x0b \x03(\x0b\x32\x1b.google.cloud.run.v2.VolumeB\x03\xe0\x41\x01\x12M\n\x15\x65xecution_environment\x18\r \x01(\x0e\x32).google.cloud.run.v2.ExecutionEnvironmentB\x03\xe0\x41\x01\x12>\n\x0e\x65ncryption_key\x18\x0e \x01(\tB&\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12-\n max_instance_request_concurrency\x18\x0f \x01(\x05\x42\x03\xe0\x41\x01\x12;\n\x0cservice_mesh\x18\x10 \x01(\x0b\x32 .google.cloud.run.v2.ServiceMeshB\x03\xe0\x41\x01\x12\x61\n encryption_key_revocation_action\x18\x11 \x01(\x0e\x32\x32.google.cloud.run.v2.EncryptionKeyRevocationActionB\x03\xe0\x41\x01\x12H\n encryption_key_shutdown_duration\x18\x12 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1d\n\x10session_affinity\x18\x13 \x01(\x08\x42\x03\xe0\x41\x01\x12\"\n\x15health_check_disabled\x18\x14 \x01(\x08\x42\x03\xe0\x41\x01\x12=\n\rnode_selector\x18\x15 \x01(\x0b\x32!.google.cloud.run.v2.NodeSelectorB\x03\xe0\x41\x01\x12/\n\x1dgpu_zonal_redundancy_disabled\x18\x18 \x01(\x08\x42\x03\xe0\x41\x01H\x00\x88\x01\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42 \n\x1e_gpu_zonal_redundancy_disabledB]\n\x17\x63om.google.cloud.run.v2B\x15RevisionTemplateProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
15
15
 
16
- pool = Google::Protobuf::DescriptorPool.generated_pool
17
-
18
- begin
19
- pool.add_serialized_file(descriptor_data)
20
- rescue TypeError
21
- # Compatibility code: will be removed in the next major version.
22
- require 'google/protobuf/descriptor_pb'
23
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
24
- parsed.clear_dependency
25
- serialized = parsed.class.encode(parsed)
26
- file = pool.add_serialized_file(serialized)
27
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
28
- imports = [
29
- ["google.cloud.run.v2.RevisionScaling", "google/cloud/run/v2/vendor_settings.proto"],
30
- ["google.protobuf.Duration", "google/protobuf/duration.proto"],
31
- ["google.cloud.run.v2.Container", "google/cloud/run/v2/k8s.min.proto"],
32
- ]
33
- imports.each do |type_name, expected_filename|
34
- import_file = pool.lookup(type_name).file_descriptor
35
- if import_file.name != expected_filename
36
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
37
- end
38
- end
39
- warn "Each proto file must use a consistent fully-qualified name."
40
- warn "This will become an error in the next major version."
41
- end
16
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
17
+ pool.add_serialized_file(descriptor_data)
42
18
 
43
19
  module Google
44
20
  module Cloud
@@ -548,8 +548,6 @@ module Google
548
548
  # @return [::String,nil]
549
549
  # @!attribute [rw] credentials
550
550
  # Credentials to send with calls. You may provide any of the following types:
551
- # * (`String`) The path to a service account key file in JSON format
552
- # * (`Hash`) A service account key as a Hash
553
551
  # * (`Google::Auth::Credentials`) A googleauth credentials object
554
552
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
555
553
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -558,7 +556,26 @@ module Google
558
556
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
559
557
  # * (`nil`) indicating no credentials
560
558
  #
561
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
559
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
560
+ # is deprecated. Providing an unvalidated credential configuration to
561
+ # Google APIs can compromise the security of your systems and data.
562
+ #
563
+ # @example
564
+ #
565
+ # # The recommended way to provide credentials is to use the `make_creds` method
566
+ # # on the appropriate credentials class for your environment.
567
+ #
568
+ # require "googleauth"
569
+ #
570
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
571
+ # json_key_io: ::File.open("/path/to/keyfile.json")
572
+ # )
573
+ #
574
+ # client = ::Google::Cloud::Run::V2::Revisions::Client.new do |config|
575
+ # config.credentials = credentials
576
+ # end
577
+ #
578
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
562
579
  # external source for authentication to Google Cloud, you must validate it before
563
580
  # providing it to a Google API client library. Providing an unvalidated credential
564
581
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -592,6 +609,7 @@ module Google
592
609
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
593
610
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
594
611
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
612
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
595
613
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
596
614
  # trigger a retry.
597
615
  # @return [::Hash]
@@ -675,6 +693,7 @@ module Google
675
693
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
676
694
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
677
695
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
696
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
678
697
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
679
698
  # trigger a retry.
680
699
  #
@@ -650,8 +650,6 @@ module Google
650
650
  # @return [::String,nil]
651
651
  # @!attribute [rw] credentials
652
652
  # Credentials to send with calls. You may provide any of the following types:
653
- # * (`String`) The path to a service account key file in JSON format
654
- # * (`Hash`) A service account key as a Hash
655
653
  # * (`Google::Auth::Credentials`) A googleauth credentials object
656
654
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
657
655
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -660,7 +658,26 @@ module Google
660
658
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
661
659
  # * (`nil`) indicating no credentials
662
660
  #
663
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
661
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
662
+ # is deprecated. Providing an unvalidated credential configuration to
663
+ # Google APIs can compromise the security of your systems and data.
664
+ #
665
+ # @example
666
+ #
667
+ # # The recommended way to provide credentials is to use the `make_creds` method
668
+ # # on the appropriate credentials class for your environment.
669
+ #
670
+ # require "googleauth"
671
+ #
672
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
673
+ # json_key_io: ::File.open("/path/to/keyfile.json")
674
+ # )
675
+ #
676
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
677
+ # config.credentials = credentials
678
+ # end
679
+ #
680
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
664
681
  # external source for authentication to Google Cloud, you must validate it before
665
682
  # providing it to a Google API client library. Providing an unvalidated credential
666
683
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -694,6 +711,7 @@ module Google
694
711
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
695
712
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
696
713
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
714
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
697
715
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
698
716
  # trigger a retry.
699
717
  # @return [::Hash]
@@ -777,6 +795,7 @@ module Google
777
795
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
778
796
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
779
797
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
798
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
780
799
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
781
800
  # trigger a retry.
782
801
  #
@@ -546,6 +546,7 @@ module Google
546
546
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
547
547
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
548
548
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
549
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
549
550
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
550
551
  # trigger a retry.
551
552
  # @return [::Hash]
@@ -618,6 +619,7 @@ module Google
618
619
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
619
620
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
620
621
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
622
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
621
623
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
622
624
  # trigger a retry.
623
625
  #
@@ -640,6 +640,7 @@ module Google
640
640
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
641
641
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
642
642
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
643
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
643
644
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
644
645
  # trigger a retry.
645
646
  # @return [::Hash]
@@ -712,6 +713,7 @@ module Google
712
713
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
713
714
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
714
715
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
716
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
715
717
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
716
718
  # trigger a retry.
717
719
  #
@@ -21,37 +21,10 @@ require 'google/protobuf/field_mask_pb'
21
21
  require 'google/protobuf/timestamp_pb'
22
22
 
23
23
 
24
- descriptor_data = "\n!google/cloud/run/v2/service.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a+google/cloud/run/v2/revision_template.proto\x1a(google/cloud/run/v2/traffic_target.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x01\n\x14\x43reateServiceRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x32\n\x07service\x18\x02 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x17\n\nservice_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x01\n\x14UpdateServiceRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x32\n\x07service\x18\x01 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x86\x01\n\x13ListServicesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"_\n\x14ListServicesResponse\x12.\n\x08services\x18\x01 \x03(\x0b\x32\x1c.google.cloud.run.v2.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"E\n\x11GetServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\"m\n\x14\x44\x65leteServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xbd\r\n\x07Service\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12=\n\x06labels\x18\x05 \x03(\x0b\x32(.google.cloud.run.v2.Service.LabelsEntryB\x03\xe0\x41\x01\x12G\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32-.google.cloud.run.v2.Service.AnnotationsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\r \x01(\t\x12\x16\n\x0e\x63lient_version\x18\x0e \x01(\t\x12\x39\n\x07ingress\x18\x0f \x01(\x0e\x32#.google.cloud.run.v2.IngressTrafficB\x03\xe0\x41\x01\x12\x32\n\x0claunch_stage\x18\x10 \x01(\x0e\x32\x17.google.api.LaunchStageB\x03\xe0\x41\x01\x12K\n\x14\x62inary_authorization\x18\x11 \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorizationB\x03\xe0\x41\x01\x12<\n\x08template\x18\x12 \x01(\x0b\x32%.google.cloud.run.v2.RevisionTemplateB\x03\xe0\x41\x02\x12\x38\n\x07traffic\x18\x13 \x03(\x0b\x32\".google.cloud.run.v2.TrafficTargetB\x03\xe0\x41\x01\x12\x39\n\x07scaling\x18\x14 \x01(\x0b\x32#.google.cloud.run.v2.ServiceScalingB\x03\xe0\x41\x01\x12!\n\x14invoker_iam_disabled\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14\x64\x65\x66\x61ult_uri_disabled\x18\x16 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04urls\x18\x18 \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x10\x63ustom_audiences\x18% \x03(\t\x12 \n\x13observed_generation\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x1f \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x42\n\x15latest_ready_revision\x18! \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x44\n\x17latest_created_revision\x18\" \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12G\n\x10traffic_statuses\x18# \x03(\x0b\x32(.google.cloud.run.v2.TrafficTargetStatusB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18& \x01(\x08\x42\x03\xe0\x41\x03\x12;\n\x0c\x62uild_config\x18) \x01(\x0b\x32 .google.cloud.run.v2.BuildConfigB\x03\xe0\x41\x01\x12\x18\n\x0breconciling\x18\x62 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:^\xea\x41[\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}R\x01\x01\x32\xcd\r\n\x08Services\x12\xfd\x01\n\rCreateService\x12).google.cloud.run.v2.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x19parent,service,service_id\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/locations/*}/services:\x07service\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xc3\x01\n\nGetService\x12&.google.cloud.run.v2.GetServiceRequest\x1a\x1c.google.cloud.run.v2.Service\"o\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xd5\x01\n\x0cListServices\x12(.google.cloud.run.v2.ListServicesRequest\x1a).google.cloud.run.v2.ListServicesResponse\"p\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/services\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\x92\x02\n\rUpdateService\x12).google.cloud.run.v2.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xb6\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x07service\xda\x41\x13service,update_mask\x82\xd3\xe4\x93\x02?24/v2/{service.name=projects/*/locations/*/services/*}:\x07service\x8a\xd3\xe4\x93\x02\x36\x12\x34\n\x0cservice.name\x12$projects/*/locations/{location=*}/**\x12\xe0\x01\n\rDeleteService\x12).google.cloud.run.v2.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\x90\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"E\x82\xd3\xe4\x93\x02?\x12=/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy\x12\x93\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x42\"=/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy:\x01*\x12\xb9\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{resource=projects/*/locations/*/services/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBT\n\x17\x63om.google.cloud.run.v2B\x0cServiceProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
24
+ descriptor_data = "\n!google/cloud/run/v2/service.proto\x12\x13google.cloud.run.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1dgoogle/api/launch_stage.proto\x1a\x19google/api/resource.proto\x1a\x18google/api/routing.proto\x1a#google/cloud/run/v2/condition.proto\x1a+google/cloud/run/v2/revision_template.proto\x1a(google/cloud/run/v2/traffic_target.proto\x1a)google/cloud/run/v2/vendor_settings.proto\x1a\x1egoogle/iam/v1/iam_policy.proto\x1a\x1agoogle/iam/v1/policy.proto\x1a#google/longrunning/operations.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xae\x01\n\x14\x43reateServiceRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x32\n\x07service\x18\x02 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x17\n\nservice_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x04 \x01(\x08\"\xb3\x01\n\x14UpdateServiceRequest\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x01\x12\x32\n\x07service\x18\x01 \x01(\x0b\x32\x1c.google.cloud.run.v2.ServiceB\x03\xe0\x41\x02\x12\x15\n\rvalidate_only\x18\x03 \x01(\x08\x12\x1a\n\rallow_missing\x18\x04 \x01(\x08\x42\x03\xe0\x41\x01\"\x86\x01\n\x13ListServicesRequest\x12\x32\n\x06parent\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\x12\x1arun.googleapis.com/Service\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\x12\x14\n\x0cshow_deleted\x18\x04 \x01(\x08\"y\n\x14ListServicesResponse\x12.\n\x08services\x18\x01 \x03(\x0b\x32\x1c.google.cloud.run.v2.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x03\"E\n\x11GetServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\"m\n\x14\x44\x65leteServiceRequest\x12\x30\n\x04name\x18\x01 \x01(\tB\"\xe0\x41\x02\xfa\x41\x1c\n\x1arun.googleapis.com/Service\x12\x15\n\rvalidate_only\x18\x02 \x01(\x08\x12\x0c\n\x04\x65tag\x18\x03 \x01(\t\"\xa4\x0f\n\x07Service\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x10\n\x03uid\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x17\n\ngeneration\x18\x04 \x01(\x03\x42\x03\xe0\x41\x03\x12=\n\x06labels\x18\x05 \x03(\x0b\x32(.google.cloud.run.v2.Service.LabelsEntryB\x03\xe0\x41\x01\x12G\n\x0b\x61nnotations\x18\x06 \x03(\x0b\x32-.google.cloud.run.v2.Service.AnnotationsEntryB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x64\x65lete_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0b\x65xpire_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rlast_modifier\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x0e\n\x06\x63lient\x18\r \x01(\t\x12\x16\n\x0e\x63lient_version\x18\x0e \x01(\t\x12\x39\n\x07ingress\x18\x0f \x01(\x0e\x32#.google.cloud.run.v2.IngressTrafficB\x03\xe0\x41\x01\x12\x32\n\x0claunch_stage\x18\x10 \x01(\x0e\x32\x17.google.api.LaunchStageB\x03\xe0\x41\x01\x12K\n\x14\x62inary_authorization\x18\x11 \x01(\x0b\x32(.google.cloud.run.v2.BinaryAuthorizationB\x03\xe0\x41\x01\x12<\n\x08template\x18\x12 \x01(\x0b\x32%.google.cloud.run.v2.RevisionTemplateB\x03\xe0\x41\x02\x12\x38\n\x07traffic\x18\x13 \x03(\x0b\x32\".google.cloud.run.v2.TrafficTargetB\x03\xe0\x41\x01\x12\x39\n\x07scaling\x18\x14 \x01(\x0b\x32#.google.cloud.run.v2.ServiceScalingB\x03\xe0\x41\x01\x12!\n\x14invoker_iam_disabled\x18\x15 \x01(\x08\x42\x03\xe0\x41\x01\x12!\n\x14\x64\x65\x66\x61ult_uri_disabled\x18\x16 \x01(\x08\x42\x03\xe0\x41\x01\x12\x11\n\x04urls\x18\x18 \x03(\tB\x03\xe0\x41\x03\x12\x18\n\x0biap_enabled\x18\x19 \x01(\x08\x42\x03\xe0\x41\x01\x12T\n\x15multi_region_settings\x18\x1a \x01(\x0b\x32\x30.google.cloud.run.v2.Service.MultiRegionSettingsB\x03\xe0\x41\x01\x12\x18\n\x10\x63ustom_audiences\x18% \x03(\t\x12 \n\x13observed_generation\x18\x1e \x01(\x03\x42\x03\xe0\x41\x03\x12?\n\x12terminal_condition\x18\x1f \x01(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x37\n\nconditions\x18 \x03(\x0b\x32\x1e.google.cloud.run.v2.ConditionB\x03\xe0\x41\x03\x12\x42\n\x15latest_ready_revision\x18! \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12\x44\n\x17latest_created_revision\x18\" \x01(\tB#\xe0\x41\x03\xfa\x41\x1d\n\x1brun.googleapis.com/Revision\x12G\n\x10traffic_statuses\x18# \x03(\x0b\x32(.google.cloud.run.v2.TrafficTargetStatusB\x03\xe0\x41\x03\x12\x10\n\x03uri\x18$ \x01(\tB\x03\xe0\x41\x03\x12\x1a\n\rsatisfies_pzs\x18& \x01(\x08\x42\x03\xe0\x41\x03\x12%\n\x18threat_detection_enabled\x18( \x01(\x08\x42\x03\xe0\x41\x03\x12;\n\x0c\x62uild_config\x18) \x01(\x0b\x32 .google.cloud.run.v2.BuildConfigB\x03\xe0\x41\x01\x12\x18\n\x0breconciling\x18\x62 \x01(\x08\x42\x03\xe0\x41\x03\x12\x11\n\x04\x65tag\x18\x63 \x01(\tB\x03\xe0\x41\x01\x1aI\n\x13MultiRegionSettings\x12\x14\n\x07regions\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12\x1c\n\x0fmulti_region_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x32\n\x10\x41nnotationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:^\xea\x41[\n\x1arun.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}R\x01\x01\x32\xcd\r\n\x08Services\x12\xfd\x01\n\rCreateService\x12).google.cloud.run.v2.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x19parent,service,service_id\x82\xd3\xe4\x93\x02\x37\",/v2/{parent=projects/*/locations/*}/services:\x07service\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\xc3\x01\n\nGetService\x12&.google.cloud.run.v2.GetServiceRequest\x1a\x1c.google.cloud.run.v2.Service\"o\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\xd5\x01\n\x0cListServices\x12(.google.cloud.run.v2.ListServicesRequest\x1a).google.cloud.run.v2.ListServicesResponse\"p\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v2/{parent=projects/*/locations/*}/services\x8a\xd3\xe4\x93\x02-\x12+\n\x06parent\x12!projects/*/locations/{location=*}\x12\x92\x02\n\rUpdateService\x12).google.cloud.run.v2.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\xb6\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x07service\xda\x41\x13service,update_mask\x82\xd3\xe4\x93\x02?24/v2/{service.name=projects/*/locations/*/services/*}:\x07service\x8a\xd3\xe4\x93\x02\x36\x12\x34\n\x0cservice.name\x12$projects/*/locations/{location=*}/**\x12\xe0\x01\n\rDeleteService\x12).google.cloud.run.v2.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x84\x01\xca\x41\x12\n\x07Service\x12\x07Service\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v2/{name=projects/*/locations/*/services/*}\x8a\xd3\xe4\x93\x02.\x12,\n\x04name\x12$projects/*/locations/{location=*}/**\x12\x90\x01\n\x0cGetIamPolicy\x12\".google.iam.v1.GetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"E\x82\xd3\xe4\x93\x02?\x12=/v2/{resource=projects/*/locations/*/services/*}:getIamPolicy\x12\x93\x01\n\x0cSetIamPolicy\x12\".google.iam.v1.SetIamPolicyRequest\x1a\x15.google.iam.v1.Policy\"H\x82\xd3\xe4\x93\x02\x42\"=/v2/{resource=projects/*/locations/*/services/*}:setIamPolicy:\x01*\x12\xb9\x01\n\x12TestIamPermissions\x12(.google.iam.v1.TestIamPermissionsRequest\x1a).google.iam.v1.TestIamPermissionsResponse\"N\x82\xd3\xe4\x93\x02H\"C/v2/{resource=projects/*/locations/*/services/*}:testIamPermissions:\x01*\x1a\x46\xca\x41\x12run.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBT\n\x17\x63om.google.cloud.run.v2B\x0cServiceProtoP\x01Z)cloud.google.com/go/run/apiv2/runpb;runpbb\x06proto3"
25
25
 
26
- pool = Google::Protobuf::DescriptorPool.generated_pool
27
-
28
- begin
29
- pool.add_serialized_file(descriptor_data)
30
- rescue TypeError
31
- # Compatibility code: will be removed in the next major version.
32
- require 'google/protobuf/descriptor_pb'
33
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
34
- parsed.clear_dependency
35
- serialized = parsed.class.encode(parsed)
36
- file = pool.add_serialized_file(serialized)
37
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
38
- imports = [
39
- ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
40
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
41
- ["google.cloud.run.v2.BinaryAuthorization", "google/cloud/run/v2/vendor_settings.proto"],
42
- ["google.cloud.run.v2.RevisionTemplate", "google/cloud/run/v2/revision_template.proto"],
43
- ["google.cloud.run.v2.TrafficTarget", "google/cloud/run/v2/traffic_target.proto"],
44
- ["google.cloud.run.v2.Condition", "google/cloud/run/v2/condition.proto"],
45
- ]
46
- imports.each do |type_name, expected_filename|
47
- import_file = pool.lookup(type_name).file_descriptor
48
- if import_file.name != expected_filename
49
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
50
- end
51
- end
52
- warn "Each proto file must use a consistent fully-qualified name."
53
- warn "This will become an error in the next major version."
54
- end
26
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
27
+ pool.add_serialized_file(descriptor_data)
55
28
 
56
29
  module Google
57
30
  module Cloud
@@ -64,6 +37,7 @@ module Google
64
37
  GetServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.GetServiceRequest").msgclass
65
38
  DeleteServiceRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.DeleteServiceRequest").msgclass
66
39
  Service = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Service").msgclass
40
+ Service::MultiRegionSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.run.v2.Service.MultiRegionSettings").msgclass
67
41
  end
68
42
  end
69
43
  end
@@ -1060,8 +1060,6 @@ module Google
1060
1060
  # @return [::String,nil]
1061
1061
  # @!attribute [rw] credentials
1062
1062
  # Credentials to send with calls. You may provide any of the following types:
1063
- # * (`String`) The path to a service account key file in JSON format
1064
- # * (`Hash`) A service account key as a Hash
1065
1063
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1066
1064
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1067
1065
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -1070,7 +1068,26 @@ module Google
1070
1068
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1071
1069
  # * (`nil`) indicating no credentials
1072
1070
  #
1073
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
1071
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
1072
+ # is deprecated. Providing an unvalidated credential configuration to
1073
+ # Google APIs can compromise the security of your systems and data.
1074
+ #
1075
+ # @example
1076
+ #
1077
+ # # The recommended way to provide credentials is to use the `make_creds` method
1078
+ # # on the appropriate credentials class for your environment.
1079
+ #
1080
+ # require "googleauth"
1081
+ #
1082
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
1083
+ # json_key_io: ::File.open("/path/to/keyfile.json")
1084
+ # )
1085
+ #
1086
+ # client = ::Google::Cloud::Run::V2::Services::Client.new do |config|
1087
+ # config.credentials = credentials
1088
+ # end
1089
+ #
1090
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
1074
1091
  # external source for authentication to Google Cloud, you must validate it before
1075
1092
  # providing it to a Google API client library. Providing an unvalidated credential
1076
1093
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -1104,6 +1121,7 @@ module Google
1104
1121
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1105
1122
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1106
1123
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1124
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1107
1125
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1108
1126
  # trigger a retry.
1109
1127
  # @return [::Hash]
@@ -1187,6 +1205,7 @@ module Google
1187
1205
  # * `:initial_delay` (*type:* `Numeric`) - The initial delay in seconds.
1188
1206
  # * `:max_delay` (*type:* `Numeric`) - The max delay in seconds.
1189
1207
  # * `:multiplier` (*type:* `Numeric`) - The incremental backoff multiplier.
1208
+ # * `:jitter` (*type:* `Numeric`) - The jitter in seconds. Default: 1.0.
1190
1209
  # * `:retry_codes` (*type:* `Array<String>`) - The error codes that should
1191
1210
  # trigger a retry.
1192
1211
  #