Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/.OwlBot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@ docker:
deep-remove-regex:
- /owl-bot-staging

deep-preserve-regex:
- /owl-bot-staging/v1alpha

deep-copy-regex:
- source: /google/cloud/batch/(v.*)/.*-py/(.*)
dest: /owl-bot-staging/$1/$2
Expand Down
10 changes: 10 additions & 0 deletions docs/batch_v1alpha/batch_service.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
BatchService
------------------------------

.. automodule:: google.cloud.batch_v1alpha.services.batch_service
:members:
:inherited-members:

.. automodule:: google.cloud.batch_v1alpha.services.batch_service.pagers
:members:
:inherited-members:
6 changes: 6 additions & 0 deletions docs/batch_v1alpha/services.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Services for Google Cloud Batch v1alpha API
===========================================
.. toctree::
:maxdepth: 2

batch_service
7 changes: 7 additions & 0 deletions docs/batch_v1alpha/types.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Types for Google Cloud Batch v1alpha API
========================================

.. automodule:: google.cloud.batch_v1alpha.types
:members:
:undoc-members:
:show-inheritance:
11 changes: 11 additions & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

.. include:: multiprocessing.rst

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


API Reference
-------------
Expand All @@ -11,6 +14,14 @@ API Reference
batch_v1/services
batch_v1/types

API Reference
-------------
.. toctree::
:maxdepth: 2

batch_v1alpha/services
batch_v1alpha/types


Changelog
---------
Expand Down
84 changes: 84 additions & 0 deletions google/cloud/batch_v1alpha/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

from .services.batch_service import BatchServiceClient
from .services.batch_service import BatchServiceAsyncClient

from .types.batch import CreateJobRequest
from .types.batch import DeleteJobRequest
from .types.batch import GetJobRequest
from .types.batch import GetTaskRequest
from .types.batch import ListJobsRequest
from .types.batch import ListJobsResponse
from .types.batch import ListTasksRequest
from .types.batch import ListTasksResponse
from .types.batch import OperationMetadata
from .types.job import AllocationPolicy
from .types.job import Job
from .types.job import JobDependency
from .types.job import JobNotification
from .types.job import JobStatus
from .types.job import LogsPolicy
from .types.job import ServiceAccount
from .types.job import TaskGroup
from .types.task import ComputeResource
from .types.task import Environment
from .types.task import LifecyclePolicy
from .types.task import Runnable
from .types.task import StatusEvent
from .types.task import Task
from .types.task import TaskExecution
from .types.task import TaskSpec
from .types.task import TaskStatus
from .types.volume import GCS
from .types.volume import NFS
from .types.volume import PD
from .types.volume import Volume

__all__ = (
"BatchServiceAsyncClient",
"AllocationPolicy",
"BatchServiceClient",
"ComputeResource",
"CreateJobRequest",
"DeleteJobRequest",
"Environment",
"GCS",
"GetJobRequest",
"GetTaskRequest",
"Job",
"JobDependency",
"JobNotification",
"JobStatus",
"LifecyclePolicy",
"ListJobsRequest",
"ListJobsResponse",
"ListTasksRequest",
"ListTasksResponse",
"LogsPolicy",
"NFS",
"OperationMetadata",
"PD",
"Runnable",
"ServiceAccount",
"StatusEvent",
"Task",
"TaskExecution",
"TaskGroup",
"TaskSpec",
"TaskStatus",
"Volume",
)
83 changes: 83 additions & 0 deletions google/cloud/batch_v1alpha/gapic_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
{
"comment": "This file maps proto services/RPCs to the corresponding library clients/methods",
"language": "python",
"libraryPackage": "google.cloud.batch_v1alpha",
"protoPackage": "google.cloud.batch.v1alpha",
"schema": "1.0",
"services": {
"BatchService": {
"clients": {
"grpc": {
"libraryClient": "BatchServiceClient",
"rpcs": {
"CreateJob": {
"methods": [
"create_job"
]
},
"DeleteJob": {
"methods": [
"delete_job"
]
},
"GetJob": {
"methods": [
"get_job"
]
},
"GetTask": {
"methods": [
"get_task"
]
},
"ListJobs": {
"methods": [
"list_jobs"
]
},
"ListTasks": {
"methods": [
"list_tasks"
]
}
}
},
"grpc-async": {
"libraryClient": "BatchServiceAsyncClient",
"rpcs": {
"CreateJob": {
"methods": [
"create_job"
]
},
"DeleteJob": {
"methods": [
"delete_job"
]
},
"GetJob": {
"methods": [
"get_job"
]
},
"GetTask": {
"methods": [
"get_task"
]
},
"ListJobs": {
"methods": [
"list_jobs"
]
},
"ListTasks": {
"methods": [
"list_tasks"
]
}
}
}
}
}
}
}
2 changes: 2 additions & 0 deletions google/cloud/batch_v1alpha/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-batch package uses inline types.
15 changes: 15 additions & 0 deletions google/cloud/batch_v1alpha/services/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
22 changes: 22 additions & 0 deletions google/cloud/batch_v1alpha/services/batch_service/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
from .client import BatchServiceClient
from .async_client import BatchServiceAsyncClient

__all__ = (
"BatchServiceClient",
"BatchServiceAsyncClient",
)
Loading