8000 feat: [google-cloud-support] publish client libraries for CSAPI v2beta by gcf-owl-bot[bot] · Pull Request #13909 · googleapis/google-cloud-python · GitHub
[go: up one dir, main page]

Skip to content

feat: [google-cloud-support] publish client libraries for CSAPI v2beta #13909

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
May 15, 2025
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
11 changes: 11 additions & 0 deletions packages/google-cloud-support/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 Google Cloud Support API.
By default, you will get version ``support_v2``.


API Reference
-------------
Expand All @@ -11,6 +14,14 @@ API Reference
support_v2/services_
support_v2/types_

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

support_v2beta/services_
support_v2beta/types_


Changelog
---------
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CaseAttachmentService
---------------------------------------

.. automodule:: google.cloud.support_v2beta.services.case_attachment_service
:members:
:inherited-members:

.. automodule:: google.cloud.support_v2beta.services.case_attachment_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CaseService
-----------------------------

.. automodule:: google.cloud.support_v2beta.services.case_service
:members:
:inherited-members:

.. automodule:: google.cloud.support_v2beta.services.case_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
CommentService
--------------------------------

.. automodule:: google.cloud.support_v2beta.services.comment_service
:members:
:inherited-members:

.. automodule:: google.cloud.support_v2beta.services.comment_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FeedService
-----------------------------

.. automodule:: google.cloud.support_v2beta.services.feed_service
:members:
:inherited-members:

.. automodule:: google.cloud.support_v2beta.services.feed_service.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Services for Google Cloud Support v2beta API
============================================
.. toctree::
:maxdepth: 2

case_attachment_service
case_service
comment_service
feed_service
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Types for Google Cloud Support v2beta API
=========================================

.. automodule:: google.cloud.support_v2beta.types
:members:
:show-inheritance:
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@


class CaseAttachmentServiceAsyncClient:
"""A service to manage file attachment for Google Cloud support
"""A service to manage file attachments for Google Cloud support
cases.
"""

Expand Down Expand Up @@ -310,8 +310,37 @@ async def list_attachments(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> pagers.ListAttachmentsAsyncPager:
r"""Retrieve all attachments associated with a support
case.
r"""List all the attachments associated with a support case.

EXAMPLES:

cURL:

.. code:: shell

case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"

Python:

.. code:: python

import googleapiclient.discovery

api_version = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
)
request = (
supportApiService.cases()
.attachments()
.list(parent="projects/some-project/cases/43595344")
)
print(request.execute())

.. code-block:: python

Expand Down Expand Up @@ -345,9 +374,8 @@ async def sample_list_attachments():
The request object. The request message for the
ListAttachments endpoint.
parent (:class:`str`):
Required. The resource name of Case
object for which attachments should be
listed.
Required. The name of the case for
which attachments should be listed.

This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_transport_class(


class CaseAttachmentServiceClient(metaclass=CaseAttachmentServiceClientMeta):
"""A service to manage file attachment for Google Cloud support
"""A service to manage file attachments for Google Cloud support
cases.
"""

Expand Down Expand Up @@ -747,8 +747,37 @@ def list_attachments(
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
) -> pagers.ListAttachmentsPager:
r"""Retrieve all attachments associated with a support
case.
r"""List all the attachments associated with a support case.

EXAMPLES:

cURL:

.. code:: shell

case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"

Python:

.. code:: python

import googleapiclient.discovery

api_version = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
)
request = (
supportApiService.cases()
.attachments()
.list(parent="projects/some-project/cases/43595344")
)
print(request.execute())

.. code-block:: python

Expand Down Expand Up @@ -782,9 +811,8 @@ def sample_list_attachments():
The request object. The request message for the
ListAttachments endpoint.
parent (str):
Required. The resource name of Case
object for which attachments should be
listed.
Required. The name of the case for
which attachments should be listed.

This corresponds to the ``parent`` field
on the ``request`` instance; if ``request`` is provided, this
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def intercept_unary_unary(self, continuation, client_call_details, request):
class CaseAttachmentServiceGrpcTransport(CaseAttachmentServiceTransport):
"""gRPC backend transport for CaseAttachmentService.

A service to manage file attachment for Google Cloud support
A service to manage file attachments for Google Cloud support
cases.

This class defines the same methods as the primary client, so the
Expand Down Expand Up @@ -329,8 +329,37 @@ def list_attachments(
]:
r"""Return a callable for the list attachments method over gRPC.

Retrieve all attachments associated with a support
case.
List all the attachments associated with a support case.

EXAMPLES:

cURL:

.. code:: shell

case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"

Python:

.. code:: python

import googleapiclient.discovery

api_version = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
)
request = (
supportApiService.cases()
.attachments()
.list(parent="projects/some-project/cases/43595344")
)
print(request.execute())

Returns:
Callable[[~.ListAttachmentsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ async def intercept_unary_unary(self, continuation, client_call_details, request
class CaseAttachmentServiceGrpcAsyncIOTransport(CaseAttachmentServiceTransport):
"""gRPC AsyncIO backend transport for CaseAttachmentService.

A service to manage file attachment for Google Cloud support
A service to manage file attachments for Google Cloud support
cases.

This class defines the same methods as the primary client, so the
Expand Down Expand Up @@ -337,8 +337,37 @@ def list_attachments(
]:
r"""Return a callable for the list attachments method over gRPC.

Retrieve all attachments associated with a support
case.
List all the attachments associated with a support case.

EXAMPLES:

cURL:

.. code:: shell

case="projects/some-project/cases/23598314"
curl \
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
"https://cloudsupport.googleapis.com/v2/$case/attachments"

Python:

.. code:: python

import googleapiclient.discovery

api_version = "v2"
supportApiService = googleapiclient.discovery.build(
serviceName="cloudsupport",
version=api_version,
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
)
request = (
supportApiService.cases()
.attachments()
.list(parent="projects/some-project/cases/43595344")
)
print(request.execute())

Returns:
Callable[[~.ListAttachmentsRequest],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ class CaseAttachmentServiceRestStub:
class CaseAttachmentServiceRestTransport(_BaseCaseAttachmentServiceRestTransport):
"""REST backend synchronous transport for CaseAttachmentService.

A service to manage file attachment for Google Cloud support
A service to manage file attachments for Google Cloud support
cases.

This class defines the same methods as the primary client, so the
Expand Down
Loading
Loading
0