Skip to content

Commit 6bbff85

Browse files
authored
feat: generate v1alpha (googleapis#25)
1 parent f589d1f commit 6bbff85

38 files changed

Lines changed: 13947 additions & 3 deletions

.github/.OwlBot.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ docker:
1818
deep-remove-regex:
1919
- /owl-bot-staging
2020

21-
deep-preserve-regex:
22-
- /owl-bot-staging/v1alpha
23-
2421
deep-copy-regex:
2522
- source: /google/cloud/batch/(v.*)/.*-py/(.*)
2623
dest: /owl-bot-staging/$1/$2
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
BatchService
2+
------------------------------
3+
4+
.. automodule:: google.cloud.batch_v1alpha.services.batch_service
5+
:members:
6+
:inherited-members:
7+
8+
.. automodule:: google.cloud.batch_v1alpha.services.batch_service.pagers
9+
:members:
10+
:inherited-members:

docs/batch_v1alpha/services.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
Services for Google Cloud Batch v1alpha API
2+
===========================================
3+
.. toctree::
4+
:maxdepth: 2
5+
6+
batch_service

docs/batch_v1alpha/types.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Types for Google Cloud Batch v1alpha API
2+
========================================
3+
4+
.. automodule:: google.cloud.batch_v1alpha.types
5+
:members:
6+
:undoc-members:
7+
:show-inheritance:

docs/index.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
.. include:: multiprocessing.rst
44

5+
This package includes clients for multiple versions of Cloud Batch.
6+
By default, you will get version ``batch_v1``.
7+
58

69
API Reference
710
-------------
@@ -11,6 +14,14 @@ API Reference
1114
batch_v1/services
1215
batch_v1/types
1316

17+
API Reference
18+
-------------
19+
.. toctree::
20+
:maxdepth: 2
21+
22+
batch_v1alpha/services
23+
batch_v1alpha/types
24+
1425

1526
Changelog
1627
---------
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
17+
from .services.batch_service import BatchServiceClient
18+
from .services.batch_service import BatchServiceAsyncClient
19+
20+
from .types.batch import CreateJobRequest
21+
from .types.batch import DeleteJobRequest
22+
from .types.batch import GetJobRequest
23+
from .types.batch import GetTaskRequest
24+
from .types.batch import ListJobsRequest
25+
from .types.batch import ListJobsResponse
26+
from .types.batch import ListTasksRequest
27+
from .types.batch import ListTasksResponse
28+
from .types.batch import OperationMetadata
29+
from .types.job import AllocationPolicy
30+
from .types.job import Job
31+
from .types.job import JobDependency
32+
from .types.job import JobNotification
33+
from .types.job import JobStatus
34+
from .types.job import LogsPolicy
35+
from .types.job import ServiceAccount
36+
from .types.job import TaskGroup
37+
from .types.task import ComputeResource
38+
from .types.task import Environment
39+
from .types.task import LifecyclePolicy
40+
from .types.task import Runnable
41+
from .types.task import StatusEvent
42+
from .types.task import Task
43+
from .types.task import TaskExecution
44+
from .types.task import TaskSpec
45+
from .types.task import TaskStatus
46+
from .types.volume import GCS
47+
from .types.volume import NFS
48+
from .types.volume import PD
49+
from .types.volume import Volume
50+
51+
__all__ = (
52+
"BatchServiceAsyncClient",
53+
"AllocationPolicy",
54+
"BatchServiceClient",
55+
"ComputeResource",
56+
"CreateJobRequest",
57+
"DeleteJobRequest",
58+
"Environment",
59+
"GCS",
60+
"GetJobRequest",
61+
"GetTaskRequest",
62+
"Job",
63+
"JobDependency",
64+
"JobNotification",
65+
"JobStatus",
66+
"LifecyclePolicy",
67+
"ListJobsRequest",
68+
"ListJobsResponse",
69+
"ListTasksRequest",
70+
"ListTasksResponse",
71+
"LogsPolicy",
72+
"NFS",
73+
"OperationMetadata",
74+
"PD",
75+
"Runnable",
76+
"ServiceAccount",
77+
"StatusEvent",
78+
"Task",
79+
"TaskExecution",
80+
"TaskGroup",
81+
"TaskSpec",
82+
"TaskStatus",
83+
"Volume",
84+
)
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
{
2+
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
3+
"language": "python",
4+
"libraryPackage": "google.cloud.batch_v1alpha",
5+
"protoPackage": "google.cloud.batch.v1alpha",
6+
"schema": "1.0",
7+
"services": {
8+
"BatchService": {
9+
"clients": {
10+
"grpc": {
11+
"libraryClient": "BatchServiceClient",
12+
"rpcs": {
13+
"CreateJob": {
14+
"methods": [
15+
"create_job"
16+
]
17+
},
18+
"DeleteJob": {
19+
"methods": [
20+
"delete_job"
21+
]
22+
},
23+
"GetJob": {
24+
"methods": [
25+
"get_job"
26+
]
27+
},
28+
"GetTask": {
29+
"methods": [
30+
"get_task"
31+
]
32+
},
33+
"ListJobs": {
34+
"methods": [
35+
"list_jobs"
36+
]
37+
},
38+
"ListTasks": {
39+
"methods": [
40+
"list_tasks"
41+
]
42+
}
43+
}
44+
},
45+
"grpc-async": {
46+
"libraryClient": "BatchServiceAsyncClient",
47+
"rpcs": {
48+
"CreateJob": {
49+
"methods": [
50+
"create_job"
51+
]
52+
},
53+
"DeleteJob": {
54+
"methods": [
55+
"delete_job"
56+
]
57+
},
58+
"GetJob": {
59+
"methods": [
60+
"get_job"
61+
]
62+
},
63+
"GetTask": {
64+
"methods": [
65+
"get_task"
66+
]
67+
},
68+
"ListJobs": {
69+
"methods": [
70+
"list_jobs"
71+
]
72+
},
73+
"ListTasks": {
74+
"methods": [
75+
"list_tasks"
76+
]
77+
}
78+
}
79+
}
80+
}
81+
}
82+
}
83+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Marker file for PEP 561.
2+
# The google-cloud-batch package uses inline types.
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# -*- coding: utf-8 -*-
2+
# Copyright 2022 Google LLC
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
from .client import BatchServiceClient
17+
from .async_client import BatchServiceAsyncClient
18+
19+
__all__ = (
20+
"BatchServiceClient",
21+
"BatchServiceAsyncClient",
22+
)

0 commit comments

Comments
 (0)