forked from googleapis/google-cloud-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
regenerate client locally; add client-specific post processing
- Loading branch information
Showing
21 changed files
with
1,942 additions
and
6 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ API Reference | |
|
||
oslogin_v1/services_ | ||
oslogin_v1/types_ | ||
oslogin_v1/common/types | ||
|
||
|
||
Changelog | ||
|
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
52 changes: 52 additions & 0 deletions
52
...es/generated_samples/oslogin_v1_generated_os_login_service_create_ssh_public_key_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,52 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 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 CreateSshPublicKey | ||
# 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 google-cloud-os-login | ||
|
||
|
||
# [START oslogin_v1_generated_OsLoginService_CreateSshPublicKey_async] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import oslogin_v1 | ||
|
||
|
||
async def sample_create_ssh_public_key(): | ||
# Create a client | ||
client = oslogin_v1.OsLoginServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = oslogin_v1.CreateSshPublicKeyRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = await client.create_ssh_public_key(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END oslogin_v1_generated_OsLoginService_CreateSshPublicKey_async] |
52 changes: 52 additions & 0 deletions
52
...les/generated_samples/oslogin_v1_generated_os_login_service_create_ssh_public_key_sync.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,52 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 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 CreateSshPublicKey | ||
# 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 google-cloud-os-login | ||
|
||
|
||
# [START oslogin_v1_generated_OsLoginService_CreateSshPublicKey_sync] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import oslogin_v1 | ||
|
||
|
||
def sample_create_ssh_public_key(): | ||
# Create a client | ||
client = oslogin_v1.OsLoginServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = oslogin_v1.CreateSshPublicKeyRequest( | ||
parent="parent_value", | ||
) | ||
|
||
# Make the request | ||
response = client.create_ssh_public_key(request=request) | ||
|
||
# Handle the response | ||
print(response) | ||
|
||
# [END oslogin_v1_generated_OsLoginService_CreateSshPublicKey_sync] |
50 changes: 50 additions & 0 deletions
50
...les/generated_samples/oslogin_v1_generated_os_login_service_delete_posix_account_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,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 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 DeletePosixAccount | ||
# 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 google-cloud-os-login | ||
|
||
|
||
# [START oslogin_v1_generated_OsLoginService_DeletePosixAccount_async] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import oslogin_v1 | ||
|
||
|
||
async def sample_delete_posix_account(): | ||
# Create a client | ||
client = oslogin_v1.OsLoginServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = oslogin_v1.DeletePosixAccountRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_posix_account(request=request) | ||
|
||
|
||
# [END oslogin_v1_generated_OsLoginService_DeletePosixAccount_async] |
50 changes: 50 additions & 0 deletions
50
...ples/generated_samples/oslogin_v1_generated_os_login_service_delete_posix_account_sync.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,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 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 DeletePosixAccount | ||
# 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 google-cloud-os-login | ||
|
||
|
||
# [START oslogin_v1_generated_OsLoginService_DeletePosixAccount_sync] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import oslogin_v1 | ||
|
||
|
||
def sample_delete_posix_account(): | ||
# Create a client | ||
client = oslogin_v1.OsLoginServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = oslogin_v1.DeletePosixAccountRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_posix_account(request=request) | ||
|
||
|
||
# [END oslogin_v1_generated_OsLoginService_DeletePosixAccount_sync] |
50 changes: 50 additions & 0 deletions
50
...es/generated_samples/oslogin_v1_generated_os_login_service_delete_ssh_public_key_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,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 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 DeleteSshPublicKey | ||
# 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 google-cloud-os-login | ||
|
||
|
||
# [START oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_async] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import oslogin_v1 | ||
|
||
|
||
async def sample_delete_ssh_public_key(): | ||
# Create a client | ||
client = oslogin_v1.OsLoginServiceAsyncClient() | ||
|
||
# Initialize request argument(s) | ||
request = oslogin_v1.DeleteSshPublicKeyRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
await client.delete_ssh_public_key(request=request) | ||
|
||
|
||
# [END oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_async] |
50 changes: 50 additions & 0 deletions
50
...les/generated_samples/oslogin_v1_generated_os_login_service_delete_ssh_public_key_sync.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,50 @@ | ||
# -*- coding: utf-8 -*- | ||
# Copyright 2023 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 DeleteSshPublicKey | ||
# 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 google-cloud-os-login | ||
|
||
|
||
# [START oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_sync] | ||
# This snippet has been automatically generated and should be regarded as a | ||
# code template only. | ||
# It will require modifications to work: | ||
# - It may require correct/in-range values for request initialization. | ||
# - It may require specifying regional endpoints when creating the service | ||
# client as shown in: | ||
# https://googleapis.dev/python/google-api-core/latest/client_options.html | ||
from google.cloud import oslogin_v1 | ||
|
||
|
||
def sample_delete_ssh_public_key(): | ||
# Create a client | ||
client = oslogin_v1.OsLoginServiceClient() | ||
|
||
# Initialize request argument(s) | ||
request = oslogin_v1.DeleteSshPublicKeyRequest( | ||
name="name_value", | ||
) | ||
|
||
# Make the request | ||
client.delete_ssh_public_key(request=request) | ||
|
||
|
||
# [END oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_sync] |
Oops, something went wrong.