8000 docs: [google-cloud-support] Update Cloud Support RPC comments to no … · googleapis/google-cloud-python@40e08b2 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40e08b2

Browse files
docs: [google-cloud-support] Update Cloud Support RPC comments to no longer include cURL and Python examples (#13929)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 760759691 Source-Link: googleapis/googleapis@3ef440a Source-Link: googleapis/googleapis-gen@ff8c24e Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXN1cHBvcnQvLk93bEJvdC55YW1sIiwiaCI6ImZmOGMyNGVhYTU0NGVmYzMzMmExZTY5ZjkyMWEzMGI1YjM1NDk5NjUifQ== --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 8f95f78 commit 40e08b2

File tree

15 files changed

+39
-1523
lines changed
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.15" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
1515
#
16-
__version__ = "0.1.15" # {x-release-please-version}
16+
__version__ = "0.0.0" # {x-release-please-version}
Original file line numberDiff line numberDiff line change
@@ -310,37 +310,8 @@ async def list_attachments(
310310
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
311311
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
312312
) -> pagers.ListAttachmentsAsyncPager:
313-
r"""List all the attachments associated with a support case.
314-
315-
EXAMPLES:
316-
317-
cURL:
318-
319-
.. code:: shell
320-
321-
case="projects/some-project/cases/23598314"
322-
curl \
323-
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
324-
"https://cloudsupport.googleapis.com/v2/$case/attachments"
325- 8000
326-
Python:
327-
328-
.. code:: python
329-
330-
import googleapiclient.discovery
331-
332-
api_version = "v2"
333-
supportApiService = googleapiclient.discovery.build(
334-
serviceName="cloudsupport",
335-
version=api_version,
336-
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
337-
)
338-
request = (
339-
supportApiService.cases()
340-
.attachments()
341-
.list(parent="projects/some-project/cases/43595344")
342-
)
343-
print(request.execute())
313+
r"""List all the attachments associated with a support
314+
case.
344315
345316
.. code-block:: python
346317
Original file line numberDiff line numberDiff line change
@@ -747,37 +747,8 @@ def list_attachments(
747747
timeout: Union[float, object] = gapic_v1.method.DEFAULT,
748748
metadata: Sequence[Tuple[str, Union[str, bytes]]] = (),
749749
) -> pagers.ListAttachmentsPager:
750-
r"""List all the attachments associated with a support case.
751-
752-
EXAMPLES:
753-
754-
cURL:
755-
756-
.. code:: shell
757-
758-
case="projects/some-project/cases/23598314"
759-
curl \
760-
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
761-
"https://cloudsupport.googleapis.com/v2/$case/attachments"
762-
763-
Python:
764-
765-
.. code:: python
766-
767-
import googleapiclient.discovery
768-
769-
api_version = "v2"
770-
supportApiService = googleapiclient.discovery.build(
771-
serviceName="cloudsupport",
772-
version=api_version,
773-
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
774-
)
775-
request = (
776-
supportApiService.cases()
777-
.attachments()
778-
.list(parent="projects/some-project/cases/43595344")
779-
)
780-
print(request.execute())
750+
r"""List all the attachments associated with a support
751+
case.
781752
782753
.. code-block:: python
783754
Original file line numberDiff line numberDiff line change
@@ -329,37 +329,8 @@ def list_attachments(
329329
]:
330330
r"""Return a callable for the list attachments method over gRPC.
331331
332-
List all the attachments associated with a support case.
333-
334-
EXAMPLES:
335-
336-
cURL:
337-
338-
.. code:: shell
339-
340-
case="projects/some-project/cases/23598314"
341-
curl \
342-
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
343-
"https://cloudsupport.googleapis.com/v2/$case/attachments"
344-
345-
Python:
346-
347-
.. code:: python
348-
349-
import googleapiclient.discovery
350-
351-
api_version = "v2"
352-
supportApiService = googleapiclient.discovery.build(
353-
serviceName="cloudsupport",
354-
version=api_version,
355-
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
356-
)
357-
request = (
358-
supportApiService.cases()
359-
.attachments()
360-
.list(parent="projects/some-project/cases/43595344")
361-
)
362-
print(request.execute())
332+
List all the attachments associated with a support
333+
case.
363334
364335
Returns:
365336
Callable[[~.ListAt 10000 tachmentsRequest],
Original file line numberDiff line numberDiff line change
@@ -337,37 +337,8 @@ def list_attachments(
337337
]:
338338
r"""Return a callable for the list attachments method over gRPC.
339339
340-
List all the attachments associated with a support case.
341-
342-
EXAMPLES:
343-
344-
cURL:
345-
346-
.. code:: shell
347-
348-
case="projects/some-project/cases/23598314"
349-
curl \
350-
--header "Authorization: Bearer $(gcloud auth print-access-token)" \
351-
"https://cloudsupport.googleapis.com/v2/$case/attachments"
352-
353-
Python:
354-
355-
.. code:: python
356-
357-
import googleapiclient.discovery
358-
359-
api_version = "v2"
360-
supportApiService = googleapiclient.discovery.build(
361-
serviceName="cloudsupport",
362-
version=api_version,
363-
discoveryServiceUrl=f"https://cloudsupport.googleapis.com/$discovery/rest?version={api_version}",
364-
)
365-
request = (
366-
supportApiService.cases()
367-
.attachments()
368-
.list(parent="projects/some-project/cases/43595344")
369-
)
370-
print(request.execute())
340+
List all the attachments associated with a support
341+
case.
371342
372343
Returns:
373344
Callable[[~.ListAttachmentsRequest],