Skip to content

Commit 66d3cc5

Browse files
feat: add support for google.cloud.batch.__version__ (googleapis#65)
* chore: update to gapic-generator-python 1.5.0 feat: add support for `google.cloud.<api>.__version__` PiperOrigin-RevId: 484665853 Source-Link: googleapis/googleapis@8eb249a Source-Link: https://github.com/googleapis/googleapis-gen/commit/c8aa327b5f478865fc3fd91e3c2768e54e26ad44 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYzhhYTMyN2I1ZjQ3ODg2NWZjM2ZkOTFlM2MyNzY4ZTU0ZTI2YWQ0NCJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add .release-please-manifest.json with correct version * use templated owlbot.py and autogenerated setup.py * add replacement in owlbot.py to fix testing/constraints-3.7.txt * add release-please-config.json * run nox format session * docs: fix minor docstring formatting PiperOrigin-RevId: 487300638 Source-Link: googleapis/googleapis@91b1a9b Source-Link: https://github.com/googleapis/googleapis-gen/commit/b9328e5e89c2c5de0b6d74219c54c12bbcd7e1ae Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYjkzMjhlNWU4OWMyYzVkZTBiNmQ3NDIxOWM1NGMxMmJiY2Q3ZTFhZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: Update to gapic-generator-python 1.6.0 feat(python): Add typing to proto.Message based class attributes feat(python): Snippetgen handling of repeated enum field PiperOrigin-RevId: 487326846 Source-Link: googleapis/googleapis@da380c7 Source-Link: https://github.com/googleapis/googleapis-gen/commit/61ef5762ee6731a0cbbfea22fd0eecee51ab1c8e Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFlZjU3NjJlZTY3MzFhMGNiYmZlYTIyZmQwZWVjZWU1MWFiMWM4ZSJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * feat: new APIs added to reflect updates to the filestore service - Add ENTERPRISE Tier - Add snapshot APIs: RevertInstance, ListSnapshots, CreateSnapshot, DeleteSnapshot, UpdateSnapshot - Add multi-share APIs: ListShares, GetShare, CreateShare, DeleteShare, UpdateShare - Add ConnectMode to NetworkConfig (for Private Service Access support) - New status codes (SUSPENDED/SUSPENDING, REVERTING/RESUMING) - Add SuspensionReason (for KMS related suspension) - Add new fields to Instance information: max_capacity_gb, capacity_step_size_gb, max_share_count, capacity_gb, multi_share_enabled PiperOrigin-RevId: 487492758 Source-Link: googleapis/googleapis@5be5981 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ab0e217f560cc2c1afc11441c2eab6b6950efd2b Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYWIwZTIxN2Y1NjBjYzJjMWFmYzExNDQxYzJlYWI2YjY5NTBlZmQyYiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * update path to snippet metadata json * fix docs build * use templated owlbot.py * chore: Update gapic-generator-python to v1.6.1 PiperOrigin-RevId: 488036204 Source-Link: googleapis/googleapis@08f275f Source-Link: https://github.com/googleapis/googleapis-gen/commit/555c0945e60649e38739ae64bc45719cdf72178f Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNTU1YzA5NDVlNjA2NDllMzg3MzlhZTY0YmM0NTcxOWNkZjcyMTc4ZiJ9 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com> Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 1d1763d commit 66d3cc5

75 files changed

Lines changed: 1227 additions & 3227 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
releaseType: python
22
handleGHRelease: true
3+
manifest: true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "0.4.1"
3+
}

packages/google-cloud-batch/docs/batch_v1/types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Types for Google Cloud Batch v1 API
33

44
.. automodule:: google.cloud.batch_v1.types
55
:members:
6-
:undoc-members:
76
:show-inheritance:

packages/google-cloud-batch/docs/batch_v1alpha/types.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,4 @@ Types for Google Cloud Batch v1alpha API
33

44
.. automodule:: google.cloud.batch_v1alpha.types
55
:members:
6-
:undoc-members:
76
:show-inheritance:

packages/google-cloud-batch/docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
# All configuration values have a default; values that are commented out
2525
# serve to show the default.
2626

27-
import sys
2827
import os
2928
import shlex
29+
import sys
3030

