Skip to content

Commit

Permalink
fix: fix body encoding for rest transport (#17)
Browse files Browse the repository at this point in the history
fix: update paging implementation to handle unconventional pagination
fix: don't use integers for enums in json encoding
fix: stabilize order of query_params
  • Loading branch information
yoshi-automation authored Feb 11, 2021
1 parent 46cdfc4 commit 94b588e
Show file tree
Hide file tree
Showing 372 changed files with 21,160 additions and 2,002 deletions.
4 changes: 2 additions & 2 deletions packages/google-cloud-compute/.kokoro/docs/common.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ env_vars: {
value: "docs-staging-v2"
}

# Don't update the docker image from this build
# It will upload the docker image after successful builds.
env_vars: {
key: "TRAMPOLINE_IMAGE_UPLOAD"
value: "false"
value: "true"
}

# It will always build the docker image.
Expand Down
6 changes: 6 additions & 0 deletions packages/google-cloud-compute/.kokoro/docs/docs-presubmit.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ env_vars: {
value: "gcloud-python-test"
}

# We only upload the image in the main `docs` build.
env_vars: {
key: "TRAMPOLINE_IMAGE_UPLOAD"
value: "false"
}

env_vars: {
key: "TRAMPOLINE_BUILD_FILE"
value: "github/python-compute/.kokoro/build.sh"
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/.kokoro/docs/docs.cfg
Original file line number Diff line number Diff line change
@@ -1 +1 @@
# Format: //devtools/kokoro/config/proto/build.proto
# Format: //devtools/kokoro/config/proto/build.proto
8 changes: 4 additions & 4 deletions packages/google-cloud-compute/.kokoro/test-samples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,11 @@ for file in samples/**/requirements.txt; do
python3.6 -m nox -s "$RUN_TESTS_SESSION"
EXIT=$?

# If this is a periodic build, send the test log to the FlakyBot.
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
# If this is a periodic build, send the test log to the Build Cop Bot.
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/buildcop.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot
chmod +x $KOKORO_GFILE_DIR/linux_amd64/buildcop
$KOKORO_GFILE_DIR/linux_amd64/buildcop
fi

if [[ $EXIT -ne 0 ]]; then
Expand Down
2 changes: 1 addition & 1 deletion packages/google-cloud-compute/.kokoro/trampoline_v2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ if [[ -n "${KOKORO_BUILD_ID:-}" ]]; then
"KOKORO_GITHUB_COMMIT"
"KOKORO_GITHUB_PULL_REQUEST_NUMBER"
"KOKORO_GITHUB_PULL_REQUEST_COMMIT"
# For FlakyBot
# For Build Cop Bot
"KOKORO_GITHUB_COMMIT_URL"
"KOKORO_GITHUB_PULL_REQUEST_URL"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ AcceleratorTypes
.. automodule:: google.cloud.compute_v1.services.accelerator_types
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.accelerator_types.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/addresses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Addresses
.. automodule:: google.cloud.compute_v1.services.addresses
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.addresses.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/autoscalers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Autoscalers
.. automodule:: google.cloud.compute_v1.services.autoscalers
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.autoscalers.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ BackendBuckets
.. automodule:: google.cloud.compute_v1.services.backend_buckets
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.backend_buckets.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ BackendServices
.. automodule:: google.cloud.compute_v1.services.backend_services
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.backend_services.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/disk_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ DiskTypes
.. automodule:: google.cloud.compute_v1.services.disk_types
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.disk_types.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/disks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Disks
.. automodule:: google.cloud.compute_v1.services.disks
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.disks.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ 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:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/firewalls.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Firewalls
.. automodule:: google.cloud.compute_v1.services.firewalls
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.firewalls.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ ForwardingRules
.. automodule:: google.cloud.compute_v1.services.forwarding_rules
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.forwarding_rules.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ GlobalAddresses
.. automodule:: google.cloud.compute_v1.services.global_addresses
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.global_addresses.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ 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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ 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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ GlobalOperations
.. automodule:: google.cloud.compute_v1.services.global_operations
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.global_operations.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ 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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ HealthChecks
.. automodule:: google.cloud.compute_v1.services.health_checks
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.health_checks.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/images.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Images
.. automodule:: google.cloud.compute_v1.services.images
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.images.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ 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:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ InstanceGroups
.. automodule:: google.cloud.compute_v1.services.instance_groups
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.instance_groups.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ InstanceTemplates
.. automodule:: google.cloud.compute_v1.services.instance_templates
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.instance_templates.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/instances.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Instances
.. automodule:: google.cloud.compute_v1.services.instances
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.instances.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ InterconnectAttachments
.. automodule:: google.cloud.compute_v1.services.interconnect_attachments
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.interconnect_attachments.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ InterconnectLocations
.. automodule:: google.cloud.compute_v1.services.interconnect_locations
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.interconnect_locations.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Interconnects
.. automodule:: google.cloud.compute_v1.services.interconnects
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.interconnects.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/licenses.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Licenses
.. automodule:: google.cloud.compute_v1.services.licenses
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.licenses.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ MachineTypes
.. automodule:: google.cloud.compute_v1.services.machine_types
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.machine_types.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ NetworkEndpointGroups
.. automodule:: google.cloud.compute_v1.services.network_endpoint_groups
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.network_endpoint_groups.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/networks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Networks
.. automodule:: google.cloud.compute_v1.services.networks
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.networks.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/node_groups.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ NodeGroups
.. automodule:: google.cloud.compute_v1.services.node_groups
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.node_groups.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ NodeTemplates
.. automodule:: google.cloud.compute_v1.services.node_templates
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.node_templates.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/node_types.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ NodeTypes
.. automodule:: google.cloud.compute_v1.services.node_types
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.node_types.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ PacketMirrorings
.. automodule:: google.cloud.compute_v1.services.packet_mirrorings
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.packet_mirrorings.pagers
:members:
:inherited-members:
5 changes: 5 additions & 0 deletions packages/google-cloud-compute/docs/compute_v1/projects.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ Projects
.. automodule:: google.cloud.compute_v1.services.projects
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.projects.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ RegionAutoscalers
.. automodule:: google.cloud.compute_v1.services.region_autoscalers
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.region_autoscalers.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ RegionBackendServices
.. automodule:: google.cloud.compute_v1.services.region_backend_services
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.region_backend_services.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ RegionCommitments
.. automodule:: google.cloud.compute_v1.services.region_commitments
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.region_commitments.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ RegionDiskTypes
.. automodule:: google.cloud.compute_v1.services.region_disk_types
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.region_disk_types.pagers
:members:
:inherited-members:
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,8 @@ RegionDisks
.. automodule:: google.cloud.compute_v1.services.region_disks
:members:
:inherited-members:


.. automodule:: google.cloud.compute_v1.services.region_disks.pagers
:members:
:inherited-members:
Loading

0 comments on commit 94b588e

Please sign in to comment.