-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b08fa71
commit 22ecced
Showing
13 changed files
with
262 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
tests/snippetgen/goldens/mollusca_generated_mollusca_v1_snippets_list_resources_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for ListResources | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install animalia-mollusca | ||
|
||
|
||
# [START mollusca_generated_mollusca_v1_Snippets_ListResources_async] | ||
from animalia import mollusca_v1 | ||
|
||
|
||
async def sample_list_resources(): | ||
"""Snippet for list_resources""" | ||
|
||
# Create a client | ||
client = mollusca_v1.SnippetsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = mollusca_v1.ListResourcesRequest( | ||
) | ||
|
||
# Make the request | ||
page_result = client.list_resources(request=request) | ||
async for response in page_result: | ||
print("{}".format(response)) | ||
|
||
# [END mollusca_generated_mollusca_v1_Snippets_ListResources_async] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...snippetgen/goldens/mollusca_generated_mollusca_v1_snippets_method_bidi_streaming_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for MethodBidiStreaming | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install animalia-mollusca | ||
|
||
|
||
# [START mollusca_generated_mollusca_v1_Snippets_MethodBidiStreaming_async] | ||
from animalia import mollusca_v1 | ||
|
||
|
||
async def sample_method_bidi_streaming(): | ||
"""Snippet for method_bidi_streaming""" | ||
|
||
# Create a client | ||
client = mollusca_v1.SnippetsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = mollusca_v1.SignatureRequest( | ||
) | ||
|
||
# Make the request | ||
stream = await client.method_bidi_streaming([]) | ||
async for response in stream: | ||
print("{}".format(response)) | ||
|
||
# [END mollusca_generated_mollusca_v1_Snippets_MethodBidiStreaming_async] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
...snippetgen/goldens/mollusca_generated_mollusca_v1_snippets_method_lro_signatures_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for MethodLroSignatures | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install animalia-mollusca | ||
|
||
|
||
# [START mollusca_generated_mollusca_v1_Snippets_MethodLroSignatures_async] | ||
from animalia import mollusca_v1 | ||
|
||
|
||
async def sample_method_lro_signatures(): | ||
"""Snippet for method_lro_signatures""" | ||
|
||
# Create a client | ||
client = mollusca_v1.SnippetsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = mollusca_v1.SignatureRequest( | ||
) | ||
|
||
# Make the request | ||
operation = client.method_lro_signatures(request=request) | ||
|
||
print("Waiting for operation to complete...") | ||
|
||
response = await operation.result() | ||
print("{}".format(response)) | ||
|
||
# [END mollusca_generated_mollusca_v1_Snippets_MethodLroSignatures_async] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
46 changes: 46 additions & 0 deletions
46
.../snippetgen/goldens/mollusca_generated_mollusca_v1_snippets_method_one_signature_async.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2020 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. | ||
# | ||
# Generated code. DO NOT EDIT! | ||
# | ||
# Snippet for MethodOneSignature | ||
# NOTE: This snippet has been automatically generated for illustrative purposes only. | ||
# It may require modifications to work in your environment. | ||
|
||
# To install the latest published package dependency, execute the following: | ||
# python3 -m pip install animalia-mollusca | ||
|
||
|
||
# [START mollusca_generated_mollusca_v1_Snippets_MethodOneSignature_async] | ||
from animalia import mollusca_v1 | ||
|
||
|
||
async def sample_method_one_signature(): | ||
"""Snippet for method_one_signature""" | ||
|
||
# Create a client | ||
client = mollusca_v1.SnippetsAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = mollusca_v1.SignatureRequest( | ||
) | ||
|
||
# Make the request | ||
response = await client.method_one_signature(request=request) | ||
|
||
# Handle response | ||
print("{}".format(response)) | ||
|
||
# [END mollusca_generated_mollusca_v1_Snippets_MethodOneSignature_async] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.