Skip to content

Commit

Permalink
build: restructure proto messages (#11555)
Browse files Browse the repository at this point in the history
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
  • Loading branch information
3 people committed Aug 28, 2023
1 parent cc8021a commit 72b4fc5
Show file tree
Hide file tree
Showing 80 changed files with 41,243 additions and 5,667 deletions.
2 changes: 1 addition & 1 deletion packages/google-cloud-bare-metal-solution/.flake8
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 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 Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bare-metal-solution/CONTRIBUTING.rst
Expand Up @@ -236,7 +236,7 @@ We support:

Supported versions can be found in our ``noxfile.py`` `config`_.

.. _config: https://github.com/googleapis/google-cloud-python/blob/main/noxfile.py
.. _config: https://github.com/googleapis/google-cloud-python/blob/main/packages/google-cloud-bare-metal-solution/noxfile.py


**********
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bare-metal-solution/MANIFEST.in
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
#
# Copyright 2020 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 Down
27 changes: 14 additions & 13 deletions packages/google-cloud-bare-metal-solution/README.rst
Expand Up @@ -36,21 +36,24 @@ In order to use this library, you first need to go through the following steps:
Installation
~~~~~~~~~~~~

Install this library in a `virtualenv`_ using pip. `virtualenv`_ is a tool to
create isolated Python environments. The basic problem it addresses is one of
dependencies and versions, and indirectly permissions.
Install this library in a virtual environment using `venv`_. `venv`_ is a tool that
creates isolated Python environments. These isolated environments can have separate
versions of Python packages, which allows you to isolate one project's dependencies
from the dependencies of other projects.

With `virtualenv`_, it's possible to install this library without needing system
With `venv`_, it's possible to install this library without needing system
install permissions, and without clashing with the installed system
dependencies.

.. _`virtualenv`: https://virtualenv.pypa.io/en/latest/
.. _`venv`: https://docs.python.org/3/library/venv.html


Code samples and snippets
~~~~~~~~~~~~~~~~~~~~~~~~~

Code samples and snippets live in the `samples/` folder.
Code samples and snippets live in the `samples/`_ folder.

.. _samples/: https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-bare-metal-solution/samples


Supported Python Versions
Expand All @@ -77,21 +80,19 @@ Mac/Linux

.. code-block:: console
pip install virtualenv
virtualenv <your-env>
python3 -m venv <your-env>
source <your-env>/bin/activate
<your-env>/bin/pip install google-cloud-bare-metal-solution
pip install google-cloud-bare-metal-solution
Windows
^^^^^^^

.. code-block:: console
pip install virtualenv
virtualenv <your-env>
<your-env>\Scripts\activate
<your-env>\Scripts\pip.exe install google-cloud-bare-metal-solution
py -m venv <your-env>
.\<your-env>\Scripts\activate
pip install google-cloud-bare-metal-solution
Next Steps
~~~~~~~~~~
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-bare-metal-solution/docs/conf.py
@@ -1,5 +1,5 @@
# -*- coding: utf-8 -*-
# Copyright 2021 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 Down
Expand Up @@ -28,12 +28,21 @@
OperationMetadata,
ResetInstanceResponse,
)
from google.cloud.bare_metal_solution_v2.types.common import (
VolumePerformanceTier,
WorkloadProfile,
)
from google.cloud.bare_metal_solution_v2.types.instance import (
DetachLunRequest,
DisableInteractiveSerialConsoleRequest,
DisableInteractiveSerialConsoleResponse,
EnableInteractiveSerialConsoleRequest,
EnableInteractiveSerialConsoleResponse,
GetInstanceRequest,
Instance,
ListInstancesRequest,
ListInstancesResponse,
RenameInstanceRequest,
ResetInstanceRequest,
ServerNetworkTemplate,
StartInstanceRequest,
Expand All @@ -43,6 +52,7 @@
UpdateInstanceRequest,
)
from google.cloud.bare_metal_solution_v2.types.lun import (
EvictLunRequest,
GetLunRequest,
ListLunsRequest,
ListLunsResponse,
Expand All @@ -58,42 +68,93 @@
LogicalInterface,
Network,
NetworkAddressReservation,
NetworkMountPoint,
NetworkUsage,
RenameNetworkRequest,
UpdateNetworkRequest,
)
from google.cloud.bare_metal_solution_v2.types.nfs_share import (
CreateNfsShareRequest,
DeleteNfsShareRequest,
GetNfsShareRequest,
ListNfsSharesRequest,
ListNfsSharesResponse,
NfsShare,
RenameNfsShareRequest,
UpdateNfsShareRequest,
)
from google.cloud.bare_metal_solution_v2.types.osimage import (
ListOSImagesRequest,
ListOSImagesResponse,
OSImage,
)
from google.cloud.bare_metal_solution_v2.types.provisioning import (
CreateProvisioningConfigRequest,
GetProvisioningConfigRequest,
InstanceConfig,
InstanceQuota,
ListProvisioningQuotasRequest,
ListProvisioningQuotasResponse,
NetworkConfig,
ProvisioningConfig,
ProvisioningQuota,
SubmitProvisioningConfigRequest,
SubmitProvisioningConfigResponse,
UpdateProvisioningConfigRequest,
VolumeConfig,
)
from google.cloud.bare_metal_solution_v2.types.ssh_key import (
CreateSSHKeyRequest,
DeleteSSHKeyRequest,
ListSSHKeysRequest,
ListSSHKeysResponse,
SSHKey,
)
from google.cloud.bare_metal_solution_v2.types.volume import (
EvictVolumeRequest,
GetVolumeRequest,
ListVolumesRequest,
ListVolumesResponse,
RenameVolumeRequest,
ResizeVolumeRequest,
UpdateVolumeRequest,
Volume,
)
from google.cloud.bare_metal_solution_v2.types.volume_snapshot import (
CreateVolumeSnapshotRequest,
DeleteVolumeSnapshotRequest,
GetVolumeSnapshotRequest,
ListVolumeSnapshotsRequest,
ListVolumeSnapshotsResponse,
RestoreVolumeSnapshotRequest,
VolumeSnapshot,
)

