8000 feat: Add Cloud Run Jobs v2 API by gcf-owl-bot[bot] · Pull Request #65 · googleapis/python-run · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Oct 31, 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
1 change: 1 addition & 0 deletions .github/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
releaseType: python
handleGHRelease: true
manifest: true
3 changes: 3 additions & 0 deletions .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
".": "0.4.2"
}
2 changes: 1 addition & 1 deletion docs/conf.py
27AD
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
# All configuration values have a default; values that are commented out
# serve to show the default.

import sys
import os
import shlex
import sys

# If extensions (or modules to document with autodoc) are in another directory,
# add these directories to sys.path here. If the directory is relative to the
Expand Down
10 changes: 10 additions & 0 deletions docs/run_v2/executions.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Executions
----------------------------

.. automodule:: google.cloud.run_v2.services.executions
:members:
:inherited-members:

.. automodule:: google.cloud.run_v2.services.executions.pagers
:members:
:inherited-members:
10 changes: 10 additions & 0 deletions docs/run_v2/jobs.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Jobs
----------------------

.. automodule:: google.cloud.run_v2.services.jobs
:members:
:inherited-members:

.. automodule:: google.cloud.run_v2.services.jobs.pagers
:members:
:inherited-members:
3 changes: 3 additions & 0 deletions docs/run_v2/services_.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@ Services for Google Cloud Run v2 API
.. toctree::
:maxdepth: 2

executions
jobs
revisions
services
tasks
10 changes: 10 additions & 0 deletions docs/run_v2/tasks.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Tasks
-----------------------

.. automodule:: google.cloud.run_v2.services.tasks
:members:
:inherited-members:

.. automodule:: google.cloud.run_v2.services.tasks.pagers
:members:
:inherited-members:
1 change: 0 additions & 1 deletion docs/run_v2/types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ Types for Google Cloud Run v2 API

.. automodule:: google.cloud.run_v2.types
:members:
:undoc-members:
:show-inheritance:
177 changes: 177 additions & 0 deletions google/cloud/run/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,177 @@
# -*- 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 google.cloud.run import gapic_version as package_version

__version__ = package_version.__version__


from google.cloud.run_v2.services.executions.async_client import ExecutionsAsyncClient
from google.cloud.run_v2.services.executions.client import ExecutionsClient
from google.cloud.run_v2.services.jobs.async_client import JobsAsyncClient
from google.cloud.run_v2.services.jobs.client import JobsClient
from google.cloud.run_v2.services.revisions.async_client import RevisionsAsyncClient
from google.cloud.run_v2.services.revisions.client import RevisionsClient
from google.cloud.run_v2.services.services.async_client import ServicesAsyncClient
from google.cloud.run_v2.services.services.client import ServicesClient
from google.cloud.run_v2.services.tasks.async_client import TasksAsyncClient
from google.cloud.run_v2.services.tasks.client import TasksClient
from google.cloud.run_v2.types.condition import Condition
from google.cloud.run_v2.types.execution import (
DeleteExecutionRequest,
Execution,
GetExecutionRequest,
ListExecutionsRequest,
ListExecutionsResponse,
)
from google.cloud.run_v2.types.execution_template import ExecutionTemplate
from google.cloud.run_v2.types.job import (
CreateJobRequest,
DeleteJobRequest,
ExecutionReference,
GetJobRequest,
Job,
ListJobsRequest,
ListJobsResponse,
RunJobRequest,
UpdateJobRequest,
)
from google.cloud.run_v2.types.k8s_min import (
CloudSqlInstance,
Container,
ContainerPort,
EnvVar,
EnvVarSource,
GRPCAction,
HTTPGetAction,
HTTPHeader,
Probe,
ResourceRequirements,
SecretKeySelector,
SecretVolumeSource,
TCPSocketAction,
VersionToPath,
Volume,
VolumeMount,
)
from google.cloud.run_v2.types.revision import (
DeleteRevisionRequest,
GetRevisionRequest,
ListRevisionsRequest,
ListRevisionsResponse,
Revision,
)
from google.cloud.run_v2.types.revision_template import RevisionTemplate
from google.cloud.run_v2.types.service import (
CreateServiceRequest,
DeleteServiceRequest,
GetServiceRequest,
ListServicesRequest,
ListServicesResponse,
Service,
UpdateServiceRequest,
)
from google.cloud.run_v2.types.task import (
GetTaskRequest,
ListTasksRequest,
ListTasksResponse,
Task,
TaskAttemptResult,
)
from google.cloud.run_v2.types.task_template import TaskTemplate
from google.cloud.run_v2.types.traffic_target import (
TrafficTarget,
TrafficTargetAllocationType,
TrafficTargetStatus,
)
from google.cloud.run_v2.types.vendor_settings import (
BinaryAuthorization,
ExecutionEnvironment,
IngressTraffic,
RevisionScaling,
VpcAccess,
)

__all__ = (
"ExecutionsClient",
"ExecutionsAsyncClient",
"JobsClient",
"JobsAsyncClient",
"RevisionsClient",
"RevisionsAsyncClient",
"ServicesClient",
"ServicesAsyncClient",
"TasksClient",
"TasksAsyncClient",
"Condition",
"DeleteExecutionRequest",
"Execution",
"GetExecutionRequest",
"ListExecutionsRequest",
"ListExecutionsResponse",
"ExecutionTemplate",
"CreateJobRequest",
"DeleteJobRequest",
"ExecutionReference",
"GetJobRequest",
"Job",
"ListJobsRequest",
"ListJobsResponse",
"RunJobRequest",
"UpdateJobRequest",
"CloudSqlInstance",
"Container",
"ContainerPort",
"EnvVar",
"EnvVarSource",
"GRPCAction",
"HTTPGetAction",
"HTTPHeader",
"Probe",
"ResourceRequirements",
"SecretKeySelector",
"SecretVolumeSource",
"TCPSocketAction",
"VersionToPath",
"Volume",
"VolumeMount",
"DeleteRevisionRequest",
"GetRevisionRequest",
"ListRevisionsRequest",
"ListRevisionsResponse",
"Revision",
"RevisionTemplate",
"CreateServiceRequest",
"DeleteServiceRequest",
"GetServiceRequest",
"ListServicesRequest",
"ListServicesResponse",
"Service",
"UpdateServiceRequest",
"GetTaskRequest",
"ListTasksRequest",
"ListTasksResponse",
"Task",
"TaskAttemptResult",
"TaskTemplate",
"TrafficTarget",
"TrafficTargetStatus",
"TrafficTargetAllocationType",
"BinaryAuthorization",
"RevisionScaling",
"VpcAccess",
"ExecutionEnvironment",
"IngressTraffic",
)
16 changes: 16 additions & 0 deletions google/cloud/run/gapic_version.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# -*- 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.
#
__version__ = "0.4.2" # {x-release-please-version}
2 changes: 2 additions & 0 deletions google/cloud/run/py.typed
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Marker file for PEP 561.
# The google-cloud-run package uses inline types.
Loading
0