google-cloud-batch-v1 0.7.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/batch/v1/task.proto
3
4
 
@@ -8,102 +9,34 @@ require 'google/cloud/batch/v1/volume_pb'
8
9
  require 'google/protobuf/duration_pb'
9
10
  require 'google/protobuf/timestamp_pb'
10
11
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/cloud/batch/v1/task.proto", :syntax => :proto3) do
13
- add_message "google.cloud.batch.v1.ComputeResource" do
14
- optional :cpu_milli, :int64, 1
15
- optional :memory_mib, :int64, 2
16
- optional :boot_disk_mib, :int64, 4
17
- end
18
- add_message "google.cloud.batch.v1.StatusEvent" do
19
- optional :type, :string, 3
20
- optional :description, :string, 1
21
- optional :event_time, :message, 2, "google.protobuf.Timestamp"
22
- optional :task_execution, :message, 4, "google.cloud.batch.v1.TaskExecution"
23
- optional :task_state, :enum, 5, "google.cloud.batch.v1.TaskStatus.State"
24
- end
25
- add_message "google.cloud.batch.v1.TaskExecution" do
26
- optional :exit_code, :int32, 1
27
- end
28
- add_message "google.cloud.batch.v1.TaskStatus" do
29
- optional :state, :enum, 1, "google.cloud.batch.v1.TaskStatus.State"
30
- repeated :status_events, :message, 2, "google.cloud.batch.v1.StatusEvent"
31
- end
32
- add_enum "google.cloud.batch.v1.TaskStatus.State" do
33
- value :STATE_UNSPECIFIED, 0
34
- value :PENDING, 1
35
- value :ASSIGNED, 2
36
- value :RUNNING, 3
37
- value :FAILED, 4
38
- value :SUCCEEDED, 5
39
- end
40
- add_message "google.cloud.batch.v1.Runnable" do
41
- optional :ignore_exit_status, :bool, 3
42
- optional :background, :bool, 4
43
- optional :always_run, :bool, 5
44
- optional :environment, :message, 7, "google.cloud.batch.v1.Environment"
45
- optional :timeout, :message, 8, "google.protobuf.Duration"
46
- oneof :executable do
47
- optional :container, :message, 1, "google.cloud.batch.v1.Runnable.Container"
48
- optional :script, :message, 2, "google.cloud.batch.v1.Runnable.Script"
49
- optional :barrier, :message, 6, "google.cloud.batch.v1.Runnable.Barrier"
50
- end
51
- end
52
- add_message "google.cloud.batch.v1.Runnable.Container" do
53
- optional :image_uri, :string, 1
54
- repeated :commands, :string, 2
55
- optional :entrypoint, :string, 3
56
- repeated :volumes, :string, 7
57
- optional :options, :string, 8
58
- optional :block_external_network, :bool, 9
59
- optional :username, :string, 10
60
- optional :password, :string, 11
61
- end
62
- add_message "google.cloud.batch.v1.Runnable.Script" do
63
- oneof :command do
64
- optional :path, :string, 1
65
- optional :text, :string, 2
66
- end
67
- end
68
- add_message "google.cloud.batch.v1.Runnable.Barrier" do
69
- optional :name, :string, 1
70
- end
71
- add_message "google.cloud.batch.v1.TaskSpec" do
72
- repeated :runnables, :message, 8, "google.cloud.batch.v1.Runnable"
73
- optional :compute_resource, :message, 3, "google.cloud.batch.v1.ComputeResource"
74
- optional :max_run_duration, :message, 4, "google.protobuf.Duration"
75
- optional :max_retry_count, :int32, 5
76
- repeated :lifecycle_policies, :message, 9, "google.cloud.batch.v1.LifecyclePolicy"
77
- map :environments, :string, :string, 6
78
- repeated :volumes, :message, 7, "google.cloud.batch.v1.Volume"
79
- optional :environment, :message, 10, "google.cloud.batch.v1.Environment"
80
- end
81
- add_message "google.cloud.batch.v1.LifecyclePolicy" do
82
- optional :action, :enum, 1, "google.cloud.batch.v1.LifecyclePolicy.Action"
83
- optional :action_condition, :message, 2, "google.cloud.batch.v1.LifecyclePolicy.ActionCondition"
84
- end
85
- add_message "google.cloud.batch.v1.LifecyclePolicy.ActionCondition" do
86
- repeated :exit_codes, :int32, 1
87
- end
88
- add_enum "google.cloud.batch.v1.LifecyclePolicy.Action" do
89
- value :ACTION_UNSPECIFIED, 0
90
- value :RETRY_TASK, 1
91
- value :FAIL_TASK, 2
92
- end
93
- add_message "google.cloud.batch.v1.Task" do
94
- optional :name, :string, 1
95
- optional :status, :message, 2, "google.cloud.batch.v1.TaskStatus"
96
- end
97
- add_message "google.cloud.batch.v1.Environment" do
98
- map :variables, :string, :string, 1
99
- map :secret_variables, :string, :string, 2
100
- optional :encrypted_variables, :message, 3, "google.cloud.batch.v1.Environment.KMSEnvMap"
101
- end
102
- add_message "google.cloud.batch.v1.Environment.KMSEnvMap" do
103
- optional :key_name, :string, 1
104
- optional :cipher_text, :string, 2
12
+
13
+ descriptor_data = "\n google/cloud/batch/v1/task.proto\x12\x15google.cloud.batch.v1\x1a\x19google/api/resource.proto\x1a\"google/cloud/batch/v1/volume.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"O\n\x0f\x43omputeResource\x12\x11\n\tcpu_milli\x18\x01 \x01(\x03\x12\x12\n\nmemory_mib\x18\x02 \x01(\x03\x12\x15\n\rboot_disk_mib\x18\x04 \x01(\x03\"\xdb\x01\n\x0bStatusEvent\x12\x0c\n\x04type\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x01 \x01(\t\x12.\n\nevent_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12<\n\x0etask_execution\x18\x04 \x01(\x0b\x32$.google.cloud.batch.v1.TaskExecution\x12;\n\ntask_state\x18\x05 \x01(\x0e\x32\'.google.cloud.batch.v1.TaskStatus.State\"\"\n\rTaskExecution\x12\x11\n\texit_code\x18\x01 \x01(\x05\"\xf2\x01\n\nTaskStatus\x12\x36\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.batch.v1.TaskStatus.State\x12\x39\n\rstatus_events\x18\x02 \x03(\x0b\x32\".google.cloud.batch.v1.StatusEvent\"q\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0c\n\x08\x41SSIGNED\x10\x02\x12\x0b\n\x07RUNNING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\x0e\n\nUNEXECUTED\x10\x06\"\xde\x05\n\x08Runnable\x12>\n\tcontainer\x18\x01 \x01(\x0b\x32).google.cloud.batch.v1.Runnable.ContainerH\x00\x12\x38\n\x06script\x18\x02 \x01(\x0b\x32&.google.cloud.batch.v1.Runnable.ScriptH\x00\x12:\n\x07\x62\x61rrier\x18\x06 \x01(\x0b\x32\'.google.cloud.batch.v1.Runnable.BarrierH\x00\x12\x1a\n\x12ignore_exit_status\x18\x03 \x01(\x08\x12\x12\n\nbackground\x18\x04 \x01(\x08\x12\x12\n\nalways_run\x18\x05 \x01(\x08\x12\x37\n\x0b\x65nvironment\x18\x07 \x01(\x0b\x32\".google.cloud.batch.v1.Environment\x12*\n\x07timeout\x18\x08 \x01(\x0b\x32\x19.google.protobuf.Duration\x12;\n\x06labels\x18\t \x03(\x0b\x32+.google.cloud.batch.v1.Runnable.LabelsEntry\x1a\xaa\x01\n\tContainer\x12\x11\n\timage_uri\x18\x01 \x01(\t\x12\x10\n\x08\x63ommands\x18\x02 \x03(\t\x12\x12\n\nentrypoint\x18\x03 \x01(\t\x12\x0f\n\x07volumes\x18\x07 \x03(\t\x12\x0f\n\x07options\x18\x08 \x01(\t\x12\x1e\n\x16\x62lock_external_network\x18\t \x01(\x08\x12\x10\n\x08username\x18\n \x01(\t\x12\x10\n\x08password\x18\x0b \x01(\t\x1a\x33\n\x06Script\x12\x0e\n\x04path\x18\x01 \x01(\tH\x00\x12\x0e\n\x04text\x18\x02 \x01(\tH\x00\x42\t\n\x07\x63ommand\x1a\x17\n\x07\x42\x61rrier\x12\x0c\n\x04name\x18\x01 \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\x0c\n\nexecutable\"\xfd\x03\n\x08TaskSpec\x12\x32\n\trunnables\x18\x08 \x03(\x0b\x32\x1f.google.cloud.batch.v1.Runnable\x12@\n\x10\x63ompute_resource\x18\x03 \x01(\x0b\x32&.google.cloud.batch.v1.ComputeResource\x12\x33\n\x10max_run_duration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x17\n\x0fmax_retry_count\x18\x05 \x01(\x05\x12\x42\n\x12lifecycle_policies\x18\t \x03(\x0b\x32&.google.cloud.batch.v1.LifecyclePolicy\x12K\n\x0c\x65nvironments\x18\x06 \x03(\x0b\x32\x31.google.cloud.batch.v1.TaskSpec.EnvironmentsEntryB\x02\x18\x01\x12.\n\x07volumes\x18\x07 \x03(\x0b\x32\x1d.google.cloud.batch.v1.Volume\x12\x37\n\x0b\x65nvironment\x18\n \x01(\x0b\x32\".google.cloud.batch.v1.Environment\x1a\x33\n\x11\x45nvironmentsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x8a\x02\n\x0fLifecyclePolicy\x12=\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32-.google.cloud.batch.v1.LifecyclePolicy.Action\x12P\n\x10\x61\x63tion_condition\x18\x02 \x01(\x0b\x32\x36.google.cloud.batch.v1.LifecyclePolicy.ActionCondition\x1a%\n\x0f\x41\x63tionCondition\x12\x12\n\nexit_codes\x18\x01 \x03(\x05\"?\n\x06\x41\x63tion\x12\x16\n\x12\x41\x43TION_UNSPECIFIED\x10\x00\x12\x0e\n\nRETRY_TASK\x10\x01\x12\r\n\tFAIL_TASK\x10\x02\"\xc0\x01\n\x04Task\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x31\n\x06status\x18\x02 \x01(\x0b\x32!.google.cloud.batch.v1.TaskStatus:w\xea\x41t\n\x19\x62\x61tch.googleapis.com/Task\x12Wprojects/{project}/locations/{location}/jobs/{job}/taskGroups/{task_group}/tasks/{task}\"\x8f\x03\n\x0b\x45nvironment\x12\x44\n\tvariables\x18\x01 \x03(\x0b\x32\x31.google.cloud.batch.v1.Environment.VariablesEntry\x12Q\n\x10secret_variables\x18\x02 \x03(\x0b\x32\x37.google.cloud.batch.v1.Environment.SecretVariablesEntry\x12I\n\x13\x65ncrypted_variables\x18\x03 \x01(\x0b\x32,.google.cloud.batch.v1.Environment.KMSEnvMap\x1a\x32\n\tKMSEnvMap\x12\x10\n\x08key_name\x18\x01 \x01(\t\x12\x13\n\x0b\x63ipher_text\x18\x02 \x01(\t\x1a\x30\n\x0eVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x36\n\x14SecretVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\xaa\x01\n\x19\x63om.google.cloud.batch.v1B\tTaskProtoP\x01Z/cloud.google.com/go/batch/apiv1/batchpb;batchpb\xa2\x02\x03GCB\xaa\x02\x15Google.Cloud.Batch.V1\xca\x02\x15Google\\Cloud\\Batch\\V1\xea\x02\x18Google::Cloud::Batch::V1b\x06proto3"
14
+
15
+ pool = Google::Protobuf::DescriptorPool.generated_pool
16
+
17
+ begin
18
+ pool.add_serialized_file(descriptor_data)
19
+ rescue TypeError => e
20
+ # Compatibility code: will be removed in the next major version.
21
+ require 'google/protobuf/descriptor_pb'
22
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
23
+ parsed.clear_dependency
24
+ serialized = parsed.class.encode(parsed)
25
+ file = pool.add_serialized_file(serialized)
26
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
27
+ imports = [
28
+ ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
29
+ ["google.protobuf.Duration", "google/protobuf/duration.proto"],
30
+ ["google.cloud.batch.v1.Volume", "google/cloud/batch/v1/volume.proto"],
31
+ ]
32
+ imports.each do |type_name, expected_filename|
33
+ import_file = pool.lookup(type_name).file_descriptor
34
+ if import_file.name != expected_filename
35
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
105
36
  end
106
37
  end
38
+ warn "Each proto file must use a consistent fully-qualified name."
39
+ warn "This will become an error in the next major version."
107
40
  end
108
41
 
109
42
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Batch
23
23
  module V1
24
- VERSION = "0.7.0"
24
+ VERSION = "0.9.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,27 +1,34 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/cloud/batch/v1/volume.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
- Google::Protobuf::DescriptorPool.generated_pool.build do
7
- add_file("google/cloud/batch/v1/volume.proto", :syntax => :proto3) do
8
- add_message "google.cloud.batch.v1.Volume" do
9
- optional :mount_path, :string, 4
10
- repeated :mount_options, :string, 5
11
- oneof :source do
12
- optional :nfs, :message, 1, "google.cloud.batch.v1.NFS"
13
- optional :gcs, :message, 3, "google.cloud.batch.v1.GCS"
14
- optional :device_name, :string, 6
15
- end
16
- end
17
- add_message "google.cloud.batch.v1.NFS" do
18
- optional :server, :string, 1
19
- optional :remote_path, :string, 2
20
- end
21
- add_message "google.cloud.batch.v1.GCS" do
22
- optional :remote_path, :string, 1
7
+
8
+ descriptor_data = "\n\"google/cloud/batch/v1/volume.proto\x12\x15google.cloud.batch.v1\"\xaa\x01\n\x06Volume\x12)\n\x03nfs\x18\x01 \x01(\x0b\x32\x1a.google.cloud.batch.v1.NFSH\x00\x12)\n\x03gcs\x18\x03 \x01(\x0b\x32\x1a.google.cloud.batch.v1.GCSH\x00\x12\x15\n\x0b\x64\x65vice_name\x18\x06 \x01(\tH\x00\x12\x12\n\nmount_path\x18\x04 \x01(\t\x12\x15\n\rmount_options\x18\x05 \x03(\tB\x08\n\x06source\"*\n\x03NFS\x12\x0e\n\x06server\x18\x01 \x01(\t\x12\x13\n\x0bremote_path\x18\x02 \x01(\t\"\x1a\n\x03GCS\x12\x13\n\x0bremote_path\x18\x01 \x01(\tB\xac\x01\n\x19\x63om.google.cloud.batch.v1B\x0bVolumeProtoP\x01Z/cloud.google.com/go/batch/apiv1/batchpb;batchpb\xa2\x02\x03GCB\xaa\x02\x15Google.Cloud.Batch.V1\xca\x02\x15Google\\Cloud\\Batch\\V1\xea\x02\x18Google::Cloud::Batch::V1b\x06proto3"
9
+
10
+ pool = Google::Protobuf::DescriptorPool.generated_pool
11
+
12
+ begin
13
+ pool.add_serialized_file(descriptor_data)
14
+ rescue TypeError => e
15
+ # Compatibility code: will be removed in the next major version.
16
+ require 'google/protobuf/descriptor_pb'
17
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
18
+ parsed.clear_dependency
19
+ serialized = parsed.class.encode(parsed)
20
+ file = pool.add_serialized_file(serialized)
21
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
22
+ imports = [
23
+ ]
24
+ imports.each do |type_name, expected_filename|
25
+ import_file = pool.lookup(type_name).file_descriptor
26
+ if import_file.name != expected_filename
27
+ warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
23
28
  end
24
29
  end
30
+ warn "Each proto file must use a consistent fully-qualified name."
31
+ warn "This will become an error in the next major version."
25
32
  end
26
33
 
27
34
  module Google
@@ -146,7 +146,7 @@ module Google
146
146
  credentials = @config.credentials
147
147
  # Use self-signed JWT if the endpoint is unchanged from default,
148
148
  # but only if the default endpoint does not have a region prefix.
149
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
149
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
150
150
  !@config.endpoint.split(".").first.include?("-")
151
151
  credentials ||= Credentials.default scope: @config.scope,
152
152
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -506,9 +506,9 @@ module Google
506
506
  # * (`String`) The path to a service account key file in JSON format
507
507
  # * (`Hash`) A service account key as a Hash
508
508
  # * (`Google::Auth::Credentials`) A googleauth credentials object
509
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
509
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
510
510
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
511
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
511
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
512
512
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
513
513
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
514
514
  # * (`nil`) indicating no credentials
@@ -550,7 +550,9 @@ module Google
550
550
  class Configuration
551
551
  extend ::Gapic::Config
552
552
 
553
- config_attr :endpoint, "iam-meta-api.googleapis.com", ::String
553
+ DEFAULT_ENDPOINT = "iam-meta-api.googleapis.com"
554
+
555
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
554
556
  config_attr :credentials, nil do |value|
555
557
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
556
558
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -142,7 +142,7 @@ module Google
142
142
  credentials = @config.credentials
143
143
  # Use self-signed JWT if the endpoint is unchanged from default,
144
144
  # but only if the default endpoint does not have a region prefix.
145
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
146
146
  !@config.endpoint.split(".").first.include?("-")
147
147
  credentials ||= Credentials.default scope: @config.scope,
148
148
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -429,9 +429,9 @@ module Google
429
429
  # * (`String`) The path to a service account key file in JSON format
430
430
  # * (`Hash`) A service account key as a Hash
431
431
  # * (`Google::Auth::Credentials`) A googleauth credentials object
432
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
432
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
433
433
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
434
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
434
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
435
435
  # * (`nil`) indicating no credentials
436
436
  # @return [::Object]
437
437
  # @!attribute [rw] scope
@@ -464,7 +464,9 @@ module Google
464
464
  class Configuration
465
465
  extend ::Gapic::Config
466
466
 
467
- config_attr :endpoint, "iam-meta-api.googleapis.com", ::String
467
+ DEFAULT_ENDPOINT = "iam-meta-api.googleapis.com"
468
+
469
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
468
470
  config_attr :credentials, nil do |value|
469
471
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
470
472
  allowed.any? { |klass| klass === value }
@@ -58,7 +58,7 @@ module Google
58
58
 
59
59
  verb, uri, query_string_params, body = ServiceStub.transcode_set_iam_policy_request request_pb
60
60
  query_string_params = if query_string_params.any?
61
- query_string_params.to_h { |p| p.split("=", 2) }
61
+ query_string_params.to_h { |p| p.split "=", 2 }
62
62
  else
63
63
  {}
64
64
  end
@@ -96,7 +96,7 @@ module Google
96
96
 
97
97
  verb, uri, query_string_params, body = ServiceStub.transcode_get_iam_policy_request request_pb
98
98
  query_string_params = if query_string_params.any?
99
- query_string_params.to_h { |p| p.split("=", 2) }
99
+ query_string_params.to_h { |p| p.split "=", 2 }
100
100
  else
101
101
  {}
102
102
  end
@@ -134,7 +134,7 @@ module Google
134
134
 
135
135
  verb, uri, query_string_params, body = ServiceStub.transcode_test_iam_permissions_request request_pb
136
136
  query_string_params = if query_string_params.any?
137
- query_string_params.to_h { |p| p.split("=", 2) }
137
+ query_string_params.to_h { |p| p.split "=", 2 }
138
138
  else
139
139
  {}
140
140
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -275,6 +275,9 @@ module Google
275
275
  # @!attribute [rw] network
276
276
  # @return [::Google::Cloud::Batch::V1::AllocationPolicy::NetworkPolicy]
277
277
  # The network policy.
278
+ # @!attribute [rw] placement
279
+ # @return [::Google::Cloud::Batch::V1::AllocationPolicy::PlacementPolicy]
280
+ # The placement policy.
278
281
  class AllocationPolicy
279
282
  include ::Google::Protobuf::MessageExts
280
283
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -282,12 +285,14 @@ module Google
282
285
  # @!attribute [rw] allowed_locations
283
286
  # @return [::Array<::String>]
284
287
  # A list of allowed location names represented by internal URLs.
288
+ #
285
289
  # Each location can be a region or a zone.
286
290
  # Only one region or multiple zones in one region is supported now.
287
291
  # For example,
288
292
  # ["regions/us-central1"] allow VMs in any zones in region us-central1.
289
293
  # ["zones/us-central1-a", "zones/us-central1-c"] only allow VMs
290
294
  # in zones us-central1-a and us-central1-c.
295
+ #
291
296
  # All locations end up in different regions would cause errors.
292
297
  # For example,
293
298
  # ["regions/us-central1", "zones/us-central1-a", "zones/us-central1-b",
@@ -300,24 +305,28 @@ module Google
300
305
 
301
306
  # A new persistent disk or a local ssd.
302
307
  # A VM can only have one local SSD setting but multiple local SSD partitions.
303
- # https://cloud.google.com/compute/docs/disks#pdspecs.
308
+ # See https://cloud.google.com/compute/docs/disks#pdspecs and
304
309
  # https://cloud.google.com/compute/docs/disks#localssds.
305
310
  # @!attribute [rw] image
306
311
  # @return [::String]
307
312
  # Name of a public or custom image used as the data source.
308
313
  # For example, the following are all valid URLs:
309
- # (1) Specify the image by its family name:
314
+ #
315
+ # * Specify the image by its family name:
310
316
  # projects/\\{project}/global/images/family/\\{image_family}
311
- # (2) Specify the image version:
317
+ # * Specify the image version:
312
318
  # projects/\\{project}/global/images/\\{image_version}
319
+ #
313
320
  # You can also use Batch customized image in short names.
314
321
  # The following image values are supported for a boot disk:
315
- # "batch-debian": use Batch Debian images.
316
- # "batch-centos": use Batch CentOS images.
317
- # "batch-cos": use Batch Container-Optimized images.
322
+ #
323
+ # * "batch-debian": use Batch Debian images.
324
+ # * "batch-centos": use Batch CentOS images.
325
+ # * "batch-cos": use Batch Container-Optimized images.
318
326
  # @!attribute [rw] snapshot
319
327
  # @return [::String]
320
328
  # Name of a snapshot used as the data source.
329
+ # Snapshot is not supported as boot disk now.
321
330
  # @!attribute [rw] type
322
331
  # @return [::String]
323
332
  # Disk type as shown in `gcloud compute disk-types list`.
@@ -327,6 +336,7 @@ module Google
327
336
  # @!attribute [rw] size_gb
328
337
  # @return [::Integer]
329
338
  # Disk size in GB.
339
+ #
330
340
  # For persistent disk, this field is ignored if `data_source` is `image` or
331
341
  # `snapshot`.
332
342
  # For local SSD, size_gb should be a multiple of 375GB,
@@ -388,7 +398,7 @@ module Google
388
398
  # @return [::String]
389
399
  # The minimum CPU platform.
390
400
  # See
391
- # `https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform`.
401
+ # https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
392
402
  # Not yet implemented.
393
403
  # @!attribute [rw] provisioning_model
394
404
  # @return [::Google::Cloud::Batch::V1::AllocationPolicy::ProvisioningModel]
@@ -398,8 +408,9 @@ module Google
398
408
  # The accelerators attached to each VM instance.
399
409
  # @!attribute [rw] boot_disk
400
410
  # @return [::Google::Cloud::Batch::V1::AllocationPolicy::Disk]
401
- # Book disk to be created and attached to each VM by this InstancePolicy.
411
+ # Boot disk to be created and attached to each VM by this InstancePolicy.
402
412
  # Boot disk will be deleted when the VM is deleted.
413
+ # Batch API now only supports booting from image.
403
414
  # @!attribute [rw] disks
404
415
  # @return [::Array<::Google::Cloud::Batch::V1::AllocationPolicy::AttachedDisk>]
405
416
  # Non-boot disks to be attached for each VM created by this InstancePolicy.
@@ -434,18 +445,22 @@ module Google
434
445
  # @return [::String]
435
446
  # The URL of an existing network resource.
436
447
  # You can specify the network as a full or partial URL.
448
+ #
437
449
  # For example, the following are all valid URLs:
438
- # https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
439
- # projects/\\{project}/global/networks/\\{network}
440
- # global/networks/\\{network}
450
+ #
451
+ # * https://www.googleapis.com/compute/v1/projects/\\{project}/global/networks/\\{network}
452
+ # * projects/\\{project}/global/networks/\\{network}
453
+ # * global/networks/\\{network}
441
454
  # @!attribute [rw] subnetwork
442
455
  # @return [::String]
443
456
  # The URL of an existing subnetwork resource in the network.
444
457
  # You can specify the subnetwork as a full or partial URL.
458
+ #
445
459
  # For example, the following are all valid URLs:
446
- # https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
447
- # projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
448
- # regions/\\{region}/subnetworks/\\{subnetwork}
460
+ #
461
+ # * https://www.googleapis.com/compute/v1/projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
462
+ # * projects/\\{project}/regions/\\{region}/subnetworks/\\{subnetwork}
463
+ # * regions/\\{region}/subnetworks/\\{subnetwork}
449
464
  # @!attribute [rw] no_external_ip_address
450
465
  # @return [::Boolean]
451
466
  # Default is false (with an external IP address). Required if
@@ -469,6 +484,26 @@ module Google
469
484
  extend ::Google::Protobuf::MessageExts::ClassMethods
470
485
  end
471
486
 
487
+ # PlacementPolicy describes a group placement policy for the VMs controlled
488
+ # by this AllocationPolicy.
489
+ # @!attribute [rw] collocation
490
+ # @return [::String]
491
+ # UNSPECIFIED vs. COLLOCATED (default UNSPECIFIED). Use COLLOCATED when you
492
+ # want VMs to be located close to each other for low network latency
493
+ # between the VMs. No placement policy will be generated when collocation
494
+ # is UNSPECIFIED.
495
+ # @!attribute [rw] max_distance
496
+ # @return [::Integer]
497
+ # When specified, causes the job to fail if more than max_distance logical
498
+ # switches are required between VMs. Batch uses the most compact possible
499
+ # placement of VMs even when max_distance is not specified. An explicit
500
+ # max_distance makes that level of compactness a strict requirement.
501
+ # Not yet implemented
502
+ class PlacementPolicy
503
+ include ::Google::Protobuf::MessageExts
504
+ extend ::Google::Protobuf::MessageExts::ClassMethods
505
+ end
506
+
472
507
  # @!attribute [rw] key
473
508
  # @return [::String]
474
509
  # @!attribute [rw] value
@@ -513,11 +548,12 @@ module Google
513
548
  # @!attribute [rw] task_count
514
549
  # @return [::Integer]
515
550
  # Number of Tasks in the TaskGroup.
516
- # default is 1
551
+ # Default is 1.
517
552
  # @!attribute [rw] parallelism
518
553
  # @return [::Integer]
519
554
  # Max number of tasks that can run in parallel.
520
555
  # Default to min(task_count, 1000).
556
+ # Field parallelism must be 1 if the scheduling_policy is IN_ORDER.
521
557
  # @!attribute [rw] task_environments
522
558
  # @return [::Array<::Google::Cloud::Batch::V1::Environment>]
523
559
  # An array of environment variable mappings, which are passed to Tasks with
@@ -81,7 +81,7 @@ module Google
81
81
 
82
82
  # Task states.
83
83
  module State
84
- # unknown state
84
+ # Unknown state.
85
85
  STATE_UNSPECIFIED = 0
86
86
 
87
87
  # The Task is created and waiting for resources.
@@ -98,6 +98,9 @@ module Google
98
98
 
99
99
  # The Task has succeeded.
100
100
  SUCCEEDED = 5
101
+
102
+ # The Task has not been executed when the Job finishes.
103
+ UNEXECUTED = 6
101
104
  end
102
105
  end
103
106
 
@@ -138,6 +141,9 @@ module Google
138
141
  # @!attribute [rw] timeout
139
142
  # @return [::Google::Protobuf::Duration]
140
143
  # Timeout for this Runnable.
144
+ # @!attribute [rw] labels
145
+ # @return [::Google::Protobuf::Map{::String => ::String}]
146
+ # Labels for this Runnable.
141
147
  class Runnable
142
148
  include ::Google::Protobuf::MessageExts
143
149
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -166,8 +172,9 @@ module Google
166
172
  # @!attribute [rw] block_external_network
167
173
  # @return [::Boolean]
168
174
  # If set to true, external network access to and from container will be
169
- # blocked. The container will use the default internal network
170
- # 'goog-internal'.
175
+ # blocked, containers that are with block_external_network as true can
176
+ # still communicate with each other, network cannot be specified in the
177
+ # `container.options` field.
171
178
  # @!attribute [rw] username
172
179
  # @return [::String]
173
180
  # Optional username for logging in to a docker registry. If username
@@ -218,6 +225,15 @@ module Google
218
225
  include ::Google::Protobuf::MessageExts
219
226
  extend ::Google::Protobuf::MessageExts::ClassMethods
220
227
  end
228
+
229
+ # @!attribute [rw] key
230
+ # @return [::String]
231
+ # @!attribute [rw] value
232
+ # @return [::String]
233
+ class LabelsEntry
234
+ include ::Google::Protobuf::MessageExts
235
+ extend ::Google::Protobuf::MessageExts::ClassMethods
236
+ end
221
237
  end
222
238
 
223
239
  # Spec of a task