3131
# If extensions (or modules to document with autodoc) are in another directory,
3232
# add these directories to sys.path here. If the directory is relative to the
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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 google.cloud.batch import gapic_version as package_version
17+
18+
__version__ = package_version.__version__
19+
20+
21+
from google.cloud.batch_v1.services.batch_service.async_client import (
22+
BatchServiceAsyncClient,
23+
)
24+
from google.cloud.batch_v1.services.batch_service.client import BatchServiceClient
25+
from google.cloud.batch_v1.types.batch import (
26+
CreateJobRequest,
27+
DeleteJobRequest,
28+
GetJobRequest,
29+
GetTaskRequest,
30+
ListJobsRequest,
31+
ListJobsResponse,
32+
ListTasksRequest,
33+
ListTasksResponse,
34+
OperationMetadata,
35+
)
36+
from google.cloud.batch_v1.types.job import (
37+
AllocationPolicy,
38+
Job,
39+
JobNotification,
40+
JobStatus,
41+
LogsPolicy,
42+
ServiceAccount,
43+
TaskGroup,
44+
)
45+
from google.cloud.batch_v1.types.task import (
46+
ComputeResource,
47+
Environment,
48+
LifecyclePolicy,
49+
Runnable,
50+
StatusEvent,
51+
Task,
52+
TaskExecution,
53+
TaskSpec,
54+
TaskStatus,
55+
)
56+
from google.cloud.batch_v1.types.volume import GCS, NFS, Volume
57+
58+
__all__ = (
59+
"BatchServiceClient",
60+
"BatchServiceAsyncClient",
61+
"CreateJobRequest",
62+
"DeleteJobRequest",
63+
"GetJobRequest",
64+
"GetTaskRequest",
65+
"ListJobsRequest",
66+
"ListJobsResponse",
67+
"ListTasksRequest",
68+
"ListTasksResponse",
69+
"OperationMetadata",
70+
"AllocationPolicy",
71+
"Job",
72+
"JobNotification",
73+
"JobStatus",
74+
"LogsPolicy",
75+
"ServiceAccount",
76+
"TaskGroup",
77+
"ComputeResource",
78+
"Environment",
79+
"LifecyclePolicy",
80+
"Runnable",
81+
"StatusEvent",
82+
"Task",
83+
"TaskExecution",
84+
"TaskSpec",
85+
"TaskStatus",
86+
"GCS",
87+
"NFS",
88+
"Volume",
89+
)
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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+
__version__ = "0.4.1" # {x-release-please-version}
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.

packages/google-cloud-batch/google/cloud/batch_v1/__init__.py

Lines changed: 36 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -13,38 +13,44 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16+
from google.cloud.batch import gapic_version as package_version
1617

17-
from .services.batch_service import BatchServiceClient
18-
from .services.batch_service import BatchServiceAsyncClient
18+
__version__ = package_version.__version__
1919

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 JobNotification
32-
from .types.job import JobStatus
33-
from .types.job import LogsPolicy
34-
from .types.job import ServiceAccount
35-
from .types.job import TaskGroup
36-
from .types.task import ComputeResource
37-
from .types.task import Environment
38-
from .types.task import LifecyclePolicy
39-
from .types.task import Runnable
40-
from .types.task import StatusEvent
41-
from .types.task import Task
42-
from .types.task import TaskExecution
43-
from .types.task import TaskSpec
44-
from .types.task import TaskStatus
45-
from .types.volume import GCS
46-
from .types.volume import NFS
47-
from .types.volume import Volume
20+
21+
from .services.batch_service import BatchServiceAsyncClient, BatchServiceClient
22+
from .types.batch import (
23+
CreateJobRequest,
24+
DeleteJobRequest,
25+
GetJobRequest,
26+
GetTaskRequest,
27+
ListJobsRequest,
28+
ListJobsResponse,
29+
ListTasksRequest,
30+
ListTasksResponse,
31+
OperationMetadata,
32+
)
33+
from .types.job import (
34+
AllocationPolicy,
35+
Job,
36+
JobNotification,
37+
JobStatus,
38+
LogsPolicy,
39+
ServiceAccount,
40+
TaskGroup,
41+
)
42+
from .types.task import (
43+
ComputeResource,
44+
Environment,
45+
LifecyclePolicy,
46+
Runnable,
47+
StatusEvent,
48+
Task,
49+
TaskExecution,
50+
TaskSpec,
51+
TaskStatus,
52+
)
53+
from .types.volume import GCS, NFS, Volume
4854

4955
__all__ = (
5056
"BatchServiceAsyncClient",

packages/google-cloud-batch/google/cloud/batch_v1/services/batch_service/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
from .client import BatchServiceClient
1716
from .async_client import BatchServiceAsyncClient
17+
from .client import BatchServiceClient
1818

1919
__all__ = (
2020
"BatchServiceClient",

0 commit comments

Comments
 (0)