This repository has been archived by the owner on Dec 31, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: make parent_id fields required compute move and insert methods (…
…#686) Source-Link: googleapis/googleapis@02df998 Source-Link: googleapis/googleapis-gen@a3638a8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYTM2MzhhODY4ZGMzNGE1NzNjYzk5YThjZDBhYzc0YjgyZWJkYWJjNiJ9
- Loading branch information
1 parent
6cfa01e
commit 087428c
Showing
660 changed files
with
415,797 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
[run] | ||
branch = True | ||
|
||
[report] | ||
show_missing = True | ||
omit = | ||
google/cloud/compute/__init__.py | ||
exclude_lines = | ||
# Re-enable the standard pragma | ||
pragma: NO COVER | ||
# Ignore debug-only repr | ||
def __repr__ | ||
# Ignore pkg_resources exceptions. | ||
# This is added at the module level as a safeguard for if someone | ||
# generates the code and tries to run it without pip installing. This | ||
# makes it virtually impossible to test properly. | ||
except pkg_resources.DistributionNotFound |
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,2 @@ | ||
recursive-include google/cloud/compute *.py | ||
recursive-include google/cloud/compute_v1 *.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,49 @@ | ||
Python Client for Google Cloud Compute API | ||
================================================= | ||
|
||
Quick Start | ||
----------- | ||
|
||
In order to use this library, you first need to go through the following steps: | ||
|
||
1. `Select or create a Cloud Platform project.`_ | ||
2. `Enable billing for your project.`_ | ||
3. Enable the Google Cloud Compute API. | ||
4. `Setup Authentication.`_ | ||
|
||
.. _Select or create a Cloud Platform project.: https://console.cloud.google.com/project | ||
.. _Enable billing for your project.: https://cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project | ||
.. _Setup Authentication.: https://googleapis.dev/python/google-api-core/latest/auth.html | ||
|
||
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. | ||
|
||
With `virtualenv`_, 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/ | ||
|
||
|
||
Mac/Linux | ||
^^^^^^^^^ | ||
|
||
.. code-block:: console | ||
python3 -m venv <your-env> | ||
source <your-env>/bin/activate | ||
<your-env>/bin/pip install /path/to/library | ||
Windows | ||
^^^^^^^ | ||
|
||
.. code-block:: console | ||
python3 -m venv <your-env> | ||
<your-env>\Scripts\activate | ||
<your-env>\Scripts\pip.exe install \path\to\library |
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,10 @@ | ||
AcceleratorTypes | ||
---------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.accelerator_types | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.accelerator_types.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Addresses | ||
--------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.addresses | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.addresses.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Autoscalers | ||
----------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.autoscalers | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.autoscalers.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
BackendBuckets | ||
-------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.backend_buckets | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.backend_buckets.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
BackendServices | ||
--------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.backend_services | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.backend_services.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
DiskTypes | ||
--------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.disk_types | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.disk_types.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Disks | ||
----------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.disks | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.disks.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/external_vpn_gateways.rst
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,10 @@ | ||
ExternalVpnGateways | ||
------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.external_vpn_gateways | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.external_vpn_gateways.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
FirewallPolicies | ||
---------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.firewall_policies | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.firewall_policies.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Firewalls | ||
--------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.firewalls | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.firewalls.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
ForwardingRules | ||
--------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.forwarding_rules | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.forwarding_rules.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
GlobalAddresses | ||
--------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_addresses | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_addresses.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/global_forwarding_rules.rst
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,10 @@ | ||
GlobalForwardingRules | ||
--------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_forwarding_rules | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_forwarding_rules.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/global_network_endpoint_groups.rst
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,10 @@ | ||
GlobalNetworkEndpointGroups | ||
--------------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_network_endpoint_groups | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_network_endpoint_groups.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
GlobalOperations | ||
---------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_operations | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_operations.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/global_organization_operations.rst
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,10 @@ | ||
GlobalOrganizationOperations | ||
---------------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_organization_operations | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_organization_operations.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/global_public_delegated_prefixes.rst
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,10 @@ | ||
GlobalPublicDelegatedPrefixes | ||
----------------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_public_delegated_prefixes | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.global_public_delegated_prefixes.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
HealthChecks | ||
------------------------------ | ||
|
||
.. automodule:: google.cloud.compute_v1.services.health_checks | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.health_checks.pagers | ||
:members: | ||
:inherited-members: |
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,6 @@ | ||
ImageFamilyViews | ||
---------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.image_family_views | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Images | ||
------------------------ | ||
|
||
.. automodule:: google.cloud.compute_v1.services.images | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.images.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/instance_group_managers.rst
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,10 @@ | ||
InstanceGroupManagers | ||
--------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instance_group_managers | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instance_group_managers.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
InstanceGroups | ||
-------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instance_groups | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instance_groups.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
InstanceTemplates | ||
----------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instance_templates | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instance_templates.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Instances | ||
--------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instances | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.instances.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/interconnect_attachments.rst
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,10 @@ | ||
InterconnectAttachments | ||
----------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.interconnect_attachments | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.interconnect_attachments.pagers | ||
:members: | ||
:inherited-members: |
10 changes: 10 additions & 0 deletions
10
owl-bot-staging/v1/docs/compute_v1/interconnect_locations.rst
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,10 @@ | ||
InterconnectLocations | ||
--------------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.interconnect_locations | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.interconnect_locations.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Interconnects | ||
------------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.interconnects | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.interconnects.pagers | ||
:members: | ||
:inherited-members: |
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,6 @@ | ||
LicenseCodes | ||
------------------------------ | ||
|
||
.. automodule:: google.cloud.compute_v1.services.license_codes | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
Licenses | ||
-------------------------- | ||
|
||
.. automodule:: google.cloud.compute_v1.services.licenses | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.licenses.pagers | ||
:members: | ||
:inherited-members: |
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,10 @@ | ||
MachineTypes | ||
------------------------------ | ||
|
||
.. automodule:: google.cloud.compute_v1.services.machine_types | ||
:members: | ||
:inherited-members: | ||
|
||
.. automodule:: google.cloud.compute_v1.services.machine_types.pagers | ||
:members: | ||
:inherited-members: |
Oops, something went wrong.