Skip to content

Commit

Permalink
regenerate client locally; add client-specific post processing
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Oct 31, 2023
1 parent 38e7ed4 commit e679db7
Show file tree
Hide file tree
Showing 21 changed files with 1,942 additions and 6 deletions.
1 change: 1 addition & 0 deletions packages/google-cloud-os-login/docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ API Reference

oslogin_v1/services_
oslogin_v1/types_
oslogin_v1/common/types


Changelog
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# 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.
Expand All @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.11.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2022 Google LLC
# 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.
Expand All @@ -13,4 +13,4 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
__version__ = "2.11.0" # {x-release-please-version}
__version__ = "0.0.0" # {x-release-please-version}
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
from google.oauth2 import service_account # type: ignore
from google.protobuf import empty_pb2 # type: ignore

from google.cloud.oslogin_v1 import gapic_version as package_version
from google.cloud.oslogin_v1.common.types import common
from google.cloud.oslogin_v1 import gapic_version as package_version
from google.cloud.oslogin_v1.types import oslogin

DEFAULT_CLIENT_INFO = gapic_v1.client_info.ClientInfo(
Expand Down
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]
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]
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]
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]
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]
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]
Loading

0 comments on commit e679db7

Please sign in to comment.