__all__ = (
"BareMetalSolutionClient",
"BareMetalSolutionAsyncClient",
"OperationMetadata",
"ResetInstanceResponse",
"VolumePerformanceTier",
"WorkloadProfile",
"DetachLunRequest",
"DisableInteractiveSerialConsoleRequest",
"DisableInteractiveSerialConsoleResponse",
"EnableInteractiveSerialConsoleRequest",
"EnableInteractiveSerialConsoleResponse",
"GetInstanceRequest",
"Instance",
"ListInstancesRequest",
"ListInstancesResponse",
"RenameInstanceRequest",
"ResetInstanceRequest",
"ServerNetworkTemplate",
"StartInstanceRequest",
"StartInstanceResponse",
"StopInstanceRequest",
"StopInstanceResponse",
"UpdateInstanceRequest",
"EvictLunRequest",
"GetLunRequest",
"ListLunsRequest",
"ListLunsResponse",
Expand All @@ -106,18 +167,53 @@
"LogicalInterface",
"Network",
"NetworkAddressReservation",
"NetworkMountPoint",
"NetworkUsage",
"RenameNetworkRequest",
"UpdateNetworkRequest",
"VRF",
"CreateNfsShareRequest",
"DeleteNfsShareRequest",
"GetNfsShareRequest",
"ListNfsSharesRequest",
"ListNfsSharesResponse",
"NfsShare",
"RenameNfsShareRequest",
"UpdateNfsShareRequest",
"ListOSImagesRequest",
"ListOSImagesResponse",
"OSImage",
"CreateProvisioningConfigRequest",
"GetProvisioningConfigRequest",
"InstanceConfig",
"InstanceQuota",
"ListProvisioningQuotasRequest",
"ListProvisioningQuotasResponse",
"NetworkConfig",
"ProvisioningConfig",
"ProvisioningQuota",
"SubmitProvisioningConfigRequest",
"SubmitProvisioningConfigResponse",
"UpdateProvisioningConfigRequest",
"VolumeConfig",
"CreateSSHKeyRequest",
"DeleteSSHKeyRequest",
"ListSSHKeysRequest",
"ListSSHKeysResponse",
"SSHKey",
"EvictVolumeRequest",
"GetVolumeRequest",
"ListVolumesRequest",
"ListVolumesResponse",
"RenameVolumeRequest",
"ResizeVolumeRequest",
"UpdateVolumeRequest",
"Volume",
"CreateVolumeSnapshotRequest",
"DeleteVolumeSnapshotRequest",
"GetVolumeSnapshotRequest",
"ListVolumeSnapshotsRequest",
"ListVolumeSnapshotsResponse",
"RestoreVolumeSnapshotRequest",
"VolumeSnapshot",
)

0 comments on commit 72b4fc5

Please sign in to comment.