Debian Codegraph @

googleapis/cloud/batch/v1/alias.go

raw
1 // Copyright 2022 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by aliasgen. DO NOT EDIT.
16
17 // Package batch aliases all exported identifiers in package
18 // "cloud.google.com/go/batch/apiv1/batchpb".
19 //
20 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb.
21 // Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md
22 // for more details.
23 package batch
24
25 import (
26 src "cloud.google.com/go/batch/apiv1/batchpb"
27 grpc "google.golang.org/grpc"
28 )
29
30 // Deprecated: Please use consts in: cloud.google.com/go/batch/apiv1/batchpb
31 const (
32 AllocationPolicy_PREEMPTIBLE = src.AllocationPolicy_PREEMPTIBLE
33 AllocationPolicy_PROVISIONING_MODEL_UNSPECIFIED = src.AllocationPolicy_PROVISIONING_MODEL_UNSPECIFIED
34 AllocationPolicy_SPOT = src.AllocationPolicy_SPOT
35 AllocationPolicy_STANDARD = src.AllocationPolicy_STANDARD
36 JobNotification_JOB_STATE_CHANGED = src.JobNotification_JOB_STATE_CHANGED
37 JobNotification_TASK_STATE_CHANGED = src.JobNotification_TASK_STATE_CHANGED
38 JobNotification_TYPE_UNSPECIFIED = src.JobNotification_TYPE_UNSPECIFIED
39 JobStatus_DELETION_IN_PROGRESS = src.JobStatus_DELETION_IN_PROGRESS
40 JobStatus_FAILED = src.JobStatus_FAILED
41 JobStatus_QUEUED = src.JobStatus_QUEUED
42 JobStatus_RUNNING = src.JobStatus_RUNNING
43 JobStatus_SCHEDULED = src.JobStatus_SCHEDULED
44 JobStatus_STATE_UNSPECIFIED = src.JobStatus_STATE_UNSPECIFIED
45 JobStatus_SUCCEEDED = src.JobStatus_SUCCEEDED
46 LifecyclePolicy_ACTION_UNSPECIFIED = src.LifecyclePolicy_ACTION_UNSPECIFIED
47 LifecyclePolicy_FAIL_TASK = src.LifecyclePolicy_FAIL_TASK
48 LifecyclePolicy_RETRY_TASK = src.LifecyclePolicy_RETRY_TASK
49 LogsPolicy_CLOUD_LOGGING = src.LogsPolicy_CLOUD_LOGGING
50 LogsPolicy_DESTINATION_UNSPECIFIED = src.LogsPolicy_DESTINATION_UNSPECIFIED
51 LogsPolicy_PATH = src.LogsPolicy_PATH
52 TaskStatus_ASSIGNED = src.TaskStatus_ASSIGNED
53 TaskStatus_FAILED = src.TaskStatus_FAILED
54 TaskStatus_PENDING = src.TaskStatus_PENDING
55 TaskStatus_RUNNING = src.TaskStatus_RUNNING
56 TaskStatus_STATE_UNSPECIFIED = src.TaskStatus_STATE_UNSPECIFIED
57 TaskStatus_SUCCEEDED = src.TaskStatus_SUCCEEDED
58 )
59
60 // Deprecated: Please use vars in: cloud.google.com/go/batch/apiv1/batchpb
61 var (
62 AllocationPolicy_ProvisioningModel_name = src.AllocationPolicy_ProvisioningModel_name
63 AllocationPolicy_ProvisioningModel_value = src.AllocationPolicy_ProvisioningModel_value
64 File_google_cloud_batch_v1_batch_proto = src.File_google_cloud_batch_v1_batch_proto
65 File_google_cloud_batch_v1_job_proto = src.File_google_cloud_batch_v1_job_proto
66 File_google_cloud_batch_v1_task_proto = src.File_google_cloud_batch_v1_task_proto
67 File_google_cloud_batch_v1_volume_proto = src.File_google_cloud_batch_v1_volume_proto
68 JobNotification_Type_name = src.JobNotification_Type_name
69 JobNotification_Type_value = src.JobNotification_Type_value
70 JobStatus_State_name = src.JobStatus_State_name
71 JobStatus_State_value = src.JobStatus_State_value
72 LifecyclePolicy_Action_name = src.LifecyclePolicy_Action_name
73 LifecyclePolicy_Action_value = src.LifecyclePolicy_Action_value
74 LogsPolicy_Destination_name = src.LogsPolicy_Destination_name
75 LogsPolicy_Destination_value = src.LogsPolicy_Destination_value
76 TaskStatus_State_name = src.TaskStatus_State_name
77 TaskStatus_State_value = src.TaskStatus_State_value
78 )
79
80 // A Job's resource allocation policy describes when, where, and how compute
81 // resources should be allocated for the Job.
82 //
83 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
84 type AllocationPolicy = src.AllocationPolicy
85
86 // Accelerator describes Compute Engine accelerators to be attached to VMs.
87 //
88 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
89 type AllocationPolicy_Accelerator = src.AllocationPolicy_Accelerator
90
91 // A new or an existing persistent disk or a local ssd attached to a VM
92 // instance.
93 //
94 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
95 type AllocationPolicy_AttachedDisk = src.AllocationPolicy_AttachedDisk
96 type AllocationPolicy_AttachedDisk_ExistingDisk = src.AllocationPolicy_AttachedDisk_ExistingDisk
97 type AllocationPolicy_AttachedDisk_NewDisk = src.AllocationPolicy_AttachedDisk_NewDisk
98
99 // A new persistent disk or a local ssd. A VM can only have one local SSD
100 // setting but multiple local SSD partitions.
101 // https://cloud.google.com/compute/docs/disks#pdspecs.
102 // https://cloud.google.com/compute/docs/disks#localssds.
103 //
104 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
105 type AllocationPolicy_Disk = src.AllocationPolicy_Disk
106 type AllocationPolicy_Disk_Image = src.AllocationPolicy_Disk_Image
107 type AllocationPolicy_Disk_Snapshot = src.AllocationPolicy_Disk_Snapshot
108
109 // InstancePolicy describes an instance type and resources attached to each VM
110 // created by this InstancePolicy.
111 //
112 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
113 type AllocationPolicy_InstancePolicy = src.AllocationPolicy_InstancePolicy
114
115 // Either an InstancePolicy or an instance template.
116 //
117 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
118 type AllocationPolicy_InstancePolicyOrTemplate = src.AllocationPolicy_InstancePolicyOrTemplate
119 type AllocationPolicy_InstancePolicyOrTemplate_InstanceTemplate = src.AllocationPolicy_InstancePolicyOrTemplate_InstanceTemplate
120 type AllocationPolicy_InstancePolicyOrTemplate_Policy = src.AllocationPolicy_InstancePolicyOrTemplate_Policy
121 type AllocationPolicy_LocationPolicy = src.AllocationPolicy_LocationPolicy
122
123 // A network interface.
124 //
125 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
126 type AllocationPolicy_NetworkInterface = src.AllocationPolicy_NetworkInterface
127
128 // NetworkPolicy describes VM instance network configurations.
129 //
130 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
131 type AllocationPolicy_NetworkPolicy = src.AllocationPolicy_NetworkPolicy
132
133 // Compute Engine VM instance provisioning model.
134 //
135 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
136 type AllocationPolicy_ProvisioningModel = src.AllocationPolicy_ProvisioningModel
137
138 // BatchServiceClient is the client API for BatchService service. For
139 // semantics around ctx use and closing/ending streaming RPCs, please refer to
140 // https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
141 //
142 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
143 type BatchServiceClient = src.BatchServiceClient
144
145 // BatchServiceServer is the server API for BatchService service.
146 //
147 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
148 type BatchServiceServer = src.BatchServiceServer
149
150 // Compute resource requirements
151 //
152 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
153 type ComputeResource = src.ComputeResource
154
155 // CreateJob Request.
156 //
157 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
158 type CreateJobRequest = src.CreateJobRequest
159
160 // DeleteJob Request.
161 //
162 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
163 type DeleteJobRequest = src.DeleteJobRequest
164
165 // An Environment describes a collection of environment variables to set when
166 // executing Tasks.
167 //
168 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
169 type Environment = src.Environment
170
171 // Represents a Google Cloud Storage volume source config.
172 //
173 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
174 type GCS = src.GCS
175
176 // GetJob Request.
177 //
178 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
179 type GetJobRequest = src.GetJobRequest
180
181 // Request for a single Task by name.
182 //
183 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
184 type GetTaskRequest = src.GetTaskRequest
185
186 // The Cloud Batch Job description.
187 //
188 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
189 type Job = src.Job
190
191 // Notification configurations.
192 //
193 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
194 type JobNotification = src.JobNotification
195
196 // Message details. Describe the attribute that a message should have. Without
197 // specified message attributes, no message will be sent by default.
198 //
199 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
200 type JobNotification_Message = src.JobNotification_Message
201
202 // The message type.
203 //
204 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
205 type JobNotification_Type = src.JobNotification_Type
206
207 // Job status.
208 //
209 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
210 type JobStatus = src.JobStatus
211
212 // VM instance status.
213 //
214 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
215 type JobStatus_InstanceStatus = src.JobStatus_InstanceStatus
216
217 // Valid Job states.
218 //
219 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
220 type JobStatus_State = src.JobStatus_State
221
222 // Aggregated task status for a TaskGroup.
223 //
224 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
225 type JobStatus_TaskGroupStatus = src.JobStatus_TaskGroupStatus
226
227 // LifecyclePolicy describes how to deal with task failures based on different
228 // conditions.
229 //
230 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
231 type LifecyclePolicy = src.LifecyclePolicy
232
233 // Action on task failures based on different conditions.
234 //
235 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
236 type LifecyclePolicy_Action = src.LifecyclePolicy_Action
237
238 // Conditions for actions to deal with task failures.
239 //
240 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
241 type LifecyclePolicy_ActionCondition = src.LifecyclePolicy_ActionCondition
242
243 // ListJob Request.
244 //
245 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
246 type ListJobsRequest = src.ListJobsRequest
247
248 // ListJob Response.
249 //
250 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
251 type ListJobsResponse = src.ListJobsResponse
252
253 // ListTasks Request.
254 //
255 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
256 type ListTasksRequest = src.ListTasksRequest
257
258 // ListTasks Response.
259 //
260 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
261 type ListTasksResponse = src.ListTasksResponse
262
263 // LogsPolicy describes how outputs from a Job's Tasks (stdout/stderr) will be
264 // preserved.
265 //
266 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
267 type LogsPolicy = src.LogsPolicy
268
269 // The destination (if any) for logs.
270 //
271 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
272 type LogsPolicy_Destination = src.LogsPolicy_Destination
273
274 // Represents an NFS server and remote path: <server>:<remote_path>
275 //
276 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
277 type NFS = src.NFS
278
279 // Represents the metadata of the long-running operation.
280 //
281 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
282 type OperationMetadata = src.OperationMetadata
283
284 // Runnable describes instructions for executing a specific script or
285 // container as part of a Task.
286 //
287 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
288 type Runnable = src.Runnable
289
290 // Barrier runnable blocks until all tasks in a taskgroup reach it.
291 //
292 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
293 type Runnable_Barrier = src.Runnable_Barrier
294 type Runnable_Barrier_ = src.Runnable_Barrier_
295
296 // Container runnable.
297 //
298 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
299 type Runnable_Container = src.Runnable_Container
300 type Runnable_Container_ = src.Runnable_Container_
301
302 // Script runnable.
303 //
304 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
305 type Runnable_Script = src.Runnable_Script
306 type Runnable_Script_ = src.Runnable_Script_
307 type Runnable_Script_Path = src.Runnable_Script_Path
308 type Runnable_Script_Text = src.Runnable_Script_Text
309
310 // Carries information about a Google Cloud service account.
311 //
312 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
313 type ServiceAccount = src.ServiceAccount
314
315 // Status event
316 //
317 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
318 type StatusEvent = src.StatusEvent
319
320 // A Cloud Batch task.
321 //
322 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
323 type Task = src.Task
324
325 // This Task Execution field includes detail information for task execution
326 // procedures, based on StatusEvent types.
327 //
328 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
329 type TaskExecution = src.TaskExecution
330
331 // A TaskGroup contains one or multiple Tasks that share the same Runnable but
332 // with different runtime parameters.
333 //
334 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
335 type TaskGroup = src.TaskGroup
336
337 // Spec of a task
338 //
339 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
340 type TaskSpec = src.TaskSpec
341
342 // Status of a task
343 //
344 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
345 type TaskStatus = src.TaskStatus
346
347 // Task states.
348 //
349 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
350 type TaskStatus_State = src.TaskStatus_State
351
352 // UnimplementedBatchServiceServer can be embedded to have forward compatible
353 // implementations.
354 //
355 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
356 type UnimplementedBatchServiceServer = src.UnimplementedBatchServiceServer
357
358 // Volume and mount parameters to be associated with a TaskSpec. A TaskSpec
359 // might describe zero, one, or multiple volumes to be mounted as part of the
360 // task.
361 //
362 // Deprecated: Please use types in: cloud.google.com/go/batch/apiv1/batchpb
363 type Volume = src.Volume
364 type Volume_DeviceName = src.Volume_DeviceName
365 type Volume_Gcs = src.Volume_Gcs
366 type Volume_Nfs = src.Volume_Nfs
367
368 // Deprecated: Please use funcs in: cloud.google.com/go/batch/apiv1/batchpb
369 func NewBatchServiceClient(cc grpc.ClientConnInterface) BatchServiceClient {
370 return src.NewBatchServiceClient(cc)
371 }
372
373 // Deprecated: Please use funcs in: cloud.google.com/go/batch/apiv1/batchpb
374 func RegisterBatchServiceServer(s *grpc.Server, srv BatchServiceServer) {
375 src.RegisterBatchServiceServer(s, srv)
376 }